/* ===== ASTRO WIZARD OVERLAY ===== */
.astro-wizard-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 16px;
    backdrop-filter: blur(4px);
}

.astro-wizard-overlay.active {
    display: flex;
}

/* ===== WIZARD CARD ===== */
.astro-wizard-card {
    background: linear-gradient(160deg, #fffde7 0%, #fff9c4 40%, #fef08a 100%);
    border-radius: 28px;
    width: 100%;
    max-width: 480px;
    padding: 36px 32px 32px;
    position: relative;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18), 0 8px 20px rgba(0, 0, 0, 0.10);
    overflow: hidden;
}

.astro-wizard-card::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(255, 214, 0, 0.18);
    pointer-events: none;
}

.astro-wizard-card::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: -40px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 214, 0, 0.13);
    pointer-events: none;
}

/* ===== CLOSE BUTTON ===== */
.astro-wizard-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: rgba(0, 0, 0, 0.08);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 18px;
    cursor: pointer;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background 0.2s;
    z-index: 1;
}

.astro-wizard-close:hover {
    background: rgba(0, 0, 0, 0.15);
}

/* ===== STEP INDICATORS ===== */
.astro-wizard-steps {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
}

.astro-step-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.10);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: background 0.3s, transform 0.2s;
    color: rgba(0, 0, 0, 0.35);
}

.astro-step-dot.active {
    background: #f5c000;
    color: #222;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(245, 192, 0, 0.45);
}

.astro-step-dot.done {
    background: #333;
    color: #ffd600;
}

/* ===== STEP CONTENT ===== */
.astro-wizard-step {
    display: none;
}

.astro-wizard-step.active {
    display: block;
    animation: fadeSlide 0.32s ease;
}

@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateX(28px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== QUESTION HEADLINE ===== */
.astro-wizard-question {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 24px;
    line-height: 1.3;
    font-family: 'Segoe UI', sans-serif;
}

/* ===== TEXT INPUT ===== */
.astro-wizard-input {
    width: 100%;
    background: #fff;
    border: 2px solid rgba(0, 0, 0, 0.12);
    border-radius: 14px;
    padding: 16px 18px;
    font-size: 16px;
    color: #222;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.astro-wizard-input:focus {
    border-color: #f5c000;
    box-shadow: 0 0 0 4px rgba(245, 192, 0, 0.22);
}

/* ===== GENDER CARDS ===== */
.astro-gender-grid {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 8px;
}

.astro-gender-card {
    flex: 1;
    max-width: 150px;
    background: #fff;
    border: 2px solid rgba(0, 0, 0, 0.10);
    border-radius: 18px;
    padding: 22px 12px 16px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
    user-select: none;
}

.astro-gender-card:hover {
    border-color: #f5c000;
    background: #fffbea;
}

.astro-gender-card.selected {
    border-color: #f5c000;
    background: #fff8d6;
    box-shadow: 0 4px 16px rgba(245, 192, 0, 0.35);
    transform: translateY(-2px);
}

.astro-gender-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.astro-gender-card.selected .astro-gender-icon {
    background: #f5c000;
}

.astro-gender-icon svg {
    width: 36px;
    height: 36px;
}

.astro-gender-label {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

/* ===== SCROLL PICKER ===== */
.astro-picker-row {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 8px;
}

.astro-picker-col {
    flex: 1;
    max-width: 120px;
    text-align: center;
}

.astro-picker-col label {
    font-size: 11px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 6px;
}

.astro-picker-scroll {
    height: 132px;
    overflow-y: auto;
    background: #fff;
    border-radius: 14px;
    border: 2px solid rgba(0, 0, 0, 0.08);
    position: relative;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Fade top and bottom thirds so only the center is sharp */
    -webkit-mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0,0,0,0.15) 18%,
        rgba(0,0,0,0.6) 30%,
        black 44%,
        black 56%,
        rgba(0,0,0,0.6) 70%,
        rgba(0,0,0,0.15) 82%,
        transparent 100%
    );
    mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0,0,0,0.15) 18%,
        rgba(0,0,0,0.6) 30%,
        black 44%,
        black 56%,
        rgba(0,0,0,0.6) 70%,
        rgba(0,0,0,0.15) 82%,
        transparent 100%
    );
}

