/* ============================================
   MEETING SCHEDULER STYLES
   Premium calendar booking component
   ============================================ */

/* Scheduler Wrapper */
.scheduler-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 2.5rem;
    border-radius: 24px;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
}

/* Progress Steps */
.scheduler-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--glass-border);
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.4;
    transition: all 0.3s ease;
}

.progress-step.active {
    opacity: 1;
}

.progress-step.completed {
    opacity: 0.8;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--glass-bg);
    border: 2px solid var(--text-muted);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.progress-step.active .step-number {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-purple));
    border-color: var(--accent-primary);
    color: white;
}

.progress-step.completed .step-number {
    background: #22c55e;
    border-color: #22c55e;
    color: white;
}

.step-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.progress-step.active .step-label {
    color: var(--text-main);
}

.progress-line {
    width: 60px;
    height: 2px;
    background: var(--glass-border);
    margin: 0 8px;
    margin-bottom: 28px;
}

/* Step Styles */
.scheduler-step {
    animation: fadeIn 0.4s ease;
}

.scheduler-step.hidden {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-title {
    text-align: center;
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 2rem;
}

/* Meeting Types */
.meeting-types {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.meeting-type-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border: 2px solid var(--glass-border);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.meeting-type-card:hover {
    border-color: var(--accent-primary);
    background: rgba(0, 210, 255, 0.05);
    transform: translateX(5px);
}

.meeting-type-card.selected {
    border-color: var(--accent-primary);
    background: rgba(0, 210, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.2);
}

.meeting-type-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.meeting-type-info h4 {
    color: var(--text-main);
    font-size: 1.1rem;
    margin: 0 0 0.25rem;
}

.meeting-type-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0 0 0.5rem;
}

.meeting-duration {
    font-size: 0.85rem;
    color: var(--accent-primary);
    font-weight: 500;
}

/* DateTime Picker */
.datetime-picker {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.calendar-section,
.time-section {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
}

/* Calendar */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.calendar-header h4 {
    color: var(--text-main);
    font-size: 1.1rem;
    margin: 0;
}

.calendar-nav {
    width: 36px;
    height: 36px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.calendar-nav:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: var(--bg-dark);
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 8px;
}

.calendar-weekdays span {
    text-align: center;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    padding: 8px 0;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-main);
    transition: all 0.2s ease;
    position: relative;
}

.day:hover:not(.disabled):not(.empty) {
    background: rgba(0, 210, 255, 0.2);
}

.day.empty {
    cursor: default;
}

.day.disabled {
    color: var(--text-muted);
    opacity: 0.3;
    cursor: not-allowed;
}

.day.weekend {
    color: var(--text-muted);
}

.day.today::after {
    content: '';
    position: absolute;
    bottom: 2px;
    width: 4px;
    height: 4px;
    background: var(--accent-primary);
    border-radius: 50%;
}

.day.selected {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-purple));
    color: white;
}

/* Time Slots */
.time-section h4 {
    color: var(--text-main);
    margin: 0 0 0.5rem;
}

.timezone-info {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 1.5rem;
}

.time-slots {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    max-height: 280px;
    overflow-y: auto;
}

.time-slots::-webkit-scrollbar {
    width: 4px;
}

.time-slots::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 2px;
}

.no-date-selected {
    grid-column: span 2;
    color: var(--text-muted);
    text-align: center;
    padding: 2rem;
    font-size: 14px;
}

.time-slot {
    padding: 12px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-main);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.time-slot:hover:not(.booked) {
    border-color: var(--accent-primary);
    background: rgba(0, 210, 255, 0.1);
}

.time-slot.selected {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-purple));
    border-color: var(--accent-primary);
    color: white;
}

.time-slot.booked {
    opacity: 0.4;
    cursor: not-allowed;
    position: relative;
}

.booked-tag {
    display: block;
    font-size: 10px;
    color: #ef4444;
}

/* Step Actions */
.step-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--glass-border);
}

.btn-back {
    padding: 12px 24px;
    background: transparent;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-back:hover {
    border-color: var(--text-main);
    color: var(--text-main);
}

.btn-next {
    padding: 12px 32px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-purple));
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-next:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.btn-next:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 210, 255, 0.3);
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-main);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-primary);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Confirmation View */
.confirmation-view {
    text-align: center;
}

.confirmation-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: rgba(0, 210, 255, 0.1);
    border: 2px solid var(--accent-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.confirmation-icon svg {
    stroke: var(--accent-primary);
}

.summary-card {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    margin: 2rem auto;
    max-width: 500px;
    text-align: left;
}

.summary-row {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--glass-border);
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.summary-info strong {
    display: block;
    color: var(--text-main);
    font-size: 15px;
    margin-bottom: 4px;
}

.summary-info span {
    display: block;
    color: var(--text-muted);
    font-size: 13px;
}

.confirmation-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-confirm {
    padding: 14px 40px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.4);
}

.btn-confirm:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Spinner */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Success View */
.success-view {
    text-align: center;
    padding: 2rem 0;
}

