/* Iceberg Form Wizard Setup Experience Styles */
.wizard-container {
    width: 100%;
    position: relative;
}

/* Stepper Progress Bar */
.wizard-stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    margin-bottom: 2.5rem;
    padding: 0 0.5rem;
}

.wizard-stepper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-50%);
    z-index: 1;
}

.wizard-stepper-line-active {
    position: absolute;
    top: 50%;
    left: 10%;
    height: 2px;
    background: linear-gradient(90deg, #06b6d4, #3b82f6);
    transform: translateY(-50%);
    z-index: 2;
    transition: width 0.4s ease;
}

.wizard-step-indicator {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
}

.wizard-step-bubble {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #091528;
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.95rem;
    color: #94a3b8;
    margin: 0 auto 0.5rem auto;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.wizard-step-indicator.active .wizard-step-bubble {
    background: linear-gradient(135deg, #06b6d4, #2563eb);
    border-color: #38bdf8;
    color: #ffffff;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.5);
    transform: scale(1.1);
}

.wizard-step-indicator.completed .wizard-step-bubble {
    background: #0284c7;
    border-color: #38bdf8;
    color: #ffffff;
}

.wizard-step-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    transition: color 0.3s ease;
}

.wizard-step-indicator.active .wizard-step-label {
    color: #38bdf8;
}

.wizard-step-indicator.completed .wizard-step-label {
    color: #94a3b8;
}

/* Steps Wrapper */
.wizard-step-panel {
    display: none;
    animation: wizardFadeIn 0.35s ease forwards;
}

.wizard-step-panel.active {
    display: block;
}

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

/* Interactive Date Grid */
.date-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 0.6rem;
    margin-top: 0.5rem;
}

.date-pill {
    background: #091528;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.75rem 0.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
}

.date-pill:hover {
    border-color: rgba(6, 182, 212, 0.5);
    background: #0e223d;
}

.date-pill.selected {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.25), rgba(37, 99, 235, 0.25));
    border-color: #06b6d4;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.3);
}

.date-pill .day-name {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #94a3b8;
    font-weight: 700;
}

.date-pill .day-num {
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    margin-top: 2px;
}

/* Time Slot Pills */
.time-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 0.6rem;
    margin-top: 0.5rem;
}

.time-pill {
    background: #091528;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 0.6rem;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: #cbd5e1;
    cursor: pointer;
    transition: all 0.25s ease;
}

.time-pill:hover {
    border-color: rgba(6, 182, 212, 0.5);
    background: #0e223d;
}

.time-pill.selected {
    background: #06b6d4;
    border-color: #38bdf8;
    color: #ffffff;
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.4);
}

/* Meeting Format Pills */
.meeting-format-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.format-pill {
    background: #091528;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.85rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
}

.format-pill:hover {
    border-color: rgba(6, 182, 212, 0.5);
    background: #0e223d;
}

.format-pill.selected {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(37, 99, 235, 0.2));
    border-color: #38bdf8;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.25);
}

.format-pill svg {
    width: 22px;
    height: 22px;
    color: #38bdf8;
}

.format-pill span {
    font-size: 0.8rem;
    font-weight: 700;
    color: #f1f5f9;
}

/* Confirmation Summary Card */
.confirmation-card {
    background: linear-gradient(180deg, rgba(9, 21, 40, 0.8), rgba(2, 6, 23, 0.95));
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.success-badge {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #06b6d4, #2563eb);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem auto;
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.6);
    animation: successPulse 2s infinite alternate;
}

@keyframes successPulse {
    from {
        box-shadow: 0 0 20px rgba(6, 182, 212, 0.4);
    }
    to {
        box-shadow: 0 0 35px rgba(6, 182, 212, 0.8);
    }
}

.summary-box {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.25rem;
    margin: 1.5rem 0;
    text-align: left;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    font-size: 0.88rem;
}

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

.summary-label {
    color: #94a3b8;
    font-weight: 600;
}

.summary-value {
    color: #f8fafc;
    font-weight: 700;
    text-align: right;
}

/* Mobile Responsive Optimizations for Form Popups & Wizard Components */
@media (max-width: 640px) {
    .wizard-stepper {
        margin-bottom: 1.75rem;
    }
    
    .wizard-step-bubble {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }
    
    .wizard-step-label {
        font-size: 0.65rem;
        letter-spacing: 0.02em;
    }
    
    .date-picker-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.4rem;
    }
    
    .date-pill {
        padding: 0.5rem 0.25rem;
    }
    
    .date-pill .day-num {
        font-size: 0.95rem;
    }
    
    .time-picker-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.4rem;
    }
    
    .time-pill {
        padding: 0.5rem;
        font-size: 0.75rem;
    }
    
    .meeting-format-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .format-pill {
        padding: 0.65rem;
        flex-direction: row;
        justify-content: flex-start;
        gap: 0.75rem;
    }
    
    .confirmation-card {
        padding: 1.25rem 1rem;
    }
    
    /* Ensure touch target sizes and prevent mobile browser font auto-zoom */
    .wizard-form input[type="text"],
    .wizard-form input[type="email"],
    .wizard-form input[type="tel"],
    .wizard-form input[type="url"],
    .wizard-form input[type="date"],
    .wizard-form select,
    .wizard-form textarea {
        font-size: 16px !important;
        min-height: 44px;
    }
}

/* intl-tel-input Flag & Dark Mode Styling Overrides */
.iti {
    width: 100% !important;
    display: block !important;
}

.iti__flag-container {
    z-index: 10 !important;
}

.iti__selected-flag {
    background-color: transparent !important;
    border-radius: 8px 0 0 8px !important;
    padding: 0 10px !important;
}

.iti__selected-dial-code {
    color: #38bdf8 !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    margin-left: 4px !important;
}

.iti__country-list {
    background-color: #091528 !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7) !important;
    z-index: 99999 !important;
    max-height: 220px !important;
}

.iti__country {
    padding: 8px 12px !important;
    font-size: 0.85rem !important;
    color: #e2e8f0 !important;
}

.iti__country:hover,
.iti__country.iti__highlight {
    background-color: #0e223d !important;
    color: #38bdf8 !important;
}

.iti__country-name {
    color: #f8fafc !important;
}

.iti__dial-code {
    color: #94a3b8 !important;
}


