/* ================================
   FUNNEL PAGE STYLES
   ================================ */

/* Funnel Page Wrapper */
.funnel-page-wrapper {
    min-height: 100vh;
    background: linear-gradient(135deg, #0a2130 0%, #1a4b6e 50%, #0d3a50 100%);
    padding-top: 100px;
}

/* Funnel Hero Section */
.funnel-hero {
    text-align: center;
    padding: 60px 20px 40px;
    color: #fff;
}

.funnel-hero h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--primary-color), #e6b800);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.funnel-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Funnel Container */
.funnel-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

/* Progress Section */
.funnel-progress {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px 30px;
    margin-bottom: 30px;
}

.funnel-progress .progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 15px;
}

.funnel-progress .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #e6b800);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.step-indicator {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    font-weight: 500;
}

.step-indicator #current-step {
    color: var(--primary-color);
    font-weight: 700;
}

/* Funnel Form Card */
.funnel-form {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 50px;
    position: relative;
    overflow: hidden;
}

.funnel-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), #e6b800);
}

/* Funnel Steps */
.funnel-step {
    display: none;
    animation: fadeIn 0.4s ease;
}

.funnel-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.funnel-step h2 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 35px;
    line-height: 1.4;
}

.funnel-step .subtitle {
    text-align: center;
    color: #666;
    margin-top: -25px;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

/* Options Grid */
.options-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.options-grid.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
}

/* Option Cards */
.option-card {
    display: block;
    background: #f8f9fa;
    border: 2px solid #e8eaed;
    border-radius: 14px;
    padding: 18px 22px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.option-card:hover {
    border-color: var(--primary-color);
    background: #fff9f2;
    transform: translateX(4px);
}

.option-card input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.option-card:has(input:checked) {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #fff9f2, #fff5e6);
    box-shadow: 0 4px 15px rgba(224, 169, 109, 0.25);
}

.option-card:has(input:checked)::after {
    content: '✓';
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    background: var(--primary-color);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: bold;
}

.option-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-right: 40px;
}

.option-title {
    font-weight: 600;
    color: #333;
    font-size: 1rem;
}

/* Image Cards (for experiences) */
.option-card.image-card {
    padding: 0;
    overflow: hidden;
    flex-direction: column;
}

.option-card.image-card:hover {
    transform: translateY(-5px);
}

.option-card.image-card:has(input:checked)::after {
    top: 12px;
    right: 12px;
    transform: none;
}

.card-image {
    height: 120px;
    background-size: cover;
    background-position: center;
    background-color: #ddd;
}

.option-card.image-card .option-content {
    padding: 14px;
    padding-right: 14px;
    text-align: center;
    background: #fff;
}

.option-card.image-card:has(input:checked) .option-content {
    background: var(--primary-color);
    color: white;
}

.option-card.image-card:has(input:checked) .option-title {
    color: white;
}

/* Counter Group (for traveler numbers) */
.counter-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 450px;
    margin: 0 auto 30px;
}

.counter-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    padding: 18px 22px;
    border-radius: 14px;
    border: 2px solid #e8eaed;
}

.counter-item label {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.counter-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.counter-controls button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #ddd;
    background: white;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.counter-controls button:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: #fff9f2;
}

.counter-controls input {
    width: 50px;
    text-align: center;
    border: none;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--secondary-color);
    background: transparent;
}

/* Range Slider (for budget) */
.range-slider-container {
    padding: 30px 20px;
    text-align: center;
}

.range-slider-container input[type=range] {
    width: 100%;
    margin: 25px 0;
    -webkit-appearance: none;
    background: transparent;
}

.range-slider-container input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 8px;
    cursor: pointer;
    background: linear-gradient(90deg, #e8eaed, var(--primary-color));
    border-radius: 4px;
}

.range-slider-container input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 28px;
    width: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #e6b800);
    cursor: pointer;
    margin-top: -10px;
    box-shadow: 0 4px 12px rgba(224, 169, 109, 0.4);
    transition: transform 0.2s;
}

.range-slider-container input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.range-value {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), #e6b800);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: 10px;
}

/* Form Grid (for contact step) */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group.full-width {
    grid-column: 1 / -1;
}

.input-group label {
    font-weight: 600;
    color: #444;
    font-size: 0.9rem;
}

.input-group input,
.input-group select,
.input-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e8eaed;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s;
    background: #f8f9fa;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(224, 169, 109, 0.1);
}

