/* Search form container */
.hero-form {
    position: relative;
    background: rgba(254, 243, 199, 0.95);
    /* mh-cream */
    backdrop-filter: blur(6px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    border: 1px solid rgba(254, 243, 199, 0.2);
    /* mh-cream */
    background-clip: padding-box;
    padding: 8px;
}

/* Custom select wrapper */
.select-wrapper {
    position: relative;
    width: 100%;
}

.select-wrapper::after {
    content: '▼';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b8e23;
    /* mh-olive */
    font-size: 0.8rem;
    pointer-events: none;
}

/* Input & select */
.hero-input,
.hero-select {
    background: #fef3c7;
    /* mh-cream */
    border: 1px solid #87a96b;
    /* mh-sage */
    height: 40px;
    padding: 0 12px;
    border-radius: 12px;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    color: #1a4b5f;
    /* mh-deep-teal */
    width: 100%;
    appearance: none;
}

.hero-input::placeholder {
    color: #2a7d7b;
    /* mh-teal */
}

.hero-input:focus,
.hero-select:focus {
    border-color: #f59e0b;
    /* mh-gold */
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
    /* mh-gold */
    outline: none;
}

/* Custom option styling */
.hero-select option {
    background: #fef3c7;
    /* mh-cream */
    color: #1a4b5f;
    /* mh-deep-teal */
    font-size: 0.9rem;
    padding: 8px;
}

.hero-select option:hover {
    background: #87a96b;
    /* mh-sage */
}

/* Hero text */
.hero-text {
    opacity: 2;
    animation: fadeIn 0.5s ease-out forwards;
}

/* Button styling */
.hero-btn {
    height: 40px;
    background: linear-gradient(90deg, #d97706, #f59e0b);
    /* mh-amber to mh-gold */
    border: none;
    border-radius: 12px;
    color: #1a4b5f;
    /* mh-deep-teal */
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0 14px;
    font-size: 0.9rem;
    box-shadow: 0 3px 10px rgba(245, 158, 11, 0.2);
    /* mh-gold */
    width: 100%;
}

.hero-btn:hover {
    background: linear-gradient(90deg, #f59e0b, #d97706);
    /* mh-gold to mh-amber */
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    /* mh-gold */
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .hero-text {
        animation: none;
        opacity: 5;
    }

    .hero-form {
        border-radius: 12px;
        padding: 6px;
    }

    .hero-input,
    .hero-select,
    .hero-btn {
        height: 38px;
        font-size: 0.85rem;
    }

    .hero-section {
        height: 320px;
    }

    .hero-text h1 {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }

    .hero-text p {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }

    .hero-form {
        flex-direction: column;
        gap: 6px;
    }
}

@media (max-width: 640px) {
    .hero-section {
        height: 300px;
    }

    .hero-text h1 {
        font-size: 1.5rem;
    }

    .hero-text p {
        font-size: 0.85rem;
    }
}

/* Fallback for backdrop-filter */
@supports not (backdrop-filter: blur(6px)) {
    .hero-form {
        background: rgba(254, 243, 199, 0.9);
        /* mh-cream */
    }
}
