/* Shared with Project Inquiry: public form layout and translucent surfaces. */
.project-inquiry-page-hero,
.public-form-hero {
    margin-top: 3rem;
}

.project-inquiry-page-kicker,
.public-form-kicker {
    margin: 0 0 0.65rem;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08rem;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.54);
}

.public-form-hero h1 {
    overflow-wrap: anywhere;
}

.project-inquiry-page-section,
.public-form-section {
    padding: clamp(2rem, 5vw, 3rem) 0 clamp(4rem, 8vw, 6rem);
}

.project-inquiry-page-shell,
.public-form-shell {
    width: min(calc(100% - 4rem), 50rem);
    margin: 0 auto;
}

.project-inquiry-page-intro,
.public-form-intro {
    max-width: 38rem;
    margin: 0 0 1.4rem;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.45;
    color: rgba(7, 7, 7, 0.62);
}

.project-inquiry-page-form,
.public-form-card {
    padding: 1.25rem;
    border-radius: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.62);
    background: rgba(255, 255, 255, 0.32);
    box-shadow: 0 1.5rem 3rem -2rem rgba(0, 0, 0, 0.18);
    box-sizing: border-box;
}

.project-inquiry-page-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.project-inquiry-page-field,
.public-form-field {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    min-width: 0;
}

.project-inquiry-page-field label,
.public-form-field label {
    font-size: 0.9rem;
    font-weight: 700;
    color: rgba(7, 7, 7, 0.7);
}

.project-inquiry-page-field input,
.project-inquiry-page-field select,
.project-inquiry-page-field textarea,
.public-form-input {
    width: 100%;
    min-height: 3.4rem;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 1.6rem;
    background: rgba(255, 255, 255, 0.58);
    box-sizing: border-box;
    color: #070707;
    font: inherit;
    outline: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.66);
    appearance: none;
    -webkit-appearance: none;
}

.project-inquiry-page-field textarea {
    min-height: 12rem;
    resize: vertical;
}

.project-inquiry-page-message,
.project-inquiry-page-actions {
    grid-column: 1 / -1;
}

.project-inquiry-page-actions,
.public-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 0.25rem;
}

.project-inquiry-page-actions .btn-primary p,
.public-form-shell .btn-primary p {
    margin: 0;
}

.public-form-shell .btn-primary {
    font-family: inherit;
}

.public-form-shell .btn-primary:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.public-form-heading {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.025rem;
}

.public-form-copy {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(7, 7, 7, 0.66);
}

.public-form-note {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.5;
    color: rgba(7, 7, 7, 0.6);
}

.public-form-link {
    padding: 0;
    border: 0;
    background: transparent;
    color: #070707;
    font: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 0.2rem;
    cursor: pointer;
}

.public-form-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 1rem 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 1.6rem;
    background: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
    line-height: 1.5;
}

.public-form-notice-error {
    color: #92372f;
    border-color: rgba(146, 55, 47, 0.2);
}

.public-form-notice-success {
    color: #070707;
    border-color: rgba(33, 255, 208, 0.6);
    background: rgba(33, 255, 208, 0.18);
}

.public-form-input:focus-visible,
.public-form-shell .btn-primary:focus-visible,
.public-form-link:focus-visible,
.public-form-card > summary:focus-visible,
.project-inquiry-page-field :is(input, select, textarea):focus-visible {
    outline: 2px solid #21FFD0;
    outline-offset: 3px;
}

.booking-intro {
    display: grid;
    gap: 0.35rem;
}

.booking-intro-lead {
    margin: 0;
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.02rem;
    color: #070707;
}

.booking-intro-meta {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.5;
    color: rgba(7, 7, 7, 0.7);
}

.booking-intro-meta strong {
    color: #070707;
    font-weight: 700;
}

.booking-appointment-time {
    margin: 0;
    font-size: clamp(1.25rem, 3vw, 1.7rem);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.025rem;
}

