/* ============================================================
   Homepage Premium Quick Enquiry Form — Arusha Excursions
   ============================================================ */

.qef-section {
    position: relative;
    overflow: hidden;
}

.qef-section-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(1200px 500px at 15% 0%, rgba(13, 48, 52, 0.06), transparent 60%),
        radial-gradient(900px 500px at 100% 100%, rgba(201, 162, 75, 0.08), transparent 55%),
        linear-gradient(180deg, #f7f8f7 0%, #eef1f0 100%);
}

/* Soft decorative accent shapes to give the section its own visual identity
   without competing with the form itself. */
.qef-section-bg::before,
.qef-section-bg::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
}

.qef-section-bg::before {
    width: 260px;
    height: 260px;
    top: -80px;
    left: 6%;
    background: radial-gradient(circle at 30% 30%, rgba(13, 48, 52, 0.08), transparent 70%);
}

.qef-section-bg::after {
    width: 340px;
    height: 340px;
    bottom: -120px;
    right: 4%;
    background: radial-gradient(circle at 70% 70%, rgba(201, 162, 75, 0.1), transparent 70%);
}

.qef-section .container {
    z-index: 1;
}

.qef-card {
    width: 100%;
    margin: 0 auto;
    padding: 3.5rem;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 2rem;
    box-shadow: 0 36px 80px rgba(13, 48, 52, 0.16), 0 6px 22px rgba(13, 48, 52, 0.07);
    position: relative;
}

.qef-card::before {
    content: "";
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(13, 48, 52, 0.06);
    border-radius: 1.7rem;
    pointer-events: none;
}

@media (max-width: 767.98px) {
    .qef-card {
        padding: 2.25rem 1.75rem;
    }
}

@media (max-width: 575.98px) {
    .qef-card {
        padding: 1.85rem 1.4rem;
        border-radius: 1.25rem;
    }
    .qef-card::before {
        inset: 6px;
        border-radius: 1rem;
    }
}

/* ---------- Progress indicator ---------- */
.qef-progress {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 2.25rem;
    padding: 0 0.5rem;
}

.qef-progress-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    color: #9aa5a4;
}

.qef-progress-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 18px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: #e2e7e6;
    z-index: 0;
    transition: background 0.4s ease;
}

.qef-progress-step.is-complete:not(:last-child)::after {
    background: var(--bs-primary);
}

.qef-progress-dot {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #e2e7e6;
    font-size: 14px;
    font-weight: 700;
    color: #9aa5a4;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.qef-progress-check {
    display: none;
}

.qef-progress-step.is-active .qef-progress-dot {
    background: var(--bs-primary);
    color: #fff;
    border-color: var(--bs-primary);
    transform: scale(1.12);
    box-shadow: 0 6px 16px rgba(13, 48, 52, 0.25);
}

.qef-progress-step.is-complete .qef-progress-dot {
    background: var(--bs-primary);
    border-color: var(--bs-primary);
    color: #fff;
}

.qef-progress-step.is-complete .qef-progress-num {
    display: none;
}

.qef-progress-step.is-complete .qef-progress-check {
    display: inline-flex;
    font-size: 15px;
}

.qef-progress-label {
    margin-top: 8px;
    font-size: 11.5px;
    font-weight: 600;
    text-align: center;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: inherit;
}

.qef-progress-step.is-active .qef-progress-label,
.qef-progress-step.is-complete .qef-progress-label {
    color: var(--bs-primary);
}