.success-animation {
    margin-bottom: 2rem;
}

.checkmark {
    width: 80px;
    height: 80px;
    margin: 0 auto;
}

.checkmark-circle {
    stroke: #22c55e;
    stroke-width: 2;
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
    stroke: #22c55e;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.4s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

.success-view h3 {
    font-size: 1.75rem;
    color: var(--text-main);
    margin-bottom: 0.75rem;
}

.success-message {
    color: var(--text-muted);
    font-size: 15px;
    max-width: 400px;
    margin: 0 auto 2rem;
}

.success-details {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.success-detail-card {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 10px 16px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 8px;
    color: #22c55e;
    font-size: 14px;
}

.success-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn-calendar {
    padding: 12px 24px;
    background: transparent;
    border: 1px solid var(--accent-primary);
    border-radius: 8px;
    color: var(--accent-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-calendar:hover {
    background: var(--accent-primary);
    color: var(--bg-dark);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .scheduler-wrapper {
        padding: 1.5rem;
        border-radius: 16px;
    }

    .scheduler-progress {
        gap: 0;
        margin-bottom: 2rem;
    }

    .progress-line {
        width: 30px;
    }

    .step-label {
        display: none;
    }

    .datetime-picker {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-group.full-width {
        grid-column: span 1;
    }

    .meeting-type-card {
        padding: 1rem;
        gap: 1rem;
    }

    .meeting-type-icon {
        font-size: 2rem;
    }

    .step-actions {
        flex-direction: column;
        gap: 1rem;
    }

    .btn-back,
    .btn-next {
        width: 100%;
    }

    .confirmation-actions {
        flex-direction: column;
    }

    .success-actions {
        flex-direction: column;
    }

    .success-actions a,
    .success-actions button {
        width: 100%;
    }
}

/* Success View Premium Styles - High Contrast
   ============================================ */

.success-view-premium {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.success-header {
    margin-bottom: 2.5rem;
}

.success-title {
    font-size: 2.4rem;
    /* Increased size */
    font-weight: 800;
    color: #1e293b;
    /* Dark text for white background */
    margin: 0 0 0.8rem;
    letter-spacing: -0.02em;
}

.success-subtitle {
    font-size: 1.25rem;
    /* Increased size */
    color: #64748b;
    /* Darker muted text */
    margin: 0;
    font-weight: 500;
}

/* Success Card */
.success-card {
    background: #f8fafc;
    /* Light gray background */
    border: 2px solid #e2e8f0;
    /* Visible border */
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 2rem;
    text-align: left;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    /* Soft shadow */
}

.success-card-header {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.25rem 2rem;
    background: #ffffff;
    border-bottom: 2px solid #e2e8f0;
    font-weight: 700;
    color: #1e293b;
    font-size: 1.1rem;
}

.success-icon-badge {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #d1fae5;
    /* Green 100 */
    color: #059669;
    /* Green 600 */
    border-radius: 12px;
}

.success-card-body {
    padding: 2rem;
}

.success-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px dashed #cbd5e1;
}

.success-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.success-row:first-child {
    padding-top: 0;
}

.success-label {
    color: #64748b;
    /* Slate 500 */
    font-size: 1rem;
    font-weight: 600;
}

.success-value {
    color: #0f172a;
    /* Slate 900 - Very dark */
    font-weight: 600;
    font-size: 1.05rem;
    /* Increased size */
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-align: right;
}

.type-icon {
    font-size: 1.4rem;
}

/* Info Box */
.success-info-box {
    display: flex;
    gap: 1.25rem;
    padding: 1.5rem;
    background: #eef2ff;
    /* Indigo 50 */
    border: 1px solid #c7d2fe;
    /* Indigo 200 */
    border-radius: 16px;
    text-align: left;
    margin-bottom: 1.25rem;
}

.success-info-admin {
    background: #fffbeb;
    /* Amber 50 */
    border-color: #fde68a;
    /* Amber 200 */
}

.info-icon {
    color: #4f46e5;
    /* Indigo 600 */
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.success-info-admin .info-icon {
    color: #d97706;
    /* Amber 600 */
}

.info-content strong {
    display: block;
    color: #1e293b;
    margin-bottom: 0.4rem;
    font-size: 1.05rem;
    font-weight: 700;
}

.info-content p {
    color: #475569;
    /* Slate 600 */
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Actions Premium */
.success-actions-premium {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-top: 2.5rem;
}

.btn-success-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 16px 24px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    font-weight: 700;
    font-size: 1.05rem;
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.25);
}

.btn-success-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(79, 70, 229, 0.35);
}

.btn-success-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 16px 24px;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    color: #64748b;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-success-secondary:hover {
    background: #f8fafc;
    color: #1e293b;
    border-color: #cbd5e1;
}

@media (min-width: 768px) {
    .success-actions-premium {
        flex-direction: row;
        justify-content: center;
    }

    .btn-success-primary,
    .btn-success-secondary {
        min-width: 220px;
    }
}