/* assets/css/decision.css */

/* Travel Style Selector */
.style-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 250px;
    position: relative;
}

.style-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.style-card.primary {
    background: linear-gradient(to right, #fdfbf7, white);
    border-left: 4px solid var(--primary);
}

.style-card.secondary {
    border-left: 4px solid #ccc;
}

.style-card.active {
    border: 2px solid var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.style-card.active .check-icon {
    display: block;
}

.style-icon {
    font-size: 1.5rem;
}

.style-info h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
}

.style-info p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.check-icon {
    display: none;
    position: absolute;
    top: 10px;
    right: 10px;
    color: var(--primary);
    font-weight: bold;
}

/* Modern Trip Details Section */
.trip-details-section-modern {
    margin-bottom: 40px;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    padding: 30px 20px;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

/* Header */
.trip-header {
    text-align: center;
    margin-bottom: 25px;
}

.trip-icon {
    font-size: 1.5rem;
    margin-right: 8px;
}

.trip-title {
    margin: 0 0 5px 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    display: inline-flex;
    align-items: center;
}

.trip-subtitle {
    margin: 0;
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 400;
}

/* Horizontal Card */
.trip-card-horizontal {
    background: white;
    border-radius: 16px;
    padding: 20px 25px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: flex-end;
    gap: 15px;
    max-width: 1100px;
    margin: 0 auto;
    flex-wrap: wrap;
}

/* Trip Field */
.trip-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 160px;
}

.trip-field-small {
    flex: 0 0 100px;
    min-width: 100px;
}

.trip-field-checkbox {
    flex: 0 0 auto;
    min-width: auto;
    justify-content: flex-end;
}

.trip-field-action {
    flex: 0 0 auto;
    min-width: auto;
}

.modern-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 10px;
    font-size: 1rem;
    pointer-events: none;
    z-index: 1;
}

.modern-input {
    width: 100%;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 10px 10px 35px;
    font-size: 0.85rem;
    color: #1e293b;
    background: #f8fafc;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.modern-input:focus {
    outline: none;
    border-color: var(--primary, #0ea5e9);
    background: white;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.modern-input::-webkit-calendar-picker-indicator {
    cursor: pointer;
}

/* Counter Controls */
.counter-controls {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    height: 38px;
}

.counter-btn {
    background: white;
    border: none;
    width: 32px;
    height: 100%;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary, #0ea5e9);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.counter-btn:hover {
    background: var(--primary, #0ea5e9);
    color: white;
}

.counter-btn:active {
    transform: scale(0.95);
}

.counter-input {
    flex: 1;
    border: none;
    background: transparent;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
    padding: 0;
    -moz-appearance: textfield;
    min-width: 30px;
}

.counter-input::-webkit-outer-spin-button,
.counter-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.counter-input:focus {
    outline: none;
}

/* Undecided Checkbox */
.undecided-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    padding: 8px 0;
}

.undecided-checkbox input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid #cbd5e1;
    border-radius: 5px;
    background: white;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.undecided-checkbox input:checked+.checkbox-custom {
    background: var(--primary, #0ea5e9);
    border-color: var(--primary, #0ea5e9);
}

.undecided-checkbox input:checked+.checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
}

.checkbox-label {
    font-size: 0.8rem;
    color: #475569;
    font-weight: 500;
    white-space: nowrap;
}

/* Continue Button */
.continue-btn {
    background: linear-gradient(135deg, var(--primary, #0ea5e9) 0%, #06b6d4 100%);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 10px 18px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
    white-space: nowrap;
    height: 38px;
}

.continue-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
}

.continue-btn:active {
    transform: translateY(0);
}

.btn-arrow {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.continue-btn:hover .btn-arrow {
    transform: translateX(3px);
}

/* Responsive */
@media (max-width: 1024px) {
    .trip-card-horizontal {
        gap: 12px;
    }

    .trip-field {
        min-width: 140px;
    }
}

@media (max-width: 768px) {
    .trip-details-section-modern {
        padding: 25px 15px;
    }

    .trip-card-horizontal {
        flex-direction: column;
        padding: 20px;
        gap: 15px;
    }

    .trip-field,
    .trip-field-small,
    .trip-field-checkbox,
    .trip-field-action {
        flex: 1 1 100%;
        min-width: 100%;
        width: 100%;
    }

    .continue-btn {
        width: 100%;
        justify-content: center;
    }

    .undecided-checkbox {
        justify-content: center;
    }
}

/* Compare Drawer */
.compare-drawer {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 15px 30px;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.15);
    border-radius: 50px 50px 0 0;
    z-index: 9000;
    transition: bottom 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid #eee;
}

.compare-drawer.active {
    bottom: 0;
}

.drawer-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.compare-count {
    font-weight: 800;
    color: var(--primary);
}

/* Modal Styles */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background: transparent;
    /* The form container has the background */
    width: 100%;
    max-width: 500px;
    position: relative;
}

.close-modal {
    position: absolute;
    top: -30px;
    right: 0;
    color: white;
    font-size: 30px;
    cursor: pointer;
    z-index: 10001;
}