.astro-picker-scroll::-webkit-scrollbar {
    display: none;
}

.astro-picker-item {
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 500;
    color: #aaa;
    cursor: pointer;
    scroll-snap-align: center;
    transition: color 0.15s, font-size 0.15s, font-weight 0.15s;
    position: relative;
    z-index: 1;
}

.astro-picker-item.selected-item {
    color: #1a1a1a;
    font-size: 18px;
    font-weight: 700;
}

/* The gold filled highlight band behind the selected item */
.astro-picker-highlight {
    position: absolute;
    left: 6px;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    height: 44px;
    background: rgba(245, 192, 0, 0.22);
    border-top: 2px solid #f5c000;
    border-bottom: 2px solid #f5c000;
    border-radius: 10px;
    pointer-events: none;
    z-index: 0;
}

/* ===== YES/NO OPTIONS ===== */
.astro-yn-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 8px;
}

.astro-yn-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 2px solid rgba(0, 0, 0, 0.10);
    border-radius: 14px;
    padding: 15px 18px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    transition: all 0.2s;
    user-select: none;
}

.astro-yn-item:hover {
    border-color: #f5c000;
    background: #fffbea;
}

.astro-yn-item.selected {
    border-color: #f5c000;
    background: #fff8d6;
    box-shadow: 0 4px 14px rgba(245, 192, 0, 0.3);
}

.astro-yn-check {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
    font-size: 14px;
}

.astro-yn-item.selected .astro-yn-check {
    background: #22c55e;
    border-color: #22c55e;
    color: #fff;
}

.astro-yn-item.selected-no .astro-yn-check {
    background: #ef4444;
    border-color: #ef4444;
    color: #fff;
}

.astro-yn-note {
    font-size: 12px;
    color: #888;
    margin-top: 6px;
    font-style: italic;
}

/* ===== NEXT BUTTON ===== */
.astro-wizard-btn {
    flex: 1;
    background: #f5c000;
    color: #1a1a1a;
    border: none;
    border-radius: 50px;
    padding: 16px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 24px;
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
    letter-spacing: 0.3px;
}

/* ===== BUTTON ROW (Back + Next) ===== */
.astro-wizard-btn-row {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    margin-top: 0;
}

.astro-wizard-btn-back {
    flex: 0 0 auto;
    background: rgba(0,0,0,0.07);
    color: #444;
    border: none;
    border-radius: 50px;
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 24px;
    transition: background 0.2s;
    white-space: nowrap;
}

.astro-wizard-btn-back:hover {
    background: rgba(0,0,0,0.13);
}

/* ===== CHAT DURATION GRID ===== */
.astro-duration-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 4px;
}

.astro-duration-pill {
    flex: 0 0 auto;
    background: #fff;
    border: 2px solid rgba(0,0,0,0.12);
    border-radius: 50px;
    padding: 10px 22px;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.astro-duration-pill:hover {
    border-color: #f5c000;
    background: #fffbea;
}

.astro-duration-pill.selected {
    background: #f5c000;
    border-color: #f5c000;
    color: #1a1a1a;
    box-shadow: 0 4px 14px rgba(245, 192, 0, 0.4);
    transform: translateY(-1px);
}

/* ===== PICKER SPACER (invisible) ===== */
.astro-picker-spacer {
    pointer-events: none;
    color: transparent !important;
    font-size: 0 !important;
}

.astro-wizard-btn:hover {
    background: #e6b400;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 192, 0, 0.45);
}

.astro-wizard-btn:active {
    transform: scale(0.98);
}

.astro-wizard-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ===== MOBILE ===== */
@media (max-width: 500px) {
    .astro-wizard-card {
        padding: 28px 20px 24px;
        border-radius: 22px;
    }

    .astro-wizard-question {
        font-size: 19px;
    }

    .astro-gender-grid {
        gap: 12px;
    }

    .astro-gender-card {
        max-width: 130px;
        padding: 18px 10px 14px;
    }

    .astro-picker-col {
        max-width: 100px;
    }
}



.iconsizee {
    font-size: 40px;
}