.input-group textarea {
    resize: vertical;
    min-height: 100px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-weight: normal;
    color: #555;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary-color);
}

/* Navigation Buttons */
.funnel-nav {
    display: flex;
    gap: 15px;
    margin-top: 35px;
    padding-top: 25px;
    border-top: 2px solid #f0f0f0;
}

.btn-back,
.btn-next,
.btn-submit {
    flex: 1;
    padding: 16px 30px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-back {
    background: #e8eaed;
    color: #555;
}

.btn-back:hover {
    background: #ddd;
}

.btn-next,
.btn-submit {
    background: linear-gradient(135deg, var(--primary-color), #e6b800);
    color: white;
    box-shadow: 0 4px 15px rgba(224, 169, 109, 0.4);
}

.btn-next:hover,
.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(224, 169, 109, 0.5);
}

/* Success Message (Thank You step) */
.success-message {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: scaleIn 0.5s ease;
}

.success-icon svg {
    width: 50px;
    height: 50px;
    color: white;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.success-message h2 {
    color: #4CAF50;
    margin-bottom: 15px;
}

.success-message p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.btn-home {
    display: inline-block;
    padding: 16px 40px;
    background: linear-gradient(135deg, var(--secondary-color), #1a4b6e);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    transition: all 0.3s;
}

.btn-home:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(10, 33, 48, 0.3);
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .funnel-page-wrapper {
        padding-top: 120px;
    }

    .funnel-hero {
        padding: 30px 20px 25px;
    }

    .funnel-hero h1 {
        font-size: 2rem;
        margin-bottom: 10px;
    }

    .funnel-hero p {
        font-size: 0.95rem;
    }

    .funnel-container {
        padding: 0 15px 30px;
    }

    .funnel-progress {
        padding: 15px 20px;
        margin-bottom: 20px;
    }

    .funnel-form {
        padding: 25px 20px;
        border-radius: 16px;
        max-height: calc(100vh - 320px);
        overflow-y: auto;
    }

    .funnel-step {
        min-height: auto;
    }

    .funnel-step h2 {
        font-size: 1.3rem;
        margin-bottom: 20px;
        line-height: 1.3;
    }

    .funnel-step .subtitle {
        font-size: 0.85rem;
        margin-top: -15px;
        margin-bottom: 20px;
    }

    .options-grid {
        gap: 10px;
        margin-bottom: 20px;
    }

    .options-grid.image-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .option-card {
        padding: 12px 16px;
    }

    .option-title {
        font-size: 0.95rem;
    }

    .counter-group {
        gap: 12px;
        margin-bottom: 20px;
    }

    .counter-item {
        padding: 12px 16px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 20px;
    }

    .input-group {
        gap: 6px;
    }

    .input-group input,
    .input-group select,
    .input-group textarea {
        padding: 12px 14px;
        font-size: 0.95rem;
    }

    .input-group textarea {
        min-height: 80px;
    }

    .funnel-nav {
        flex-direction: column-reverse;
        gap: 10px;
        margin-top: 20px;
        padding-top: 20px;
    }

    .btn-back,
    .btn-next,
    .btn-submit {
        padding: 13px 20px;
        font-size: 0.95rem;
    }

    .range-value {
        font-size: 2rem;
    }

    .range-slider-container {
        padding: 20px 15px;
    }
}

@media (max-width: 480px) {
    .funnel-page-wrapper {
        padding-top: 120px;
    }

    .funnel-hero {
        padding: 25px 15px 20px;
    }

    .funnel-hero h1 {
        font-size: 1.8rem;
    }

    .funnel-hero p {
        font-size: 0.9rem;
    }

    .funnel-form {
        padding: 20px 15px;
        max-height: calc(100vh - 280px);
    }

    .funnel-step h2 {
        font-size: 1.2rem;
        margin-bottom: 18px;
    }

    .funnel-progress {
        padding: 15px;
    }

    .option-card {
        padding: 12px 14px;
    }

    .counter-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 12px 14px;
    }

    .counter-controls {
        width: 100%;
        justify-content: flex-end;
    }

    .counter-controls button {
        width: 32px;
        height: 32px;
        font-size: 1.1rem;
    }

    .options-grid.image-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .card-image {
        height: 100px;
    }

    .range-value {
        font-size: 1.8rem;
    }
}