/* ---------- Steps ---------- */
.qef-step {
    animation: qef-step-in 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes qef-step-in {
    from {
        opacity: 0;
        transform: translateX(16px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.qef-step-title {
    color: var(--bs-primary);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    letter-spacing: -0.01em;
}

.qef-field-label {
    font-size: 13px;
    font-weight: 600;
    color: #55605f;
    letter-spacing: 0.02em;
    margin-bottom: 0.6rem;
}

/* ---------- Chip groups (destinations, interests) ---------- */
.qef-chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.qef-chip-input {
    display: none;
}

.qef-chip-input + label {
    display: inline-flex;
    align-items: center;
    padding: 9px 16px;
    border-radius: 999px;
    border: 1.5px solid #e2e7e6;
    background: #fff;
    font-size: 13.5px;
    font-weight: 500;
    color: #444;
    cursor: pointer;
    transition: all 0.18s ease;
    user-select: none;
}

.qef-chip-input:checked + label {
    background: var(--bs-primary);
    border-color: var(--bs-primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(13, 48, 52, 0.2);
}

.qef-chip-input + label:hover {
    border-color: var(--bs-primary);
    transform: translateY(-1px);
}

/* ---------- Preferred contact method ---------- */
.qef-contact-method-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.qef-radio-input {
    display: none;
}

.qef-radio-input + label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 12px;
    border: 1.5px solid #e2e7e6;
    background: #fff;
    font-size: 13.5px;
    font-weight: 600;
    color: #444;
    cursor: pointer;
    transition: all 0.18s ease;
    flex: 1;
    justify-content: center;
    min-width: 130px;
}

.qef-radio-input:checked + label {
    background: var(--bs-primary);
    border-color: var(--bs-primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(13, 48, 52, 0.2);
}

.qef-radio-input + label:hover {
    border-color: var(--bs-primary);
}

/* ---------- Phone / country row ---------- */
.qef-phone-row {
    display: flex;
    gap: 8px;
}

.qef-phone-row .qef-dial-code {
    flex: 0 0 112px;
}

.qef-phone-row .qef-phone-number {
    flex: 1;
}

.qef-country-hint {
    font-size: 12px;
    color: #8a9493;
    margin-top: -0.75rem;
    margin-bottom: 1rem;
}

/* ---------- Nav buttons ---------- */
.qef-nav {
    display: flex;
    gap: 10px;
    margin-top: 1.5rem;
}

.qef-nav .btn {
    flex: 1;
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
    border-radius: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.qef-nav .btn:hover {
    transform: translateY(-2px);
}

.qef-nav .btn-light {
    background: var(--bs-primary);
    color: #fff;
    border-color: var(--bs-primary);
    box-shadow: 0 8px 20px rgba(13, 48, 52, 0.25);
}

.qef-nav .btn-light:hover {
    background: #0a2528;
    border-color: #0a2528;
    color: #fff;
}

.qef-nav .qef-back {
    flex: 0 0 auto;
    min-width: 110px;
    color: var(--bs-primary);
    border-color: #e2e7e6;
}

.qef-nav .qef-back:hover {
    background: #f4f6f5;
    border-color: #e2e7e6;
    color: var(--bs-primary);
}

/* Form control refinements for the premium card (light background, not the dark .form-contact style) */
.qef-card .form-control,
.qef-card .form-select {
    border-radius: 0.75rem;
    border-color: #e2e7e6;
}

.qef-card .form-control:focus,
.qef-card .form-select:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(13, 48, 52, 0.1);
}

.qef-card .form-floating > label {
    color: #8a9493;
}

/* ---------- Success state ---------- */
.qef-success {
    text-align: center;
    padding: 1.5rem 0;
    animation: qef-step-in 0.4s ease both;
}

.qef-success-icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    background: rgba(13, 48, 52, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: qef-pop 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.qef-success-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--bs-primary);
}

@keyframes qef-pop {
    from {
        transform: scale(0.4);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.qef-success h3 {
    color: var(--bs-primary);
    margin-bottom: 0.5rem;
}

.qef-success p {
    color: #666;
    margin-bottom: 0;
}

/* Honeypot — hidden from sighted users, still present for bots to fill */
.cf-hp {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
    .qef-step,
    .qef-success,
    .qef-success-icon {
        animation: none !important;
    }
}
