@charset "UTF-8";

/* ???????????????????????????????????????????????????????????????
   Amelia Booking Flow — style.css
   ??????????????????????????????????????????????????????????????? */

@import url('https://fonts.googleapis.com/css2?family=Cambay:wght@400;700&family=Poppins:wght@400;500;600&display=swap');

:root {
    --abf-brand:       #004494;
    --abf-brand-light: rgba(0, 68, 148, 0.12);
    --abf-brand-mid:   rgba(0, 68, 148, 0.40);
    --abf-text:        #1a1a2e;
    --abf-muted:       #5a6478;
    --abf-border:      #dde2ec;
    --abf-bg:          #f5f7fb;
    --abf-white:       #ffffff;
    --abf-radius:      14px;
}

.abf-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 48px 24px;
    font-family: 'Poppins', sans-serif !important;
    color: var(--abf-text);
}

/* Force Poppins on all children — beats theme/WP monospace overrides */
.abf-wrap *,
.abf-wrap *::before,
.abf-wrap *::after {
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}

/* Let Amelia's calendar manage its own fonts (icon fonts etc.) */
.abf-calendar-container,
.abf-calendar-container *,
.abf-calendar-container *::before,
.abf-calendar-container *::after {
    font-family: revert;
}

/* Headings and visit-type cards use Cambay */
.abf-wrap h2,
.abf-wrap h3,
.abf-wrap .abf-location-info h3,
.abf-wrap .abf-service-info h3,
.abf-wrap .abf-employee-info h3 {
    font-family: 'Cambay', serif !important;
}

.abf-wrap h2 {
    font-family: 'Cambay', serif;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 32px;
    color: var(--abf-brand);
    text-align: center;
    letter-spacing: -0.3px;
}

/* ?? Progress ????????????????????????????????????????????????? */

.abf-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 56px;
    position: relative;
}

/* Track line */
.abf-progress-track {
    position: absolute;
    top: 19px;
    left: 5%;
    right: 5%;
    height: 2px;
    background: var(--abf-border);
    z-index: 0;
}

.abf-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    flex: 1;
}

.abf-step-number {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--abf-border);
    color: var(--abf-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    transition: background 0.3s, color 0.3s, transform 0.3s, box-shadow 0.3s;
    position: relative;
    z-index: 3;
    border: none;
}

.abf-progress-step.active .abf-step-number {
    background: var(--abf-brand);
    color: var(--abf-white);
}

.abf-progress-step.completed .abf-step-number {
    background: #f0f0f0;
    color: transparent;
    box-shadow: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23004494' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px 16px;
}

.abf-step-label {
    font-size: 12px;
    color: var(--abf-muted);
    text-align: center;
    font-weight: 500;
}

.abf-progress-step.active .abf-step-label {
    color: var(--abf-brand);
    font-weight: 600;
}

.abf-progress-step.completed .abf-step-label {
    color: var(--abf-muted);
}

.abf-progress-step.completed {
    cursor: pointer;
}

.abf-progress-step.completed:hover .abf-step-number {
    transform: scale(1.1);
}

/* ?? Steps ???????????????????????????????????????????????????? */

.abf-step {
    display: none;
    animation: abf-fadein 0.35s ease;
}

.abf-step.active {
    display: block;
}

