/*
   DCA Tour Booking — Inline Widget Stylesheet
   Standalone, premium booking form rendered directly on the page
*/

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600&family=Lora:ital,wght@0,400;0,500;1,400&family=Montserrat:wght@300;400;500;600;700;800&display=swap');

/* ===========================
   1. WIDGET CONTAINER
   =========================== */

.dca-inline-widget {
    --gold: #b89047;
    --gold-light: rgba(184, 144, 71, 0.12);
    --gold-border: rgba(184, 144, 71, 0.25);
    --green: #1e3020;
    --green-light: #2b452e;
    --green-bg: rgba(30, 48, 32, 0.04);
    --text: #1a1a1a;
    --text-mid: #4a4a4a;
    --text-light: #888;
    --bg: #fdfbf7;
    --card-bg: #ffffff;
    --border: #efeae0;
    --radius: 10px;
    --shadow: 0 8px 30px rgba(0,0,0,0.06);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    font-family: 'Lora', 'Georgia', serif;
    -webkit-font-smoothing: antialiased;
    max-width: 820px;
    margin: 0 auto;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-top: 4px solid var(--gold);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.dca-inline-widget *,
.dca-inline-widget *::before,
.dca-inline-widget *::after {
    box-sizing: border-box;
}

/* ===========================
   2. TOUR TYPE TABS
   =========================== */

.dca-iw-type-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid var(--border);
}

.dca-iw-type-tab {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    background: var(--bg);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
    text-align: left;
    color: var(--text-light);
}

.dca-iw-type-tab:first-child {
    border-right: 1px solid var(--border);
}

.dca-iw-type-tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform var(--transition);
}

.dca-iw-type-tab.active {
    background: var(--card-bg);
    color: var(--text);
}

.dca-iw-type-tab.active::after {
    transform: scaleX(1);
}

.dca-iw-type-tab:hover:not(.active) {
    background: rgba(253, 251, 247, 0.6);
    color: var(--text-mid);
}

.dca-iw-tab-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition);
}

.dca-iw-type-tab.active .dca-iw-tab-icon {
    background: var(--gold-light);
    border-color: var(--gold-border);
    color: var(--gold);
}

.dca-iw-tab-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.dca-iw-tab-text strong {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dca-iw-tab-text small {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    margin-top: 2px;
    opacity: 0.7;
}

@media (max-width: 520px) {
    .dca-iw-type-tab {
        padding: 14px 12px;
        gap: 8px;
    }
    .dca-iw-tab-icon {
        width: 34px;
        height: 34px;
    }
    .dca-iw-tab-icon svg {
        width: 18px;
        height: 18px;
    }
    .dca-iw-tab-text strong {
        font-size: 0.72rem;
    }
    .dca-iw-tab-text small {
        font-size: 0.62rem;
    }
}

/* ===========================
   3. PROGRESS INDICATOR
   =========================== */

.dca-iw-progress {
    padding: 20px 28px;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    position: relative;
}

.dca-iw-progress-track {
    position: absolute;
    top: 34px;
    left: 80px;
    right: 80px;
    height: 2px;
    background: var(--border);
    border-radius: 1px;
}

.dca-iw-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--gold);
    border-radius: 1px;
    transition: width 0.5s ease;
}

.dca-iw-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.dca-iw-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.dca-iw-step-dot {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-light);
    transition: all var(--transition);
    z-index: 1;
}

.dca-iw-step span {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    transition: color var(--transition);
}

.dca-iw-step.active .dca-iw-step-dot {
    background: var(--gold);
    border-color: var(--gold);
    color: #fff;
    box-shadow: 0 3px 10px rgba(184, 144, 71, 0.3);
}

.dca-iw-step.active span {
    color: var(--text);
}

.dca-iw-step.done .dca-iw-step-dot {
    background: var(--green);
    border-color: var(--green);
    color: #fff;
}

.dca-iw-step.done span {
    color: var(--green);
}

/* ===========================
   4. STEP PANES
   =========================== */

.dca-iw-pane {
    display: none;
    padding: 28px;
    animation: dcaIwFadeIn 0.35s ease;
}

