/* Appointment Scheduler Styles */

.asp-scheduler {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    position: relative;
}

/* Loading */
.asp-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.asp-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2271b1;
    border-radius: 50%;
    animation: asp-spin 1s linear infinite;
}

@keyframes asp-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Steps */
.asp-step {
    display: none;
}

.asp-step.asp-active {
    display: block;
    animation: asp-fade-in 0.3s ease-in;
}

@keyframes asp-fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.asp-step h3 {
    margin: 0 0 20px;
    font-size: 24px;
    color: #1d2327;
}

/* Calendar */
.asp-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 10px;
    background: #f6f7f7;
    border-radius: 8px;
}

.asp-calendar-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.asp-cal-nav {
    background: #2271b1;
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.asp-cal-nav:hover {
    background: #135e96;
}

.asp-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.asp-cal-day-name {
    text-align: center;
    font-weight: 600;
    font-size: 12px;
    color: #646970;
    padding: 8px 0;
    text-transform: uppercase;
}

.asp-cal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: default;
    transition: all 0.2s;
}

.asp-cal-day-empty {
    visibility: hidden;
}

.asp-cal-today {
    font-weight: 700;
    color: #2271b1;
}

.asp-cal-past {
    color: #c3c4c7;
    cursor: not-allowed;
}

.asp-cal-available {
    background: #f0f6fc;
    cursor: pointer;
    border: 2px solid #2271b1;
}

.asp-cal-available:hover {
    background: #2271b1;
    color: white;
    transform: scale(1.05);
}

.asp-cal-selected {
    background: #2271b1 !important;
    color: white !important;
}

.asp-cal-unavailable {
    background: #f6f7f7;
    color: #c3c4c7;
}

/* Time Slots */
.asp-duration-selector {
    margin-bottom: 20px;
}

.asp-duration-selector label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1d2327;
}

.asp-time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}

.asp-time-slot {
    padding: 12px;
    background: #f0f6fc;
    border: 2px solid #2271b1;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #2271b1;
    transition: all 0.2s;
}

.asp-time-slot:hover {
    background: #2271b1;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(34, 113, 177, 0.3);
}

.asp-time-slot.asp-selected {
    background: #2271b1;
    color: white;
}

.asp-no-slots {
    text-align: center;
    color: #646970;
    padding: 40px 20px;
    font-style: italic;
}

/* Back Button */
.asp-back-btn {
    margin-bottom: 20px;
}

.asp-btn-back,
.asp-btn-back-time {
    background: transparent;
    border: none;
    color: #2271b1;
    cursor: pointer;
    font-size: 14px;
    padding: 8px 0;
    transition: color 0.2s;
}

.asp-btn-back:hover,
.asp-btn-back-time:hover {
    color: #135e96;
    text-decoration: underline;
}

/* Selected Slot Display */
.asp-selected-slot {
    background: #f0f6fc;
    border-left: 4px solid #2271b1;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.asp-selected-slot p {
    margin: 0;
    color: #1d2327;
}

/* Form */
.asp-form-group {
    margin-bottom: 20px;
}

.asp-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1d2327;
}

.asp-form-group label .required {
    color: #d63638;
}

.asp-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.asp-input:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
}

textarea.asp-input {
    resize: vertical;
    min-height: 80px;
}

/* Buttons */
.asp-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.asp-btn-primary {
    background: #2271b1;
    color: white;
    width: 100%;
}

.asp-btn-primary:hover:not(:disabled) {
    background: #135e96;
}

.asp-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.asp-btn-secondary {
    background: #f6f7f7;
    color: #1d2327;
    border: 1px solid #c3c4c7;
}

.asp-btn-secondary:hover {
    background: #dcdcde;
}

/* Success Message */
.asp-success-message {
    text-align: center;
    padding: 40px 20px;
}

.asp-success-icon {
    width: 80px;
    height: 80px;
    background: #00a32a;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    margin: 0 auto 20px;
    animation: asp-success-pop 0.5s ease-out;
}

@keyframes asp-success-pop {
    0% { transform: scale(0); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.asp-success-message h3 {
    color: #00a32a;
    margin-bottom: 10px;
}

.asp-confirmation-box {
    background: #f0f6fc;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    text-align: left;
}

.asp-confirmation-box p {
    margin: 8px 0;
    color: #1d2327;
}

/* Error Messages */
.asp-error {
    background: #fcf0f1;
    border-left: 4px solid #d63638;
    color: #d63638;
    padding: 12px 16px;
    margin: 20px 0;
    border-radius: 4px;
}

/* Responsive */
@media (max-width: 600px) {
    .asp-scheduler {
        padding: 15px;
    }
    
    .asp-step h3 {
        font-size: 20px;
    }
    
    .asp-time-slots {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    
    .asp-calendar-grid {
        gap: 4px;
    }
    
    .asp-cal-day {
        font-size: 12px;
    }
}