@keyframes abf-fadein {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Card stagger entrance */
@keyframes abf-card-in {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ?? Skeleton Loading ?????????????????????????????????????????? */

@keyframes abf-shimmer {
    0%   { background-position: -600px 0; }
    100% { background-position: 600px 0; }
}

.abf-skeleton-card {
    border-radius: var(--abf-radius);
    overflow: hidden;
    background: var(--abf-bg);
    border: 2px solid var(--abf-border);
}

.abf-skeleton-img {
    height: 200px;
    background: linear-gradient(90deg, #e8edf5 25%, #f5f7fb 50%, #e8edf5 75%);
    background-size: 600px 100%;
    animation: abf-shimmer 1.4s infinite linear;
}

.abf-skeleton-body {
    padding: 16px;
}

.abf-skeleton-line {
    height: 14px;
    border-radius: 6px;
    background: linear-gradient(90deg, #e8edf5 25%, #f5f7fb 50%, #e8edf5 75%);
    background-size: 600px 100%;
    animation: abf-shimmer 1.4s infinite linear;
    margin-bottom: 10px;
}

.abf-skeleton-line.short { width: 60%; }
.abf-skeleton-line.medium { width: 80%; }
.abf-skeleton-line:last-child { margin-bottom: 0; }

/* ?? Location Grid ???????????????????????????????????????????? */

.abf-location-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    margin-bottom: 32px;
}

.abf-location-card {
    border: 2px solid var(--abf-border);
    border-radius: var(--abf-radius);
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
    background: var(--abf-white);
    position: relative;
    opacity: 0;
    animation: abf-card-in 0.35s ease forwards;
}

.abf-location-card:hover {
    border-color: var(--abf-brand);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--abf-brand-light);
}

.abf-location-card.selected {
    border-color: var(--abf-brand);
    box-shadow: 0 0 0 3px var(--abf-brand-light);
}

/* Checkmark badge */
.abf-location-card.selected::after,
.abf-service-card.selected::after,
.abf-employee-card.selected::after {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 26px;
    height: 26px;
    background: var(--abf-brand);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,68,148,0.4);
    animation: abf-check-pop 0.2s ease;
    /* CSS checkmark via clip */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px 14px;
}

@keyframes abf-check-pop {
    from { transform: scale(0); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

/* Full bleed image */
.abf-location-image {
    width: 100%;
    height: 190px;
    background-size: cover;
    background-position: center;
    background-color: var(--abf-bg);
}

.abf-location-info {
    padding: 18px 20px 20px;
}

.abf-location-info h3 {
    font-family: 'Cambay', serif;
    margin: 0 0 4px;
    font-size: 18px;
    color: var(--abf-text);
}

.abf-location-addr,
.abf-location-desc {
    margin: 4px 0 0;
    font-size: 14px;
    color: var(--abf-muted);
    line-height: 1.5;
}

/* ?? Visit Type Step ?????????????????????????????????????????? */

.abf-visit-type-label {
    font-size: 17px;
    font-weight: 600;
    margin: 0 0 16px;
    color: var(--abf-text);
}

/* ?? Booking Notice ??????????????????????????????????????????? */

.abf-notice {
    background: #f0f5ff;
    border-left: 4px solid var(--abf-brand);
    border-radius: 6px;
    padding: 20px 24px;
    margin-bottom: 32px;
    font-size: 14px;
    color: var(--abf-text);
    line-height: 1.6;
}

.abf-notice p {
    margin: 0 0 10px !important;
}

.abf-notice p:last-child {
    margin-bottom: 0 !important;
}

.abf-notice a {
    color: var(--abf-brand);
}

.abf-visit-type-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 36px;
}

.abf-visit-type-toggle {
    display: inline-flex;
    background: #e8edf5;
    border-radius: 50px;
    padding: 4px;
    margin-bottom: 0;
}

.abf-visit-type-card {
    padding: 12px 32px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 600;
    border: none;
    background: transparent;
    color: var(--abf-muted);
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}

.abf-visit-type-card:hover,
.abf-visit-type-card:focus {
    background: transparent;
    color: var(--abf-muted);
    outline: none;
}

.abf-visit-type-card.selected {
    background: var(--abf-brand);
    color: var(--abf-white);
    box-shadow: 0 2px 8px rgba(0, 68, 148, 0.3);
}

/* ?? Services Grid ???????????????????????????????????????????? */

.abf-step-2 .abf-services-grid {
    margin-top: 32px;
    max-width: 825px;
    margin-left: auto;
    margin-right: auto;
}

.abf-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}

.abf-service-card {
    border: 2px solid var(--abf-border);
    border-radius: var(--abf-radius);
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
    background: var(--abf-white);
    position: relative;
    opacity: 0;
    animation: abf-card-in 0.35s ease forwards;
}

.abf-service-card:hover {
    border-color: var(--abf-brand);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px var(--abf-brand-light);
}

.abf-service-card.selected {
    border-color: var(--abf-brand);
    box-shadow: 0 0 0 3px var(--abf-brand-light);
}

/* Full bleed image with gradient overlay */
.abf-service-card-image-wrap {
    position: relative;
    height: 180px;
}

.abf-service-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-color: var(--abf-bg);
}

.abf-service-card-image-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.55) 100%);
    border-radius: 0;
    pointer-events: none;
}

.abf-service-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 16px;
    z-index: 1;
}

.abf-service-card-overlay h3 {
    font-family: 'Cambay', serif !important;
    margin: 0;
    font-size: 17px;
    color: #fff !important;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.abf-service-info {
    padding: 14px 16px 16px;
}

.abf-service-desc {
    margin: 0;
    font-size: 13px;
    color: var(--abf-muted);
    line-height: 1.5;
}

.abf-service-desc p { margin: 0 0 6px; }
.abf-service-desc p:last-child { margin-bottom: 0; }

/* ?? Employees Grid ??????????????????????????????????????????? */

