/**
 * Assembly Registration Component Styles
 *
 * @package     Com_Assemblyregistration
 * @author      Troy <troy@thirdsun.com>
 * @copyright   2026 thirdsun.com
 */

/* ===== Wrapper ===== */
.assemblyregistration-wrap {
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem 0;
}

/* ===== Step Indicator (Stepper) ===== */
.ar-stepper {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 1.5rem 1rem 1.25rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.ar-stepper-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 0 0 auto;
    min-width: 80px;
}

.ar-stepper-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #e9ecef;
    color: #adb5bd;
    font-weight: 700;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
    border: 2px solid #dee2e6;
    position: relative;
}

/* Show number by default, hide checkmark */
.ar-step-check {
    display: none;
}

.ar-stepper-label {
    font-size: 0.78rem;
    color: #adb5bd;
    margin-top: 0.5rem;
    white-space: nowrap;
    font-weight: 500;
    text-align: center;
    transition: color 0.25s ease;
}

/* Connector line between steps */
.ar-stepper-line {
    flex: 1;
    height: 2px;
    background: #dee2e6;
    margin: 0 0.25rem;
    margin-top: 21px; /* align vertically with circle centres */
    transition: background 0.3s ease;
    min-width: 24px;
}

/* Active step */
.ar-stepper-step.active .ar-stepper-circle {
    background: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.18);
}

.ar-stepper-step.active .ar-stepper-label {
    color: #0d6efd;
    font-weight: 700;
}

/* Completed step — show checkmark, hide number */
.ar-stepper-step.completed .ar-stepper-circle {
    background: #198754;
    border-color: #198754;
    color: #fff;
}

.ar-stepper-step.completed .ar-step-num {
    display: none;
}

.ar-stepper-step.completed .ar-step-check {
    display: inline;
}

.ar-stepper-step.completed .ar-stepper-label {
    color: #198754;
    font-weight: 600;
}

/* Line turns green when step before it is completed */
.ar-stepper-line.completed {
    background: #198754;
}

/* ===== Step Panel ===== */
.ar-step-panel {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 1.75rem 2rem 2rem;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
}

/* Step header row with numbered badge + title */
.ar-step-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.ar-step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #0d6efd;
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.ar-step-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
    color: #212529;
}

/* ===== Booking summary bar (step 3) ===== */
.ar-booking-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    background: #f0f4ff;
    border: 1px solid #c7d7fb;
    border-radius: 6px;
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
    color: #212529;
}

.ar-booking-summary-sep {
    color: #adb5bd;
}

/* ===== Date Grid ===== */
.ar-date-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ar-date-btn {
    min-width: 80px;
    text-align: center;
    padding: 0.5rem 0.75rem;
    line-height: 1.3;
    font-size: 0.9rem;
    border-radius: 6px;
    transition: all 0.15s ease-in-out;
}

.ar-date-btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Booked / Blocked state */
.ar-date-booked,
.ar-date-blocked {
    opacity: 0.55;
    cursor: not-allowed;
    text-decoration: line-through;
}

.ar-date-booked small,
.ar-date-blocked small {
    text-decoration: none;
    display: block;
    font-size: 0.7rem;
    margin-top: 2px;
}

/* Selected state */
.ar-date-btn.ar-selected {
    background-color: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
}

/* ===== Time Slot Buttons ===== */
.ar-timeslot-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.ar-time-btn {
    min-width: 100px;
    font-size: 1rem;
    padding: 0.6rem 1.25rem;
    border-radius: 6px;
    transition: all 0.15s ease-in-out;
}

.ar-time-btn.ar-selected {
    background-color: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
}

/* ===== Step Transitions ===== */
.ar-step {
    animation: arFadeIn 0.22s ease-in;
}

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

/* ===== Intro Text ===== */
.assemblyregistration-intro {
    background: #f8f9fa;
    border-left: 4px solid #0d6efd;
    padding: 1rem 1.25rem;
    border-radius: 0 6px 6px 0;
    margin-bottom: 1.5rem;
}

/* ===== Confirmation Card ===== */
.assemblyregistration-confirmation .card {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* ===== Responsive ===== */
@media (max-width: 576px) {
    .ar-step-panel {
        padding: 1.25rem 1rem 1.5rem;
    }

    .ar-stepper-step {
        min-width: 60px;
    }

    .ar-stepper-label {
        font-size: 0.68rem;
    }

    .ar-date-btn {
        min-width: 65px;
        font-size: 0.8rem;
        padding: 0.4rem 0.5rem;
    }

    .ar-time-btn {
        min-width: 80px;
    }

    .ar-booking-summary {
        font-size: 0.85rem;
    }
}