.booking-card-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(7, 7, 7, 0.08);
}

/* "Other actions" dropdown */
.booking-actions {
    position: relative;
}

.booking-actions-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 1.6rem;
    background: rgba(255, 255, 255, 0.58);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.66);
    color: #070707;
    font: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 150ms, border-color 150ms;
}

.booking-actions-trigger:hover,
.booking-actions.is-open .booking-actions-trigger {
    border-color: rgba(33, 255, 208, 0.45);
    background: rgba(255, 255, 255, 0.85);
}

.booking-actions-trigger .ph {
    font-size: 1rem;
    transition: transform 200ms ease;
}

.booking-actions.is-open .booking-actions-trigger .ph {
    transform: rotate(180deg);
}

.booking-actions-panel {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    z-index: 20;
    display: grid;
    gap: 0.15rem;
    min-width: 14rem;
    padding: 0.4rem;
    border: 1px solid rgba(7, 7, 7, 0.08);
    border-radius: 1.2rem;
    background: #ffffff;
    box-shadow: 0 1.5rem 3rem -1.5rem rgba(0, 0, 0, 0.35);
    opacity: 0;
    transform: translateY(-0.4rem) scale(0.98);
    transform-origin: top left;
    transition: opacity 180ms ease, transform 180ms ease;
}

.booking-actions-panel[hidden] {
    display: none;
}

.booking-actions.is-open .booking-actions-panel {
    opacity: 1;
    transform: none;
}

.booking-actions-panel form {
    margin: 0;
}

.booking-actions-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 0;
    border-radius: 0.85rem;
    background: transparent;
    color: rgba(7, 7, 7, 0.8);
    font: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
    transition: background-color 120ms;
}

.booking-actions-item .ph {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.booking-actions-item:hover {
    background: rgba(7, 7, 7, 0.05);
    color: #070707;
}

.booking-actions-item-danger {
    color: #92372f;
}

.booking-actions-item-danger:hover {
    background: rgba(146, 55, 47, 0.08);
    color: #92372f;
}

.booking-actions-trigger:focus-visible,
.booking-actions-item:focus-visible,
.booking-day-nav-btn:focus-visible {
    outline: 2px solid #21FFD0;
    outline-offset: 3px;
}

/* Day-by-day slot navigation */
.booking-day-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.booking-day-nav-label {
    display: grid;
    min-width: 0;
    text-align: center;
}

.booking-slot-heading {
    font-weight: 500;
}

.booking-slot-divider {
    width: 100%;
    margin: 0;
    border: 0;
    border-top: 1px solid rgba(7, 7, 7, 0.12);
}

[data-day-feedback][hidden],
[data-day-nav][hidden] {
    display: none;
}

.booking-day-nav-label strong {
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.01rem;
}

.booking-day-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.6rem;
    height: 2.6rem;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.58);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.66);
    color: #070707;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 150ms, border-color 150ms, opacity 150ms;
}

.booking-day-nav-btn:hover:not(:disabled) {
    border-color: rgba(33, 255, 208, 0.45);
    background: rgba(255, 255, 255, 0.85);
}

.booking-day-nav-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.booking-day-paged .booking-slot-day legend {
    display: none;
}

@media (prefers-reduced-motion: reduce) {
    .booking-actions-panel,
    .booking-actions-trigger .ph {
        transition: none;
    }
}

.booking-slot-day {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.booking-slot-day legend {
    margin-bottom: 0.65rem;
    padding: 0;
    font-size: 0.9rem;
    font-weight: 700;
    color: rgba(7, 7, 7, 0.7);
}

.booking-slot-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 1.6rem;
    background: rgba(255, 255, 255, 0.4);
    color: #070707;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.booking-slot-option:hover {
    background: rgba(255, 255, 255, 0.7);
}

.booking-slot-option:active {
    transform: scale(0.98);
}

