/* Agenda Frontend Booking Styles - Calendly Aesthetic */

:root {
    --agenda-primary: #4f46e5;
    --agenda-primary-hover: #4338ca;
    --agenda-primary-light: #eef2ff;
    --agenda-text: #1f2937;
    --agenda-text-muted: #6b7280;
    --agenda-bg: #ffffff;
    --agenda-border: #e5e7eb;
    --agenda-radius: 12px;
    --agenda-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
}

.agenda-booking-wrapper {
    max-width: 860px;
    margin: 30px auto;
    background: var(--agenda-bg);
    border-radius: var(--agenda-radius);
    box-shadow: var(--agenda-shadow);
    border: 1px solid var(--agenda-border);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--agenda-text);
    overflow: hidden;
}

/* Progress Steps Bar */
.agenda-progress-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 30px;
    background: #f9fafb;
    border-bottom: 1px solid var(--agenda-border);
}

.agenda-progress-step {
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.agenda-progress-step.active,
.agenda-progress-step.completed {
    opacity: 1;
}

.agenda-progress-step .step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #d1d5db;
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.agenda-progress-step.active .step-num {
    background: var(--agenda-primary);
}

.agenda-progress-step.completed .step-num {
    background: #10b981;
}

.agenda-progress-step .step-label {
    font-size: 14px;
    font-weight: 600;
}

.agenda-progress-divider {
    flex: 1;
    height: 2px;
    background: #e5e7eb;
    margin: 0 15px;
}

/* Card Body */
.agenda-card-body {
    padding: 35px;
}

.agenda-step-panel {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

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

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

.agenda-step-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 6px 0;
}

.agenda-step-subtitle {
    color: var(--agenda-text-muted);
    margin: 0 0 25px 0;
    font-size: 14px;
}

/* Services Grid */
.agenda-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.agenda-service-card {
    position: relative;
    border: 1px solid var(--agenda-border);
    border-radius: 10px;
    padding: 20px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.agenda-service-card:hover {
    border-color: var(--agenda-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(79, 70, 229, 0.12);
}

.agenda-service-color-bar {
    height: 4px;
    width: 40px;
    border-radius: 2px;
    margin-bottom: 12px;
}

.agenda-service-info h4 {
    margin: 0 0 8px 0;
    font-size: 18px;
}

.agenda-service-desc {
    color: var(--agenda-text-muted);
    font-size: 13px;
    margin: 0 0 15px 0;
    line-height: 1.4;
}

.agenda-service-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.meta-tag {
    background: var(--agenda-primary-light);
    color: var(--agenda-primary);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* Step 2 Date Time Layout */
.agenda-step-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--agenda-border);
}

.agenda-btn-back {
    background: none;
    border: none;
    color: var(--agenda-primary);
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
}

.agenda-selected-summary {
    font-weight: 600;
    font-size: 14px;
    color: var(--agenda-text-muted);
}

.agenda-date-time-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 30px;
}

@media (max-width: 680px) {
    .agenda-date-time-layout {
        grid-template-columns: 1fr;
    }
}

/* Calendar Component */
.agenda-calendar-container {
    background: #f9fafb;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid var(--agenda-border);
}

.agenda-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.month-year-title {
    font-weight: 700;
    font-size: 16px;
}

.calendar-nav-btn {
    background: #fff;
    border: 1px solid var(--agenda-border);
    border-radius: 6px;
    padding: 6px 12px;
    cursor: pointer;
    font-weight: bold;
}

.agenda-calendar-grid, .agenda-calendar-days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    gap: 5px;
}

.calendar-day-header {
    font-size: 12px;
    font-weight: 600;
    color: var(--agenda-text-muted);
    padding: 8px 0;
}

.calendar-day-cell {
    padding: 10px 0;
    font-size: 13px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    background: #fff;
    border: 1px solid transparent;
}

.calendar-day-cell.available {
    color: var(--agenda-primary);
    font-weight: 700;
    border-color: #c7d2fe;
}

.calendar-day-cell.available:hover {
    background: var(--agenda-primary);
    color: #fff;
}

.calendar-day-cell.selected {
    background: var(--agenda-primary) !important;
    color: #fff !important;
}

.calendar-day-cell.disabled {
    color: #d1d5db;
    cursor: not-allowed;
    background: transparent;
}

/* Slots Grid */
.agenda-slots-container {
    padding: 10px 0;
}

.agenda-slots-title {
    margin: 0 0 15px 0;
    font-size: 16px;
}

.agenda-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    max-height: 320px;
    overflow-y: auto;
}

.slot-btn {
    background: #fff;
    border: 1px solid var(--agenda-primary);
    color: var(--agenda-primary);
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;

}

.slot-btn:hover, .slot-btn.selected {
    background: var(--agenda-primary);
    color: #fff;
}

/* Buttons & Inputs */
.agenda-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: background 0.2s;
}

.agenda-btn-primary {
    background: var(--agenda-primary);
    color: #fff;
}

.agenda-btn-primary:hover {
    background: var(--agenda-primary-hover);
}

.agenda-btn-outline {
    background: transparent;
    border: 1px solid var(--agenda-primary);
    color: var(--agenda-primary);
}

.agenda-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

@media (max-width: 550px) {
    .agenda-form-grid {
        grid-template-columns: 1fr;
    }
}

.agenda-form-group {
    margin-bottom: 18px;
}

.agenda-form-group label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 6px;
}

.agenda-form-group input,
.agenda-form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--agenda-border);
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
}

/* Success Card */
.agenda-success-wrapper {
    text-align: center;
    padding: 20px 0;
}

.agenda-success-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #d1fae5;
    color: #059669;
    font-size: 30px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
}

.agenda-confirmation-card {
    background: #f9fafb;
    border: 1px solid var(--agenda-border);
    border-radius: 10px;
    padding: 20px;
    max-width: 450px;
    margin: 25px auto;
    text-align: left;
}

.agenda-alert {
    padding: 12px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 15px;
}

.agenda-alert-danger {
    background: #fee2e2;
    color: #991b1b;
}

.agenda-alert-warning {
    background: #fef3c7;
    color: #92400e;
}
