/* Cro Booking Module
 * Block 16 - 3-Step Multi-Step Form
 * ------------------------------------------------------------------------------------------------------------------ */

/* CALENDAR BOOKING SECTION */
.cro-booking {
    padding: 2.5rem 1.5rem;
    background: linear-gradient(135deg, var(--color-secondary-normal-bg) 0%, var(--color-secondary-hover-bg) 100%);
    position: relative;
    overflow: hidden;
}

.cro-booking::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -25%;
    width: 70%;
    height: 220%;
    background: radial-gradient(circle, rgba(196, 30, 58, 0.12) 0%, transparent 70%);
    animation: pulse 10s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.15); opacity: 0.5; }
}

.booking-benefits {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: nowrap;
    font-size: 0.9rem;
    color: white;
    margin-top: 1.5rem;
}

.booking-benefits span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    font-weight: 600;
}

.benefit-check {
    color: var(--color-primary-active-bg);
    font-size: 1.3rem;
}

.calendar-widget-container {
    background: white;
    padding: 1.25rem 1.15rem;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.availability-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--success, #10b981);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.75rem;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    border: 2px solid white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pulse-dot {
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(0.95); }
}

.calendar-header-section {
    text-align: center;
    margin-bottom: 1rem;
}

.calendar-title {
    color: var(--color-secondary-normal-bg);
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.calendar-availability {
    color: var(--gray-600, #64748b);
    font-size: 0.875rem;
    line-height: 1.5;
}

.calendar-info-box {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: var(--info-light, #e0f2fe);
    border-radius: 8px;
    border-left: 4px solid var(--info, #0ea5e9);
}

.calendar-info-text {
    color: #0369A1;
    font-size: 0.8rem;
    font-weight: 600;
    margin: 0;
}

.social-proof-box {
    margin-top: 1rem;
    padding: 0.875rem;
    background: var(--success-light, #d1fae5);
    border-radius: 12px;
    border-left: 4px solid var(--success, #10b981);
}

.social-proof-header {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 0.5rem;
}

.avatar-stack {
    display: flex;
    margin-left: -8px;
}

.avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.7rem;
}

.avatar-1 { background: linear-gradient(135deg, #FF6B6B, #EE5A6F); }
.avatar-2 { background: linear-gradient(135deg, #4ECDC4, #44A08D); margin-left: -12px; }
.avatar-3 { background: linear-gradient(135deg, #F7B731, #F79F1F); margin-left: -12px; }

.social-proof-title {
    color: var(--success, #10b981);
    font-weight: 700;
    font-size: 0.85rem;
}

.social-proof-text {
    color: var(--gray-700, #374151);
    font-size: 0.8rem;
    margin: 0;
    line-height: 1.4;
}

/* Expectations Section */
.booking-expectations {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    padding: 1.25rem 1.15rem;
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.booking-expectations h3 {
    color: white;
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.expectations-emoji { font-size: 1.5rem; }

.expectations-intro {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.expectations-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.expectation-item {
    display: flex;
    gap: 0.65rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    border-left: 4px solid var(--color-primary-active-bg);
}

.expectation-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--color-primary-active-bg) 0%, var(--color-primary-normal-bg) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.15rem;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.expectation-content h4 {
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.expectation-content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.8rem;
    line-height: 1.45;
    margin: 0;
}

.time-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.booking-urgency-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    padding: 0.5rem 0.875rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.25);
    margin-top: 1rem;
    border: 1.5px solid #F59E0B;
}

.urgency-text {
    color: #92400E;
    font-size: 0.8rem;
    font-weight: 500;
}

.urgency-text strong { font-weight: 700; color: #78350F; }

.phone-cta-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    padding: 0.625rem 0.75rem;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    margin-top: 1rem;
}

.phone-cta-text {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.825rem;
    font-weight: 600;
}

.phone-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 0.4rem 0.75rem;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.825rem;
    transition: all 0.2s;
}

.phone-cta-button:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-1px);
}

/* ================================================
   MULTI-STEP FORM - FIXED HEIGHT 3-STEP DESIGN
   ================================================ */

.msf-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    min-height: 420px;
}

.msf-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 420px;
}

.msf-success-wrapper {
    justify-content: center;
    align-items: center;
}

.msf-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 420px;
    color: #64748b;
}

.msf-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #e2e8f0;
    border-top-color: var(--color-primary-normal-bg, #2563eb);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

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

/* Progress Bar */
.msf-progress {
    padding: 1.25rem 1.5rem 0;
}

.msf-progress-track {
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
}

.msf-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary-normal-bg, #2563eb), var(--color-primary-hover-bg, #1d4ed8));
    border-radius: 2px;
    transition: width 0.4s ease;
}

.msf-progress-steps {
    display: flex;
    justify-content: space-between;
    margin-top: 0.75rem;
}

.msf-step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
}

.msf-step-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.msf-step-dot svg {
    width: 14px;
    height: 14px;
}

.msf-step-indicator.active .msf-step-dot {
    background: var(--color-primary-normal-bg, #2563eb);
    color: white;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.msf-step-indicator.completed .msf-step-dot {
    background: #10b981;
    color: white;
}

.msf-step-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.msf-step-indicator.active .msf-step-label {
    color: var(--color-primary-normal-bg, #2563eb);
}

.msf-step-indicator.completed .msf-step-label {
    color: #10b981;
}

/* Step Content */
.msf-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.msf-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.25rem 1.5rem;
}

.msf-step-header {
    text-align: center;
    margin-bottom: 1.25rem;
    position: relative;
}

.msf-back-btn {
    position: absolute;
    left: 0;
    top: 0;
    background: none;
    border: none;
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.375rem 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: color 0.2s;
    border-radius: 6px;
}

.msf-back-btn:hover {
    color: #1e293b;
    background: #f1f5f9;
}

.msf-back-icon {
    width: 16px;
    height: 16px;
    display: flex;
}

.msf-back-icon svg {
    width: 100%;
    height: 100%;
}

.msf-step-number {
    display: inline-block;
    background: #f1f5f9;
    color: #64748b;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.msf-step-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 0.25rem;
    line-height: 1.2;
}

.msf-step-subtitle {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

/* Step Body */
.msf-step-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Pill Grid */
.msf-pill-grid {
    display: grid;
    gap: 0.625rem;
}

.msf-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.msf-pill {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 0.5rem;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 85px;
}

.msf-pill:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

.msf-pill:active {
    transform: scale(0.98);
}

.msf-pill.selected {
    background: rgba(37, 99, 235, 0.06);
    border-color: var(--color-primary-normal-bg, #2563eb);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.msf-pill.clicked {
    animation: pillPop 0.25s ease;
}

@keyframes pillPop {
    0% { transform: scale(1); }
    50% { transform: scale(0.96); }
    100% { transform: scale(1); }
}

.msf-pill-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    font-size: 0.55rem;
    font-weight: 800;
    padding: 0.2rem 0.4rem;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
    letter-spacing: 0.5px;
}

.msf-pill-icon {
    width: 28px;
    height: 28px;
    margin-bottom: 0.375rem;
    color: #475569;
    transition: color 0.2s;
}

.msf-pill-icon svg {
    width: 100%;
    height: 100%;
}

.msf-pill.selected .msf-pill-icon {
    color: var(--color-primary-normal-bg, #2563eb);
}

.msf-pill-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #1e293b;
    text-align: center;
    line-height: 1.2;
}

.msf-pill-sublabel {
    font-size: 0.65rem;
    color: #94a3b8;
    margin-top: 0.125rem;
    text-align: center;
}

.msf-pill-check {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 18px;
    height: 18px;
    background: var(--color-primary-normal-bg, #2563eb);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0);
    transition: all 0.2s ease;
}

.msf-pill-check svg {
    width: 10px;
    height: 10px;
}

.msf-pill.selected .msf-pill-check {
    opacity: 1;
    transform: scale(1);
}

/* Input Stack */
.msf-input-stack {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.msf-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.msf-input-label {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #475569;
}

.msf-label-icon {
    width: 14px;
    height: 14px;
    color: #94a3b8;
}

.msf-label-icon svg {
    width: 100%;
    height: 100%;
}

.msf-input {
    width: 100%;
    padding: 0.75rem 0.875rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.9rem;
    font-family: inherit;
    transition: all 0.2s;
    background: #f8fafc;
}

.msf-input:focus {
    outline: none;
    border-color: var(--color-primary-normal-bg, #2563eb);
    background: white;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.msf-input.error {
    border-color: #ef4444;
    background: #fef2f2;
}

.msf-input.shake {
    animation: shake 0.4s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

.msf-input::placeholder {
    color: #94a3b8;
}

/* Step Footer */
.msf-step-footer {
    padding-top: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

/* Trust Bar */
.msf-trust-bar {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.msf-trust-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: #64748b;
}

.msf-trust-icon {
    width: 14px;
    height: 14px;
    color: #10b981;
}

.msf-trust-icon svg {
    width: 100%;
    height: 100%;
}

/* Next Button */
.msf-next-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.875rem 1.25rem;
    background: var(--color-primary-normal-bg, #2563eb);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.msf-next-btn:hover:not(:disabled) {
    background: var(--color-primary-hover-bg, #1d4ed8);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25);
}

.msf-next-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.msf-btn-icon {
    width: 16px;
    height: 16px;
}

.msf-btn-icon svg {
    width: 100%;
    height: 100%;
}

/* Submit Button */
.msf-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    width: 100%;
    padding: 0.875rem 1.25rem;
    background: linear-gradient(135deg, var(--color-primary-normal-bg, #2563eb), var(--color-primary-hover-bg, #1d4ed8));
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.msf-submit-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
}

.msf-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.msf-submit-btn.loading .msf-submit-icon svg {
    animation: spin 1s linear infinite;
}

.msf-submit-icon {
    width: 20px;
    height: 20px;
}

.msf-submit-icon svg {
    width: 100%;
    height: 100%;
}

.msf-submit-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.msf-submit-main {
    font-size: 0.9rem;
    font-weight: 700;
}

.msf-submit-sub {
    font-size: 0.7rem;
    opacity: 0.9;
}

.msf-privacy-note {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.7rem;
    color: #64748b;
    margin: 0;
}

.msf-privacy-icon {
    width: 12px;
    height: 12px;
    color: #10b981;
}

.msf-privacy-icon svg {
    width: 100%;
    height: 100%;
}

/* Success State */
.msf-success {
    text-align: center;
    padding: 2rem 1.5rem;
}

.msf-success-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    animation: successPop 0.5s ease;
    color: white;
}

.msf-success-icon svg {
    width: 32px;
    height: 32px;
}

@keyframes successPop {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); opacity: 1; }
}

.msf-success-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #10b981;
    margin: 0 0 0.5rem;
}

.msf-success-text {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.5;
    margin: 0 0 1.25rem;
}

.msf-success-details {
    background: #f0fdf4;
    border-radius: 10px;
    padding: 0.875rem;
    text-align: left;
}

.msf-success-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.375rem 0;
    font-size: 0.8rem;
    color: #166534;
}

.msf-success-check {
    width: 16px;
    height: 16px;
    background: #10b981;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.msf-success-check svg {
    width: 10px;
    height: 10px;
}

/* Error Toast */
.msf-error-toast {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    color: #dc2626;
    font-size: 0.8rem;
    font-weight: 500;
    animation: slideUp 0.3s ease;
    z-index: 10;
}

@keyframes slideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.msf-error-icon {
    width: 20px;
    height: 20px;
    background: #dc2626;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    flex-shrink: 0;
}

/* ================================================
   RESPONSIVE
   ================================================ */

@media (max-width: 767px) {
    .cro-booking {
        padding: 2rem 1rem;
    }

    .booking-benefits {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .booking-benefits span {
        font-size: 0.75rem;
        padding: 0.375rem 0.625rem;
    }

    .calendar-widget-container {
        padding: 1rem 0.875rem;
    }

    .availability-badge {
        font-size: 0.65rem;
        padding: 0.375rem 0.625rem;
        right: 10px;
        top: -10px;
    }

    /* Multi-Step Form Mobile */
    .msf-container {
        min-height: 400px;
    }

    .msf-wrapper {
        min-height: 400px;
    }

    .msf-progress {
        padding: 1rem 1rem 0;
    }

    .msf-step {
        padding: 1rem;
    }

    .msf-step-title {
        font-size: 1.15rem;
    }

    .msf-step-subtitle {
        font-size: 0.8rem;
    }

    .msf-cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .msf-cols-3 .msf-pill:nth-child(5),
    .msf-cols-3 .msf-pill:nth-child(6) {
        grid-column: span 1;
    }

    /* Make last item full width if odd count */
    .msf-cols-3 .msf-pill:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

    .msf-pill {
        min-height: 75px;
        padding: 0.75rem 0.375rem;
    }

    .msf-pill-icon {
        width: 24px;
        height: 24px;
    }

    .msf-pill-label {
        font-size: 0.75rem;
    }

    .msf-pill-sublabel {
        font-size: 0.6rem;
    }

    .msf-trust-bar {
        gap: 0.625rem;
    }

    .msf-trust-item {
        font-size: 0.65rem;
    }

    .msf-submit-text {
        align-items: center;
        text-align: center;
    }
}

/* Desktop */
@media (min-width: 768px) {
    .cro-booking {
        padding: 3.5rem 2rem;
    }

    .msf-container {
        min-height: 420px;
    }

    .msf-wrapper {
        min-height: 420px;
    }
}

/* ------------------------------------------------------------------------------------------------------------------ */