.dca-iw-pane.active {
    display: block;
}

@keyframes dcaIwFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===========================
   5. CALENDAR
   =========================== */

.dca-iw-schedule-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 24px;
}

@media (max-width: 640px) {
    .dca-iw-schedule-grid {
        grid-template-columns: 1fr;
    }
}

.dca-iw-calendar {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
}

.dca-iw-cal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.dca-iw-cal-title {
    font-family: 'Cinzel', serif;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dca-iw-cal-nav {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--card-bg);
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-mid);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    line-height: 1;
}

.dca-iw-cal-nav:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: #fff;
}

.dca-iw-cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-light);
    padding-bottom: 8px;
    margin-bottom: 6px;
    border-bottom: 1px solid var(--border);
    letter-spacing: 0.5px;
}

.dca-iw-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.dca-iw-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 50%;
    cursor: default;
    color: #ccc;
    transition: all 0.2s ease;
    position: relative;
    user-select: none;
}

.dca-iw-day.empty {
    pointer-events: none;
}

.dca-iw-day.available {
    color: var(--text);
    font-weight: 700;
    cursor: pointer;
}

.dca-iw-day.available::after {
    content: '';
    position: absolute;
    bottom: 3px;
    width: 4px;
    height: 4px;
    background: var(--gold);
    border-radius: 50%;
}

.dca-iw-day.available:hover {
    background: var(--gold-light);
    transform: scale(1.1);
}

.dca-iw-day.selected {
    background: var(--gold) !important;
    color: #fff !important;
    box-shadow: 0 3px 10px rgba(184, 144, 71, 0.3);
    transform: scale(1.05);
}

.dca-iw-day.selected::after {
    display: none;
}

.dca-iw-day.today:not(.selected) {
    box-shadow: inset 0 0 0 2px var(--gold-border);
}

/* ===========================
   6. TIME SLOTS
   =========================== */

.dca-iw-timeslots {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.dca-iw-slots-heading {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text);
    margin: 0 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--gold);
    display: inline-block;
    align-self: flex-start;
}

.dca-iw-slots-placeholder {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px 10px;
    color: var(--text-light);
}

.dca-iw-slots-placeholder p {
    font-size: 0.88rem;
    margin: 12px 0 0;
    line-height: 1.5;
}

.dca-iw-slots-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    max-height: 260px;
    overflow-y: auto;
    padding-right: 4px;
}

.dca-iw-slot {
    padding: 11px 8px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-mid);
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
}

.dca-iw-slot:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(184, 144, 71, 0.03);
}

.dca-iw-slot.selected {
    background: var(--green);
    border-color: var(--green);
    color: #fff;
    box-shadow: 0 3px 8px rgba(30, 48, 32, 0.2);
}

.dca-iw-slot.full {
    background: #f5f5f5;
    border-color: #e8e8e8;
    color: #bbb;
    cursor: not-allowed;
    text-decoration: line-through;
    pointer-events: none;
}

/* ===========================
   7. FORM FIELDS
   =========================== */

.dca-iw-selected-slot {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--gold-light);
    border: 1px solid var(--gold-border);
    border-radius: 8px;
    margin-bottom: 24px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
}

.dca-iw-selected-slot svg {
    color: var(--gold);
    flex-shrink: 0;
}

.dca-iw-selected-slot span {
    flex-grow: 1;
}

.dca-iw-change-slot {
    background: none;
    border: none;
    color: var(--gold);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all var(--transition);
}

.dca-iw-change-slot:hover {
    background: var(--gold);
    color: #fff;
}

.dca-iw-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.dca-iw-field {
    display: flex;
    flex-direction: column;
}

.dca-iw-full { grid-column: 1 / -1; }
.dca-iw-half { grid-column: span 1; }
.dca-iw-third { grid-column: span 1; }

@media (min-width: 641px) {
    .dca-iw-form-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    .dca-iw-full { grid-column: 1 / -1; }
    .dca-iw-half { grid-column: span 3; }
    .dca-iw-third { grid-column: span 2; }
}

