/* ============================================================
   Tour Booking Form + Custom Itinerary Modal — Arusha Excursions
   ============================================================ */

/* ---------- Inline per-tour booking form ---------- */
.tour-booking-form {
    background: #fff;
    border-radius: 1.25rem;
    padding: 2rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

@media (max-width: 575.98px) {
    .tour-booking-form {
        padding: 1.5rem 1.25rem;
    }
}

.tour-booking-form .tbf-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--bs-primary);
}

.tour-booking-success {
    text-align: center;
    padding: 1.5rem 0;
}

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

.tour-booking-success-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--bs-primary);
}

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

/* ---------- "Want something different" CTA ---------- */
.custom-itinerary-cta {
    margin-top: 3rem;
    padding: 2rem;
    border-radius: 1rem;
    border: 1px dashed rgba(255, 255, 255, 0.35);
    color: #fff;
}

.custom-itinerary-cta h3 {
    color: #fff;
    margin-bottom: 0.5rem;
}

.custom-itinerary-cta p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.25rem;
}

/* ---------- Custom Itinerary modal ---------- */
#customItineraryModal .modal-content {
    border-radius: 1.25rem;
    border: none;
    overflow: hidden;
}

#customItineraryModal .modal-header {
    background: var(--bs-primary);
    color: #fff;
    border: none;
}

#customItineraryModal .modal-header .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

#customItineraryModal .modal-body {
    padding: 2rem;
}

/* Progress indicator (dark text, light background — modal body is white) */
.cim-progress {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.75rem;
}

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

.cim-progress-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 15px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: #e5e9e8;
    z-index: 0;
}

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

.cim-progress-dot {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #f4f6f5;
    border: 2px solid #e5e9e8;
    font-size: 13px;
    font-weight: 700;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.cim-progress-step.is-active .cim-progress-dot {
    background: var(--bs-primary);
    color: #fff;
    border-color: var(--bs-primary);
    transform: scale(1.08);
}

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

.cim-progress-label {
    margin-top: 6px;
    font-size: 11px;
    text-align: center;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.cim-progress-step.is-active .cim-progress-label,
.cim-progress-step.is-complete .cim-progress-label {
    color: var(--bs-primary);
    font-weight: 600;
}

.cim-step {
    animation: cim-step-in 0.35s ease both;
}

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

/* Interest checkboxes styled as selectable chips */
.cim-interests {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1rem;
}

.cim-interest-chip {
    display: none;
}

.cim-interest-chip + label {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1.5px solid #e5e9e8;
    font-size: 13.5px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}

.cim-interest-chip:checked + label {
    background: var(--bs-primary);
    border-color: var(--bs-primary);
    color: #fff;
}

.cim-nav {
    display: flex;
    gap: 10px;
    margin-top: 0.5rem;
}

.cim-nav .btn {
    flex: 1;
}

.cim-nav .cim-back {
    flex: 0 0 auto;
    min-width: 96px;
}

.cim-success {
    text-align: center;
    padding: 1rem 0;
}

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

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

/* Honeypot */
.cf-hp {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

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