.abf-employees-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.abf-employee-card {
    border: 2px solid var(--abf-border);
    border-radius: var(--abf-radius);
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
    background: var(--abf-white);
    text-align: center;
    position: relative;
    opacity: 0;
    animation: abf-card-in 0.35s ease forwards;
}

.abf-employee-card:hover {
    border-color: var(--abf-brand);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px var(--abf-brand-light);
}

.abf-employee-card.selected {
    border-color: var(--abf-brand);
    box-shadow: 0 0 0 3px var(--abf-brand-light);
}

/* Full bleed image with gradient overlay */
.abf-employee-card-image-wrap {
    position: relative;
    height: 240px;
}

.abf-employee-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center top;
    background-color: var(--abf-bg);
}

.abf-employee-card-image-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 45%, rgba(0,0,0,0.6) 100%);
    pointer-events: none;
}

.abf-employee-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 14px;
    z-index: 1;
    text-align: center;
}

.abf-employee-card-overlay h3 {
    font-family: 'Cambay', serif !important;
    margin: 0;
    font-size: 17px;
    color: #fff !important;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.abf-employee-info {
    padding: 12px 14px 16px;
    text-align: left;
}

.abf-employee-desc {
    margin: 0;
    font-size: 13px;
    color: var(--abf-muted);
    line-height: 1.5;
}

.abf-employee-desc p { margin: 0 0 6px !important; }
.abf-employee-desc p:last-child { margin-bottom: 0 !important; }

/* ?? Summary bar (step 5) ????????????????????????????????????? */

.abf-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    background: var(--abf-brand-light);
    border: 1px solid var(--abf-brand-mid);
    border-radius: 10px;
    padding: 14px 20px;
    margin-bottom: 28px;
    font-size: 14px;
    color: var(--abf-text);
    align-items: center;
}

.abf-summary-item strong {
    color: var(--abf-brand);
    margin-right: 4px;
    font-weight: 600;
}

.abf-summary-sep {
    color: var(--abf-brand-mid);
}

/* ?? Calendar Container ??????????????????????????????????????? */

.abf-calendar-container {
    min-height: 400px;
    background: var(--abf-white);
    border-radius: var(--abf-radius);
    border: 1px solid var(--abf-border);
    padding: 20px;
    margin-bottom: 20px;
}

.amelia-v2-booking,
.amelia-v2-booking #amelia-container {
    margin-top: 60px !important;
    margin-bottom: 60px !important;
}

/* ?? Payment step ?????????????????????????????????????????????? */

.abf-payment-info {
    text-align: center;
    font-size: 16px;
    color: var(--abf-muted);
    padding: 48px 20px;
}

/* ?? Back Button ?????????????????????????????????????????????? */

.abf-back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 24px auto 0;
    padding: 0;
    border: 2px solid var(--abf-border);
    background: var(--abf-white);
    color: var(--abf-muted);
    border-radius: 50%;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
    font-size: 18px;
    line-height: 1;
}

.abf-back-btn:hover {
    border-color: var(--abf-brand);
    color: var(--abf-brand);
    background: var(--abf-brand-light);
}

/* ?? Loading / Messages ??????????????????????????????????????? */

.abf-loading {
    text-align: center;
    padding: 48px 20px;
    color: var(--abf-muted);
    font-size: 15px;
    grid-column: 1 / -1;
}

.abf-message {
    text-align: center;
    padding: 32px 20px;
    font-size: 15px;
    color: var(--abf-muted);
    grid-column: 1 / -1;
}

.abf-message.abf-error {
    color: #c62828;
}

/* ?? Responsive ??????????????????????????????????????????????? */

@media (max-width: 1024px) {
    .abf-location-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .abf-wrap {
        padding: 0px 0px;
    }

    .abf-progress {
        margin-bottom: 36px;
    }

    .abf-step-label {
        font-size: 10px;
    }

    .abf-step-number {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .abf-wrap h2 {
        font-size: 22px;
    }

    .abf-location-grid,
    .abf-services-grid,
    .abf-employees-grid {
        grid-template-columns: 1fr;
    }

    .abf-visit-type-toggle {
        width: 100%;
    }

    .abf-visit-type-card {
        flex: 1;
        text-align: center;
        padding: 10px 16px;
        font-size: 14px;
    }

    .abf-summary {
        flex-direction: column;
        gap: 6px;
    }

    .abf-summary-sep {
        display: none;
    }

    .amelia-v2-booking,
    .amelia-v2-booking #amelia-container {
        margin-top: 10px !important;
        margin-bottom: 10px !important;
    }
}