@media (max-width: 640px) {
    .dca-iw-half { grid-column: 1 / -1; }
    .dca-iw-third { grid-column: 1 / -1; }
}

.dca-iw-field label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text);
    margin-bottom: 5px;
}

.dca-iw-field label .req {
    color: #c62828;
}

.dca-iw-field input,
.dca-iw-field select,
.dca-iw-field textarea {
    font-family: 'Lora', serif;
    padding: 10px 14px;
    font-size: 0.92rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--card-bg);
    color: var(--text);
    transition: all var(--transition);
}

.dca-iw-field input:focus,
.dca-iw-field select:focus,
.dca-iw-field textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-light);
}

.dca-iw-field textarea {
    resize: vertical;
    min-height: 70px;
}

.dca-iw-err {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.66rem;
    color: #c62828;
    margin-top: 3px;
    font-weight: 500;
    display: none;
}

.dca-iw-field.invalid input,
.dca-iw-field.invalid select {
    border-color: #c62828;
    background: rgba(198, 40, 40, 0.02);
}

.dca-iw-field.invalid .dca-iw-err {
    display: block;
    animation: dcaIwFadeIn 0.25s ease;
}

.dca-iw-group-field {
    display: flex;
}

.dca-iw-group-field.hidden {
    display: none !important;
}

/* ===========================
   8. BUTTONS
   =========================== */

.dca-iw-actions {
    margin-top: 24px;
    display: flex;
    justify-content: flex-end;
}

.dca-iw-actions-split {
    justify-content: space-between;
}

.dca-iw-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--transition);
}

.dca-iw-btn-primary {
    background: linear-gradient(135deg, var(--green), var(--green-light));
    color: #fff;
    box-shadow: 0 4px 15px rgba(30, 48, 32, 0.2);
}

.dca-iw-btn-primary:hover:not(:disabled) {
    box-shadow: 0 6px 20px rgba(30, 48, 32, 0.3);
    transform: translateY(-1px);
}

.dca-iw-btn-primary:disabled {
    background: #ccc;
    color: #888;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.dca-iw-btn-ghost {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-mid);
}

.dca-iw-btn-ghost:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.dca-iw-btn-outline {
    background: none;
    border: 2px solid var(--gold);
    color: var(--gold);
    padding: 10px 22px;
}

.dca-iw-btn-outline:hover {
    background: var(--gold);
    color: #fff;
}

.dca-iw-btn.loading {
    color: transparent !important;
    pointer-events: none;
    position: relative;
}

.dca-iw-btn.loading::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    top: 50%;
    left: 50%;
    margin: -9px 0 0 -9px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: dcaIwSpin 0.6s linear infinite;
}

@keyframes dcaIwSpin {
    to { transform: rotate(360deg); }
}

/* ===========================
   9. SUCCESS STATE
   =========================== */

.dca-iw-success {
    text-align: center;
    padding: 20px 0;
    max-width: 460px;
    margin: 0 auto;
}

.dca-iw-success-check {
    width: 72px;
    height: 72px;
    background: var(--green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 8px 25px rgba(30, 48, 32, 0.25);
    animation: dcaIwPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes dcaIwPop {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

.dca-iw-success h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: var(--text);
    text-transform: uppercase;
    margin: 0 0 8px;
    letter-spacing: 0.5px;
}

.dca-iw-success-lead {
    font-size: 1rem;
    color: var(--text-mid);
    margin-bottom: 24px;
}

.dca-iw-summary-card {
    background: var(--bg);
    border: 1px solid var(--gold-border);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: left;
}

.dca-iw-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dotted var(--border);
    font-size: 0.92rem;
}

.dca-iw-summary-row:last-child {
    border-bottom: none;
}

.dca-iw-summary-label {
    font-weight: 700;
    color: var(--text);
}

.dca-iw-summary-val {
    color: var(--text-mid);
}

.dca-iw-success-note {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
}

/* ===========================
   10. LOADING SPINNER
   =========================== */

.dca-iw-loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: dcaIwSpin 0.7s linear infinite;
    margin: 0 auto;
}
