/* Calendar Specific Styles */

/* Layout & Grid */
.calendar-container {
    display: block;
    max-width: 1100px;
    margin: 60px auto;
    background: white;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    min-height: auto;
    border: 1px solid rgba(139, 92, 246, 0.1);
}



/* Right Content - Calendar & Form */
.booking-interaction {
    padding: 64px;
    position: relative;
    background: #fff;
}

/* State Management */
.step-container {
    display: none;
    animation: fadeIn 0.4s ease-out forwards;
}

.step-container.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* Calendar Header */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.current-month {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-main);
}

.calendar-nav button {
    background: transparent;
    border: 1px solid #e2e8f0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    color: var(--text-dim);
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.calendar-nav button:hover {
    background: #f8fafc;
    border-color: var(--primary-light);
    color: var(--primary);
}

/* Calendar Grid */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-bottom: 30px;
}

.weekday {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-dim-light);
    text-transform: uppercase;
    padding-bottom: 10px;
}

.day-cell {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
    transition: all 0.2s;
    position: relative;
}

.day-cell.empty {
    cursor: default;
}

.day-cell:not(.empty):not(.disabled):hover {
    background: #f3f0ff;
    color: var(--primary);
}

.day-cell.selected {
    background: var(--primary);
    color: black !important;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.day-cell.disabled {
    color: #cbd5e1;
    cursor: not-allowed;
}

.day-cell.today {
    background: rgba(139, 92, 246, 0.05);
    color: var(--primary);
}

/* Time Slots */
.time-slots-container {
    margin-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 20px;
    display: none;
    /* Hidden until day selected */
}

.time-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    max-height: 250px;
    overflow-y: auto;
    padding-right: 5px;
}

.time-btn {
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: white;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.time-btn:hover,
.time-btn.active {
    border-color: var(--primary);
    background: rgba(139, 92, 246, 0.05);
    box-shadow: 0 0 0 1px var(--primary);
}

/* Booking Form */
.booking-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: 0.2s;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.back-btn {
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    padding: 0;
}

.back-btn:hover {
    color: var(--text-main);
}

.submit-btn {
    width: 100%;
    margin-top: 10px;
}

/* Success State */
.success-message {
    text-align: center;
    padding: 40px 0;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #dcfce7;
    color: #16a34a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 24px;
}

.success-message h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 12px;
}

.success-message p {
    color: var(--text-dim);
    margin-bottom: 30px;
}

/* Calendar Intro */
.calendar-intro {
    text-align: center;
    margin-bottom: 40px;
}

.calendar-intro h1 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.duration-badge {
    background: rgba(139, 92, 246, 0.1);
    color: var(--primary);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Integrated Demo Section */
.calendar-demo-divider {
    text-align: center;
    margin: 40px 0;
    position: relative;
    color: var(--text-dim-light);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.calendar-demo-divider::before,
.calendar-demo-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: rgba(0, 0, 0, 0.05);
}

.calendar-demo-divider::before {
    left: 0;
}

.calendar-demo-divider::after {
    right: 0;
}

.demo-section-integrated {
    background: #f8fafc;
    padding: 30px;
    border-radius: 20px;
    border: 1px dashed rgba(139, 92, 246, 0.2);
}

.demo-section-integrated h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 20px;
    text-align: center;
}

.input-row-calendar {
    display: flex;
    gap: 12px;
}

.phone-input-group-calendar {
    position: relative;
    flex-grow: 1;
}

.phone-input-group-calendar input {
    width: 100%;
    padding: 14px 16px;
    padding-left: 45px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    outline: none;
    transition: 0.2s;
    background: white;
}

.phone-input-group-calendar svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dim);
    width: 18px;
    height: 18px;
}

.call-btn-calendar {
    background: var(--primary);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.2s;
    white-space: nowrap;
}

.call-btn-calendar:hover {
    background: var(--primary-dark);
}

.demo-success-calendar {
    display: none;
    color: #16a34a;
    font-weight: 600;
    text-align: center;
    margin-top: 15px;
}

@media (max-width: 900px) {
    .calendar-container {
        grid-template-columns: 1fr;
        margin: 20px;
    }

    .booking-info {
        padding: 30px;
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .booking-interaction {
        padding: 30px;
    }
}

@media (max-width: 600px) {
    .input-row-calendar {
        flex-direction: column;
    }

    .calendar-intro h1 {
        font-size: 1.75rem;
    }
}