/* ========================================
   COMPONENTS - Reusable UI elements
   ======================================== */

/* DEPRECATED: Use .btn .btn--primary from components-v2.css instead */
/*
.btn-primary {
    width: 270px;
    height: 35px;
    background: #F45000;
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 20px;
    font-weight: 400;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary:hover {
    background: #FF5001;
    transform: translateY(-1px);
}

.btn-primary.full-width {
    width: 100%;
}
*/

/* Forms - Gulf Euro Drive Approved Style */
input,
select,
textarea {
    width: 100%;
    height: 40px;
    padding: 10px 16px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    background: #FFFFFF;
    color: #000000;
    line-height: 20px;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #F45000;
    box-shadow: 0 0 0 3px rgba(244, 80, 0, 0.1);
}

/* Date Picker Styles - Gulf Euro Approved */
input[type="date"],
.date-picker,
.date-single-input {
    padding: 10px 16px;
    cursor: pointer;
    color: #000000;
    position: relative;
    height: 40px;
    width: 100%;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    background: #FFFFFF url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 2v2m8-2v2M3 8h18M5 4h14a2 2 0 012 2v14a2 2 0 01-2 2H5a2 2 0 01-2-2V6a2 2 0 012-2z' stroke='%23666666' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat;
    background-position: right 12px center;
    padding-right: 44px;
}

.date-single-input::placeholder {
    color: #B3B3B3;
}

.date-single-input:focus {
    outline: none;
    border-color: #F45000;
    box-shadow: 0 0 0 3px rgba(244, 80, 0, 0.1);
}

input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    filter: invert(57%) sepia(95%) saturate(2118%) hue-rotate(359deg) brightness(102%) contrast(103%);
}

input[type="date"]::-webkit-datetime-edit {
    padding: 0;
}

input[type="date"]::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
}

input[type="date"]::-webkit-datetime-edit-text {
    color: var(--color-text-secondary);
    padding: 0 4px;
}

input[type="date"]::-webkit-datetime-edit-month-field,
input[type="date"]::-webkit-datetime-edit-day-field,
input[type="date"]::-webkit-datetime-edit-year-field {
    color: var(--color-text);
}

input[type="date"]:invalid {
    color: var(--color-text-secondary);
}

/* Date Range Picker - Gulf Euro Drive Design */
.date-range-picker {
    display: flex;
    align-items: center;
    position: relative;
    background: var(--color-white);
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 280px;
    height: 40px;
}

/* States */
.date-range-picker:hover {
    border-color: var(--color-primary);
}

.date-range-picker:focus-within,
.date-range-picker.active {
    border-color: #F45000;
    background: rgba(244, 80, 0, 0.05);
    outline: none;
}

.date-range-picker.filled {
    background: #FFFFFF;
    border-color: #F45000;
}

/* Date input wrappers */
.date-picker-wrapper {
    flex: 1;
    position: relative;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    height: 100%;
}

.date-picker-wrapper:first-child {
    padding-right: 8px;
}

.date-picker-wrapper:last-of-type {
    padding-left: 8px;
}

/* Text inputs (visible) */
.date-input {
    border: none;
    background: transparent;
    width: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    padding: 0;
    cursor: pointer;
    color: #000000;
    line-height: 20px;
}

.date-input::placeholder {
    color: #B3B3B3;
    font-weight: 400;
}

.date-input:focus {
    outline: none;
}

/* When filled */
.date-range-picker.filled .date-input {
    color: #000000;
    font-weight: 400;
}

/* Hidden date inputs */
.date-input-hidden {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

/* Divider between dates */
.date-range-divider {
    width: 1px;
    height: 20px;
    background: #E5E7EB;
    margin: 0;
}

.date-range-picker.active .date-range-divider,
.date-range-picker.filled .date-range-divider {
    background: #F45000;
}

/* Calendar icon */
.calendar-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #666666;
    pointer-events: none;
    width: 20px;
    height: 20px;
}

/* When active or filled */
.date-range-picker.active .calendar-icon,
.date-range-picker.filled .calendar-icon {
    color: #F45000;
}

/* Placeholder state */
.date-range-picker.placeholder .date-input {
    color: #B3B3B3;
}

textarea {
    height: auto;
    min-height: 100px;
    resize: vertical;
}


/* Vehicle Card - Gulf Euro Drive Approved */
.vehicle-card {
    background: #F5F5F5;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.2s ease;
    min-height: 380px;
    display: flex;
    flex-direction: column;
}

.vehicle-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.vehicle-image {
    width: 100%;
    height: 180px;
    background: #ddd;
    border-radius: var(--border-radius);
    margin-bottom: 16px;
    overflow: hidden;
}

.vehicle-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vehicle-name {
    font-size: 24px;
    font-weight: 300;
    margin-bottom: 8px;
    font-family: 'Glypha LT', Georgia, serif;
    color: #000000;
}

.vehicle-price {
    color: #666666;
    margin: 10px 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
}

.vehicle-badge {
    display: inline-block;
    background: #000000;
    color: #FFFFFF;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    margin-bottom: 10px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    text-transform: uppercase;
    font-weight: 500;
}

/* Checkboxes - Gulf Euro Drive Style */
.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    color: #000000;
}

.checkbox-item input[type="checkbox"] {
    width: 14px;
    height: 14px;
    border: 1px solid #E5E7EB;
    border-radius: 2px;
    cursor: pointer;
    appearance: none;
    background: #FFFFFF;
    position: relative;
}

.checkbox-item input[type="checkbox"]:checked {
    background: #F45000;
    border-color: #F45000;
}

.checkbox-item input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: -2px;
    left: 2px;
    color: #FFFFFF;
    font-size: 10px;
}

/* Logos Container */
.logos {
    display: flex;
    gap: var(--spacing-xs);
    align-items: center;
}

/* Page Headers - Gulf Euro Drive Approved */
.page-header {
    padding: 140px 96px 40px 96px;
    background: #F5F5F5;
    row-gap: 12px;
}

.page-title {
    font-size: 36px;
    line-height: 1.2;
    font-family: 'Glypha LT', Georgia, serif;
    font-weight: 400;
    color: #000000;
    margin-bottom: 0px;
    text-align: center;
    width: 100%;
}

.page-subtitle {
    font-size: 36px;
    color: #000000;
    font-family: 'Glypha LT', Georgia, serif;
    font-weight: 400;
}

/* Comparison Table */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--spacing-lg) 0;
}

.comparison-table th {
    padding: 12px;
    text-align: center;
    font-weight: 600;
    background: var(--color-bg-light);
}

.comparison-table th.highlighted {
    background: var(--color-primary);
    color: var(--color-white);
}

.comparison-table td {
    padding: 12px;
    border: 1px solid var(--color-border);
    text-align: center;
}

.check {
    color: green;
    font-size: 20px;
}

.cross {
    color: red;
    font-size: 20px;
}

/* Step Numbers */
.step {
    display: flex;
    align-items: center;
    margin-bottom: var(--spacing-md);
    gap: 16px;
}

.step-number {
    width: 32px;
    height: 32px;
    border: 2px solid var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-weight: 600;
}

/* Benefit Cards */
.benefit {
    width: 128px;
    text-align: center;
}

.benefit img {
    width: 80px;
    height: 65px;
    margin-bottom: var(--spacing-sm);
}