/* About your flying: the pilot question and licence card (Includes/js/airman-card.js), shared by
   the Email Seller wizard and My Account. Tokens and sizes from the approved prototype. Tap targets
   are at least 44px; a selected choice is fill + 2px border + check mark, never colour alone. */
.airman-card {
    color: #202532;
}

.airman-card .hidden {
    display: none !important;
}

.airman-card .ac-question {
    margin-bottom: 20px;
}

.airman-card .ac-label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin: 0 0 8px;
}

.airman-card .ac-muted {
    font-weight: 400;
    color: #616775;
}

.airman-card .ac-hint {
    font-size: 13px;
    line-height: 1.5;
    color: #616775;
    margin: 6px 0 0;
}

.airman-card .ac-hint-tight {
    margin: -4px 0 8px;
}

.airman-card .ac-pick {
    position: relative;
    border: 1px solid #b9bec8;
    background: #ffffff;
    color: #202532;
    cursor: pointer;
    text-align: left;
    font: inherit;
}

.airman-card .ac-pick:hover {
    background: #faf6fb;
}

.airman-card .ac-pick[aria-pressed="true"] {
    border: 2px solid #8a3995;
    background: #f6eff7;
    color: #5d2366;
}

.airman-card .ac-pick[aria-pressed="true"]::after {
    content: "";
    position: absolute;
    top: 7px;
    right: 8px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #8a3995 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3.5 7.2l2.3 2.3 4.7-4.9' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.airman-card .ac-pick:focus-visible, .airman-card .ac-link:focus-visible, .airman-card .ac-add:focus-visible,
.airman-card .ac-select:focus-visible, .airman-card input:focus-visible, .airman-card .ac-tchip button:focus-visible {
    outline: 3px solid #793283;
    outline-offset: 3px;
}

.airman-card .ac-yesno {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.airman-card .ac-choice {
    min-height: 52px;
    border-radius: 8px;
    padding: 10px 16px;
    font-weight: 600;
    font-size: 15px;
    text-align: center;
}

.airman-card .ac-missing .ac-label {
    color: #a62832;
}

.airman-card .ac-missing .ac-choice {
    border-color: #a62832;
}

.airman-card .ac-card {
    border-top: 1px solid #e6e3e9;
    padding-top: 20px;
    margin: 4px 0 8px;
}

.airman-card .ac-card-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.airman-card .ac-card-head h3 {
    font-size: 17px;
    line-height: 1.3;
    font-weight: 700;
    margin: 0;
}

.airman-card .ac-tag {
    font-size: 12px;
    font-weight: 600;
    color: #616775;
    background: #f2f0f4;
    border-radius: 20px;
    padding: 2px 10px;
    white-space: nowrap;
}

.airman-card .ac-why {
    margin-top: 8px;
}

.airman-card .ac-link {
    min-height: 44px;
    padding: 0 4px;
    border: 0;
    background: none;
    color: #793283;
    font-weight: 600;
    font-size: 14px;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.airman-card .ac-hint .ac-link {
    min-height: 0;
    padding: 0;
    font-size: 13px;
}

.airman-card .ac-block {
    margin-top: 20px;
}

.airman-card .ac-auth-current {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 8px 8px 12px;
    border: 1px solid #e6e3e9;
    border-radius: 10px;
    background: #f7f6f8;
}

.airman-card .ac-auth-text {
    flex: 1;
    min-width: 0;
    line-height: 1.25;
}

.airman-card .ac-auth-name {
    font-weight: 700;
    font-size: 15px;
}

.airman-card .ac-auth-sub {
    font-size: 12px;
    color: #616775;
}

.airman-card .ac-flag {
    width: 28px;
    height: 20px;
    flex-shrink: 0;
    display: block;
}

.airman-card .ac-auth-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.airman-card .ac-auth {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 56px;
    padding: 8px 26px 8px 10px;
    border-radius: 10px;
    line-height: 1.2;
}

.airman-card .ac-auth.ac-wide {
    grid-column: 1 / -1;
}

.airman-card .ac-main {
    display: block;
    font-weight: 700;
    font-size: 14px;
    overflow-wrap: break-word;
}

.airman-card .ac-sub {
    display: block;
    font-size: 12px;
    color: #616775;
    margin-top: 2px;
}

.airman-card .ac-pick[aria-pressed="true"] .ac-sub, .airman-card .ac-pick[aria-pressed="true"] .ac-code {
    color: #6d3a75;
}

.airman-card .ac-select {
    width: 100%;
    min-height: 48px;
    padding: 10px 12px;
    border: 1px solid #b9bec8;
    border-radius: 8px;
    background: #ffffff;
    font-size: 16px;
}

.airman-card .ac-select.ac-invalid {
    border-color: #a62832;
}

.airman-card .ac-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.airman-card .ac-pill {
    min-height: 44px;
    padding: 0 16px;
    border-radius: 22px;
    font-weight: 600;
    font-size: 14px;
}

.airman-card .ac-pill[aria-pressed="true"] {
    padding-right: 30px;
}

.airman-card .ac-pill[aria-pressed="true"]::after {
    top: 50%;
    margin-top: -7px;
    right: 10px;
}

.airman-card .ac-code {
    font-weight: 500;
    color: #616775;
    margin-left: 2px;
}

.airman-card .ac-heli-link {
    margin-top: 4px;
    padding-left: 0;
}

.airman-card .ac-heli-link + .ac-pills {
    margin-top: 4px;
}

.airman-card .ac-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.airman-card .ac-chip {
    min-height: 52px;
    padding: 8px 24px 8px 10px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.2;
}

.airman-card .ac-more {
    border: 1px dashed #8a3995;
}

.airman-card .ac-more .ac-main {
    color: #793283;
}

.airman-card .ac-more-panel {
    margin-top: 8px;
}

.airman-card .ac-chiplist {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.airman-card .ac-chiplist:empty {
    display: none;
}

.airman-card .ac-tchip {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 4px 0 14px;
    border: 2px solid #8a3995;
    border-radius: 22px;
    background: #f6eff7;
    color: #5d2366;
    font-weight: 700;
    font-size: 14px;
    overflow-wrap: anywhere;
}

.airman-card .ac-tchip button {
    width: 36px;
    height: 36px;
    margin-left: 2px;
    border: 0;
    border-radius: 50%;
    background: none;
    color: #5d2366;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.airman-card .ac-add {
    min-height: 48px;
    width: 100%;
    padding: 8px 12px;
    border: 1px dashed #8a3995;
    border-radius: 8px;
    background: #ffffff;
    color: #793283;
    font-weight: 700;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
}

.airman-card .ac-text-row {
    display: flex;
    gap: 8px;
}

.airman-card .ac-text-row input {
    flex: 1;
    min-width: 0;
    min-height: 48px;
    padding: 10px 12px;
    border: 1px solid #b9bec8;
    border-radius: 8px;
    background: #ffffff;
    font-size: 16px;
}

.airman-card .ac-add-btn {
    min-width: 72px;
    min-height: 48px;
    border: 1px solid #b9bec8;
    border-radius: 8px;
    background: #ffffff;
    font-weight: 600;
    cursor: pointer;
}

.airman-card .ac-dates summary {
    min-height: 44px;
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}

.airman-card .ac-date-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid #f0edf2;
}

.airman-card .ac-date-row label {
    flex: 1 1 140px;
    margin: 0;
    font-size: 14px;
    font-weight: 500;
}

.airman-card .ac-date-row input {
    min-height: 44px;
    padding: 6px 10px;
    border: 1px solid #b9bec8;
    border-radius: 8px;
    font-size: 16px;
}

.airman-card .ac-error {
    color: #a62832;
    font-size: 14px;
    font-weight: 600;
    margin: 16px 0 0;
}

@media (max-width: 360px) {
    .airman-card .ac-grid, .airman-card .ac-auth-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}
