/* === [M32 CSS: BASE LAYOUT START] === */
.atw-tp2-wrapper {
    max-width: 1180px;
    margin: 0 auto;
    padding: 24px 16px 48px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.atw-tp2-layout {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(260px, 1fr);
    gap: 20px;
    margin-top: 10px;
}

@media (max-width: 960px) {
    .atw-tp2-layout {
        grid-template-columns: minmax(0,1fr);
    }
}
/* === [M32 CSS: BASE LAYOUT END] === */


/* === [M32 CSS: HEADER TEXT START] === */
.atw-tp2-header {
    text-align: center;
    margin-bottom: 16px;
}

.atw-tp2-heading-copy p {
    margin: 0;
    font-weight: 600; /* bold heading lines */
}

.atw-tp2-header-space {
    height: 16px; /* space between heading text and buttons */
}
/* === [M32 CSS: HEADER TEXT END] === */


/* === [M32 CSS: START BUTTONS START] === */

/* Container for the two main start buttons */
.atw-tp2-wrapper .atw-tp2-start-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

/* Pill buttons – width follows own text (even when it wraps) */
.atw-tp2-wrapper .atw-tp2-start-buttons .atw-tp2-pill-btn {
    border-radius: 999px !important;
    padding: 10px 20px;
    border-width: 2px;
    border-style: solid;
    font-size: 16px;
    line-height: 1.2;
    cursor: pointer;
    font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    box-shadow: 0 12px 26px rgba(15,23,42,0.35) !important;
    transition:
        transform 0.08s ease-out,
        box-shadow 0.08s ease-out,
        background-color 0.12s ease-out,
        filter 0.12s ease-out;

    /* key sizing rules */
    display: inline-flex !important;     /* shrink to content, like a big chip */
    align-items: center;
    justify-content: center;
    flex: 0 0 auto !important;          /* never stretch */
    width: auto !important;             /* ignore width:100% from theme */
    max-width: 100%;                    /* safe on very small screens */
    white-space: normal;                /* allow 2-line text */
    text-align: center;

    /* colours */
    background: linear-gradient(145deg,#e5f1ff 0%,#b7d4ff 40%,#86b2ff 100%);
    border-color: #4c7fe3;
    color: #012543;
}

/* Hover state */
.atw-tp2-wrapper .atw-tp2-start-buttons .atw-tp2-pill-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 32px rgba(15,23,42,0.45) !important;
    filter: brightness(1.05);
}

/* Variant classes – keep same visual (colour only) */
.atw-tp2-wrapper .atw-tp2-start-buttons .atw-tp2-pill-primary,
.atw-tp2-wrapper .atw-tp2-start-buttons .atw-tp2-pill-outline,
.atw-tp2-wrapper .atw-tp2-start-buttons .atw-tp2-pill-soft {
    background: linear-gradient(145deg,#e5f1ff 0%,#b7d4ff 40%,#86b2ff 100%);
    border-color: #4c7fe3;
    color: #012543;
}

/* === [M32 CSS: START BUTTONS END] === */



/* === [M32 CSS: STEP NAV BUTTONS START] === */
/* FORM-LEVEL STEP BUTTONS */
.atw-tp2-wrapper .atw-tp2-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}
.atw-tp2-wrapper .atw-tp2-step-btn {
    border-radius: 999px;
    border: 2px solid #f3b38a;
    background: linear-gradient(145deg,
        #ffe7cf 0%,
        #f7c79a 40%,
        #f1a56f 100%);
    font-size: 13px;
    padding: 8px 18px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: #1f2933;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    box-shadow: 0 5px 12px rgba(148, 81, 32, 0.25);
    transition:
        background-color 0.12s ease-out,
        border-color 0.12s ease-out,
        box-shadow 0.12s ease-out,
        transform 0.08s ease-out;
}
.atw-tp2-wrapper .atw-tp2-step-btn:hover {
    background: linear-gradient(145deg,
        #ffdcb8 0%,
        #f3b77f 40%,
        #ec954f 100%);
    border-color: #ec954f;
    transform: translateY(-1px);
    box-shadow: 0 7px 16px rgba(148, 81, 32, 0.32);
}
.atw-tp2-wrapper .atw-tp2-step-btn span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: #ffffff;
    font-size: 11px;
    border: 2px solid var(--ast-global-color-0, #2563eb);
    color: var(--ast-global-color-0, #2563eb);
}
.atw-tp2-wrapper .atw-tp2-step-btn-active {
    box-shadow: 0 8px 18px rgba(148, 81, 32, 0.36) !important;
}
/* === [M32 CSS: STEP NAV BUTTONS END] === */


/* === [M32 CSS: CARDS AND FIELDS START] === */
.atw-tp2-wrapper .atw-tp2-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 22px 46px rgba(15,23,42,0.24) !important;
    margin-bottom: 16px;
    overflow: hidden;
}
.atw-tp2-card-header {
    padding: 14px 18px 8px;
    border-bottom: 1px solid #e5e7eb;
}
.atw-tp2-card-header h2 {
    font-size: 18px;
    margin: 0 0 4px;
}
.atw-tp2-card-header p {
    margin: 0;
    color: #6b7280;
    font-size: 13px;
}
.atw-tp2-card-body {
    padding: 14px 18px 16px;
}

.atw-tp2-field {
    margin-bottom: 12px;
}
.atw-tp2-field label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 4px;
}
.atw-tp2-field input[type="text"],
.atw-tp2-field input[type="number"],
.atw-tp2-field input[type="date"],
.atw-tp2-field select,
.atw-tp2-field textarea {
    width: 100%;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    padding: 7px 10px;
    font-size: 13px;
    box-sizing: border-box;
}
.atw-tp2-field textarea {
    resize: vertical;
}
.atw-tp2-field-inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.atw-tp2-grid {
    display: grid;
    gap: 12px;
}
.atw-tp2-grid-2 {
    grid-template-columns: repeat(2, minmax(0,1fr));
}
.atw-tp2-grid-3 {
    grid-template-columns: repeat(3, minmax(0,1fr));
}
@media (max-width: 800px) {
    .atw-tp2-grid-2,
    .atw-tp2-grid-3 {
        grid-template-columns: minmax(0,1fr);
    }
}
/* === [M32 CSS: CARDS AND FIELDS END] === */


/* === [M32 CSS: CHIPS AND CHOICES START] === */
/* INSIDE-BOX CHOICE BUTTONS */
.atw-tp2-option-column {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.atw-tp2-chip-row,
.atw-tp2-chip-grid,
.atw-tp2-chip-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* Base chip */
.atw-tp2-wrapper .atw-tp2-chip {
    border-radius: 999px;
    border: 1px solid #cbd5f1 !important;
    background: #eef2ff !important;
    padding: 4px 10px !important;
    font-size: 11px !important;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease-in-out;
    box-shadow: 0 1px 3px rgba(15,23,42,0.12) !important;
    color: #1e293b !important;
}

/* Vertical radio chips in Basics */
.atw-tp2-wrapper .atw-tp2-card .atw-tp2-option-column .atw-tp2-chip-block-level {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    text-align: center;
    padding: 6px 16px !important;
    font-size: 12px !important;
    min-width: 0 !important;
}

/* Selected chips */
.atw-tp2-wrapper .atw-tp2-chip-selected,
.atw-tp2-wrapper .atw-tp2-chip-toggle.atw-tp2-chip-selected {
    background: #2563eb !important;
    color: #ffffff !important;
    border-color: #1d4ed8 !important;
    box-shadow: 0 3px 7px rgba(15,23,42,0.25) !important;
}

.atw-tp2-wrapper .atw-tp2-chip:not(.atw-tp2-chip-selected):hover {
    background: #e0e7ff !important;
    border-color: #b4c1ff !important;
}
/* === [M32 CSS: CHIPS AND CHOICES END] === */


/* === [M32 CSS: STEPPER AND TEXT HELPERS START] === */
.atw-tp2-stepper {
    display: flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    overflow: hidden;
}
.atw-tp2-stepper button {
    border: none;
    background: #f3f4f6;
    width: 30px;
    height: 28px;
    cursor: pointer;
    font-size: 14px;
}
.atw-tp2-stepper input {
    border: none;
    text-align: center;
    width: 50px;
    padding: 0;
    font-size: 13px;
}

.atw-tp2-muted {
    font-size: 12px;
    color: #6b7280;
}

.atw-tp2-error {
    font-size: 11px;
    color: #dc2626;
    margin-top: 2px;
}
/* === [M32 CSS: STEPPER AND TEXT HELPERS END] === */


/* === [M32 CSS: DESTINATIONS AND RETURN START] === */
.atw-tp2-dest-summary {
    margin-bottom: 10px;
}
.atw-tp2-dest-line {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.atw-tp2-dest-pill {
    padding: 3px 9px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 12px;
}
.atw-tp2-dest-pill-muted {
    background: #f3f4f6;
    color: #6b7280;
}
.atw-tp2-dest-arrow {
    font-size: 13px;
    color: #9ca3af;
}
.atw-tp2-dest-card {
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    padding: 10px 12px 12px;
    margin-bottom: 10px;
    box-shadow: 0 18px 38px rgba(15,23,42,0.22) !important;
}
.atw-tp2-dest-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    font-size: 12px;
    color: #4b5563;
}
.atw-tp2-dest-index {
    font-weight: 600;
}
.atw-tp2-dest-dates {
    color: #6b7280;
}

.atw-tp2-destinations-list {
    margin-top: 8px;
}

/* Smaller inside-section action buttons (e.g. + Add another destination) */
.atw-tp2-add-stop {
    margin-top: 8px;
}

/* Return to starting point row */
.atw-tp2-return-row {
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.atw-tp2-return-label {
    font-size: 13px;
    font-weight: 500;
}

@media (max-width: 800px) {
    .atw-tp2-return-row {
        justify-content: flex-start;
    }
}
/* === [M32 CSS: DESTINATIONS AND RETURN END] === */


/* === [M32 CSS: ACTIVITIES AND STORY START] === */
.atw-tp2-activity-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 10px;
}
@media (max-width: 800px) {
    .atw-tp2-activity-grid {
        grid-template-columns: minmax(0,1fr);
    }
}
.atw-tp2-activity-card {
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 10px 12px 12px;
    background: #f9fafb;
    box-shadow: 0 18px 36px rgba(15,23,42,0.22) !important;
}
.atw-tp2-activity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    margin-bottom: 6px;
}
.atw-tp2-activity-all {
    border: none;
    background: transparent;
    font-size: 11px;
    color: #2563eb;
    cursor: pointer;
}

.atw-tp2-textarea-footer {
    margin-top: 4px;
    display: flex;
    justify-content: space-between;
    font-size: 11px;
}
.atw-tp2-counter {
    color: #6b7280;
}

.atw-tp2-story-right {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.atw-tp2-voice-panel,
.atw-tp2-refine-panel {
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 10px 12px 12px;
    background: #f9fafb;
    box-shadow: 0 18px 36px rgba(15,23,42,0.22) !important;
}
.atw-tp2-voice-title {
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 6px;
}
.atw-tp2-voice-btn {
    border-radius: 999px;
    border: 1px solid #f97316;
    background: #ffedd5;
    padding: 6px 12px;
    font-size: 12px;
    cursor: pointer;
    margin-right: 6px;
}
.atw-tp2-voice-btn-ghost {
    border-color: #d1d5db;
    background: #ffffff;
}
.atw-tp2-refine-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    font-size: 13px;
}
.atw-tp2-refine-btn {
    border-radius: 999px;
    border: 1px solid #2563eb;
    background: #eff6ff;
    padding: 4px 10px;
    font-size: 11px;
    cursor: pointer;
}
.atw-tp2-refine-panel textarea {
    width: 100%;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    padding: 7px 10px;
    font-size: 12px;
    resize: vertical;
}

.atw-tp2-footer-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 8px;
}
/* === [M32 CSS: ACTIVITIES AND STORY END] === */


/* === [M32 CSS: SUMMARY SIDEBAR START] === */
.atw-tp2-summary {
    position: sticky;
    top: 72px;
    align-self: flex-start;
}
.atw-tp2-summary-card {
    background: rgba(255,255,255,0.96);
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 24px 54px rgba(15,23,42,0.32) !important;
    padding: 12px 14px 14px;
    font-size: 13px;
}
.atw-tp2-summary-card h3 {
    margin: 0 0 6px;
    font-size: 15px;
}
.atw-tp2-summary-line {
    margin: 2px 0;
}
.atw-tp2-summary-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 6px;
}
.atw-tp2-summary-tags span {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
}
.atw-tp2-summary-note {
    margin-top: 8px;
}
/* === [M32 CSS: SUMMARY SIDEBAR END] === */


/* === [M32 CSS: STEP VISIBILITY START] === */
.atw-tp2-step { display: none; }
.atw-tp2-step-active { display: block; }
/* === [M32 CSS: STEP VISIBILITY END] === */

/* === [M32 CSS: START BUTTONS MOBILE OVERRIDE START] === */
/* On tablet/mobile, force start buttons to shrink to their text width */
@media (max-width: 960px) {
    .atw-tp2-wrapper .atw-tp2-start-buttons > button,
    .atw-tp2-wrapper .atw-tp2-start-buttons > a {
        flex: 0 0 auto !important;  /* no stretching */
        width: auto !important;     /* do not fill the row */
        max-width: 100%;            /* still safe on very small screens */
        display: inline-flex;       /* width = longest line of wrapped text */
    }
}
/* === [M32 CSS: START BUTTONS MOBILE OVERRIDE END] === */