/* Schedule Form Wrapper */
.msa-schedule-form-wrapper {
    margin: 2rem auto;
    padding: 0;
}

.msa-schedule-form {
    width: 100%;
}

/* Schedule Steps */
.msa-schedule-step {
    display: none;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.msa-schedule-step h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    color: #333;
}

.msa-schedule-step > p {
    margin: 0 0 1.5rem 0;
    color: #666;
    font-size: 0.95rem;
}

/* Step 1 - Info Step */
.msa-schedule-info-step {
    display: block;
}

.msa-schedule-info-step label {
    display: block;
    margin-bottom: 1.5rem;
}

.msa-schedule-info-step label span {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.msa-schedule-info-step input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
}

.msa-schedule-info-step input:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

/* Calendar Layout */
.msa-schedule-calendar-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .msa-schedule-calendar-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Calendar Panel */
.msa-schedule-calendar-panel {
    overflow: hidden;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.08);
}

.msa-schedule-calendar-header {
    padding:0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.msa-schedule-calendar-label {
    display: block;
    font-size: 0.85rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.msa-schedule-calendar-month {
    margin: 0.5rem 0 0 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
}

.msa-schedule-calendar-controls {
    display: flex;
    gap: 0.5rem;
}

.msa-schedule-calendar-nav {
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid #ddd;
    background: #eef2ff;
    color: #1d4ed8;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}



/* Calendar Days Grid */
.msa-schedule-calendar-days {
    padding: 1.5rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.msa-schedule-calendar-day {
    display: flex;
    flex-direction: row;
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    background: #fff;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
    text-decoration: none;
}

.msa-schedule-calendar-day:hover:not(.msa-schedule-calendar-day--booked) {
    border-color: #4a90e2;
}

.msa-schedule-calendar-day--active {
    border-color: #4a90e2;
    background: #4a90e2;
    color: #fff;
}

.msa-schedule-day-number {
    display: block;
    font-weight: 700;
}

.msa-schedule-day-name {
    display: block;
    
    opacity: 1;
}

/* Times Panel */
.msa-schedule-times-panel {
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(79, 70, 229, 0.15);
    background: #fff;
}

.msa-schedule-calendar-header .msa-schedule-calendar-label{
        padding-top: 1.5rem;

}
.msa-schedule-slot-display {
        border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.15);
    padding: 0.9rem;
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
    background: #f8fafc;
}
.msa-schedule-times-header {
  padding: 1.5rem 1.5rem 0 1.5rem;
    font-weight: 600;
    color: #333;
}

/* Slot Panels */
.msa-schedule-slot-panels {
    padding: 1.5rem;
    max-height: 400px;
    overflow-y: auto;
}

.msa-schedule-slot-panel {
    display: none;
}

.msa-schedule-slot-panel--active {
    display: block;
}

.msa-schedule-slot-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

@media (max-width: 768px) {
    .msa-schedule-slot-list {
        grid-template-columns: 1fr;
    }
}

.msa-schedule-slot {
    padding: 0.75rem;
    border: 2px solid #ddd;
    background: #fff;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    text-decoration: none;
}

.msa-schedule-slot:hover:not(.msa-schedule-slot--booked):not(.msa-schedule-slot--past) {
    border-color: #4a90e2;
}

.msa-schedule-slot--selected {
    border-color: #4a90e2;
    background: #4a90e2;
    color: #fff;
    font-weight: 600;
}

.msa-schedule-slot--booked,
.msa-schedule-slot--past {
    border-color: #e0e0e0;
    background: #f5f5f5;
    color: #999;
    cursor: not-allowed;
    opacity: 0.6;
}

.msa-schedule-slot-time {
    display: block;
    font-weight: 600;
}

.msa-schedule-slot-status {
    display: block;
    font-size: 0.75rem;
    opacity: 0.8;
    margin-top: 0.25rem;
}

/* Selection Display */
.msa-schedule-selection {
    padding: 1.5rem;
    border-top: 1px solid #e0e0e0;
    background: #fafafa;
}

.msa-schedule-selection label {
    margin: 0;
}

.msa-schedule-selection label span {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.msa-schedule-slot-display {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    font-size: 1rem;
    font-family: inherit;
}

.msa-schedule-slot-display:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

/* Navigation */
.msa-schedule-nav {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: flex-start;
}






.msa-schedule-previous:disabled,
.msa-schedule-next:disabled,
.msa-schedule-submit:disabled {
    background: #ccc;
    color: #999;
    cursor: not-allowed;
}

/* Field Error Messages */
.msa-field-error {
    display: none;
    color: #d63638;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: #fdf2f2;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    border-left: 4px solid #d63638;
}

/* Thank You Message */
.msa-thank-you-message {
    display: none;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
	margin-top: 0rem;
}

.msa-thank-you-message h3 {
    margin: 0 0 1rem 0;
    color: #155724;
    font-size: 1.5rem;
}

.msa-thank-you-message p {
    margin: 0 0 1rem 0;
    color: #333;
    font-size: 1rem;
    text-align: center;
    line-height: 1.5;
}

/* Response Message */
.msa-schedule-response {
    display: none;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
    font-weight: 500;
}

.msa-schedule-response.msa-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.msa-schedule-response.msa-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive Design */
@media (max-width: 480px) {
    .msa-schedule-form-wrapper {
        margin: 1rem;
        padding: 0;
    }

    .msa-schedule-step {
        padding: 1.5rem;
    }

    .msa-schedule-calendar-layout {
        grid-template-columns: 1fr;
    }

    .msa-schedule-calendar-days {
        grid-template-columns: repeat(2, 1fr);
    }

    .msa-schedule-slot-list {
        grid-template-columns: 1fr;
    }

    .msa-schedule-nav {
        flex-direction: column;
    }

    .msa-schedule-previous,
    .msa-schedule-next,
    .msa-schedule-submit {
        width: 100%;
        text-align: center;
    }
}