/* Native radio stays for form submission and keyboard access, but is visually replaced by the check mark. */
.booking-slot-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    padding: 0;
    opacity: 0;
    pointer-events: none;
}

.booking-slot-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 1.35rem;
    height: 1.35rem;
    border: 1.5px solid rgba(7, 7, 7, 0.25);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    color: #070707;
    font-size: 0.85rem;
    transition: background-color 180ms ease, border-color 180ms ease;
}

.booking-slot-check .ph {
    transform: scale(0);
    opacity: 0;
    transition: transform 220ms cubic-bezier(0.34, 1.56, 0.64, 1), opacity 120ms ease;
}

.booking-slot-option:has(input:checked) {
    border-color: #21FFD0;
    background: #21FFD0;
    color: #070707;
    box-shadow: 0 0.6rem 1.4rem -0.8rem rgba(33, 255, 208, 0.9);
    animation: booking-slot-pop 260ms ease;
}

.booking-slot-option:has(input:checked) .booking-slot-check {
    border-color: #070707;
    background: #070707;
    color: #21FFD0;
}

.booking-slot-option:has(input:checked) .booking-slot-check .ph {
    transform: scale(1);
    opacity: 1;
}

.booking-slot-option:has(input:focus-visible) {
    outline: 2px solid #070707;
    outline-offset: 3px;
}

@keyframes booking-slot-pop {
    0% { transform: scale(1); }
    40% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .booking-slot-option,
    .booking-slot-check,
    .booking-slot-check .ph {
        transition: none;
        animation: none;
    }
}

@media (max-width: 767px) {
    .project-inquiry-page-hero,
    .public-form-hero {
        margin-top: 1.5rem;
    }

    .project-inquiry-page-form,
    .public-form-card {
        padding: 1rem;
        border-radius: 1.6rem;
    }

    .project-inquiry-page-form {
        grid-template-columns: 1fr;
    }

    .project-inquiry-page-message,
    .project-inquiry-page-actions {
        grid-column: auto;
    }

    .booking-actions {
        width: 100%;
    }

    .booking-actions-trigger {
        width: 100%;
        justify-content: space-between;
    }

    .booking-actions-panel {
        left: 0;
        right: 0;
        min-width: 0;
    }
}

/* Career application: FilePond CV picker styled to match .public-form-input. */
/* FilePond builds its panel from top/center/bottom pieces that all carry .filepond--panel-root and overlap
   by a pixel to hide seams. With a translucent fill those overlaps show as lines, so the pieces stay
   transparent and the fill, border and focus ring all go on the single .filepond--root. */
.career-apply-filepond .filepond--root {
    margin-bottom: 0;
    font-family: inherit;
    border-radius: 1.6rem;
    background: rgba(255, 255, 255, 0.58);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.66);
}

.career-apply-filepond .filepond--panel-root {
    background: transparent;
}

.career-apply-filepond .filepond--drop-label {
    min-height: 5.5rem;
    color: rgba(7, 7, 7, 0.62);
}

.career-apply-filepond .filepond--drop-label label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
}

.career-apply-filepond .filepond--drop-label i {
    font-size: 1.35rem;
}

.career-apply-filepond .filepond--label-action {
    color: #070707;
    font-weight: 700;
    text-decoration-color: rgba(7, 7, 7, 0.4);
    text-underline-offset: 0.2rem;
}

/* Item panels are also built from overlapping pieces, so the fill must be opaque (≈ 78% black on the form). */
.career-apply-filepond .filepond--item-panel {
    border-radius: 1.2rem;
    background: #363636;
}

.career-apply-filepond [data-filepond-item-state*='invalid'] .filepond--item-panel,
.career-apply-filepond [data-filepond-item-state*='error'] .filepond--item-panel {
    background: #92372f;
}

.career-apply-filepond .filepond--root:focus-within {
    outline: 2px solid #21FFD0;
    outline-offset: 3px;
}
