#adhci-callback,
#adhci-callback * {
    box-sizing: border-box;
}

#adhci-callback.cb-shell {
    width: 100%;
    max-width: 1040px;
    margin: 0 auto;
}

#adhci-callback .cb-subtitle {
    margin: 0 0 1.5rem;
    color: #687386;
}

#adhci-callback .cb-progress {
    display: flex;
    gap: 0.5rem;
    margin: 0 0 1.5rem;
    padding: 0;
    list-style: none;
}

#adhci-callback .cb-progress li {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    min-height: 2.25rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: #e8edf4;
    color: #465366;
    font-weight: 700;
}

#adhci-callback .cb-progress li.is-active {
    background: #172033;
    color: #fff;
}

#adhci-callback .cb-progress li.is-complete {
    background: #2563eb;
    color: #fff;
}

#adhci-callback .cb-hidden,
#adhci-callback [hidden] {
    display: none !important;
}

#adhci-callback .cb-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

#adhci-callback .cb-field {
    margin-bottom: 1rem;
}

#adhci-callback .cb-field label,
#adhci-callback .cb-label,
#adhci-callback .cb-fieldset legend {
    display: block;
    width: auto;
    margin: 0 0 0.45rem;
    padding: 0;
    border: 0;
    color: inherit;
    font-size: inherit;
    font-weight: 600;
    line-height: 1.4;
}

#adhci-callback .cb-fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

#adhci-callback .cb-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

#adhci-callback .cb-actions-end {
    justify-content: flex-end;
}

#adhci-callback .cb-team-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

#adhci-callback .cb-team-card {
    position: relative;
    display: flex;
    gap: 0.75rem;
    min-height: 7rem;
    margin: 0;
    padding: 1rem;
    border: 1px solid #dce2ea;
    border-radius: 0.75rem;
    background: #fff;
    color: #273348;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

#adhci-callback .cb-team-card:hover {
    border-color: #9eb4d2;
    box-shadow: 0 0.25rem 1rem rgba(31, 50, 81, 0.08);
}

#adhci-callback .cb-team-card.is-selected {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
}

#adhci-callback .cb-team-card.cb-disabled,
#adhci-callback .cb-team-card.cb-disabled:hover {
    opacity: 0.62;
    border-color: #dce2ea;
    box-shadow: none;
    cursor: not-allowed;
}

#adhci-callback .cb-team-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

#adhci-callback .cb-team-card:focus-within {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

#adhci-callback .cb-radio {
    position: relative;
    flex: 0 0 1.125rem;
    width: 1.125rem;
    height: 1.125rem;
    margin-top: 0.15rem;
    border: 2px solid #95a0b1;
    border-radius: 50%;
}

#adhci-callback .cb-team-card.is-selected .cb-radio {
    border-color: #2563eb;
}

#adhci-callback .cb-team-card.is-selected .cb-radio::after {
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: #2563eb;
    content: "";
}

#adhci-callback .cb-team-card strong,
#adhci-callback .cb-team-card small {
    display: block;
}

#adhci-callback .cb-team-card small {
    margin-top: 0.3rem;
    color: #687386;
    font-size: 0.9em;
    font-weight: 400;
    line-height: 1.4;
}

#adhci-callback .cb-choice-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

#adhci-callback .cb-choice-buttons .btn {
    min-width: 11rem;
}

#adhci-callback .cb-schedule {
    margin-top: 1.25rem;
    padding: 1rem;
    border: 1px solid #dce2ea;
    border-radius: 0.75rem;
    background: #f8fafc;
}

#adhci-callback .cb-slot-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
    gap: 0.55rem;
    max-height: 24rem;
    overflow: auto;
}

#adhci-callback .cb-slot {
    width: 100%;
    padding: 0.65rem;
    border: 1px solid #cfd7e3;
    border-radius: 0.55rem;
    background: #fff;
    color: #273348;
    font: inherit;
    text-align: center;
    cursor: pointer;
}

#adhci-callback .cb-slot:hover,
#adhci-callback .cb-slot.is-selected {
    border-color: #2563eb;
}

#adhci-callback .cb-slot.is-selected {
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.16);
}

#adhci-callback .cb-slot:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

#adhci-callback .cb-note {
    margin: 0.75rem 0 0;
    color: #687386;
    font-size: 0.92em;
}

#adhci-callback .cb-invalid-feedback {
    margin-top: 0.35rem;
    color: #b42318;
    font-size: 0.875em;
}

#adhci-callback .is-invalid {
    border-color: #dc3545 !important;
}

#adhci-callback .cb-fieldset.is-invalid .cb-team-grid {
    outline: 1px solid #dc3545;
    outline-offset: 0.25rem;
}

#adhci-callback .cb-error-list {
    margin: 0;
    padding-left: 1.25rem;
}

#adhci-callback .cb-captcha {
    margin: 1rem 0;
}

#adhci-callback .cb-summary {
    margin: 0 0 1.25rem;
    padding: 0;
    list-style: none;
}

#adhci-callback .cb-summary li {
    margin-bottom: 0.45rem;
    overflow-wrap: anywhere;
}

@media (max-width: 760px) {
    #adhci-callback .cb-form-grid,
    #adhci-callback .cb-team-grid {
        grid-template-columns: 1fr;
    }

    #adhci-callback .cb-progress {
        gap: 0.35rem;
    }

    #adhci-callback .cb-progress li {
        min-width: 2rem;
        min-height: 2rem;
        padding: 0.25rem 0.6rem;
    }

    #adhci-callback .cb-actions .btn {
        white-space: normal;
    }
}
