/* ==========================================================================
   Ask a Question v2 (askaquestion2.asp)
   Form-specific pieces layered on top of /css/auth-2026.css.
   Everything is scoped under .aaq2 so it beats the stock
   ".about-box-main a" rules in style.min.css (18px links, no borders).
   Brand navy: #1F2140
   ========================================================================== */

.aaq2 {
    padding: 18px 0 60px;
}

@media (max-width: 575px) {
    .aaq2 {
        padding: 8px 0 40px;
    }
}

/* Links inside the form inherit the card's font size, not the 18px page default */
.aaq2 a {
    font-size: inherit;
}

/* Inline links in card copy: body font (the global `a` rule uses the Sertig
   display face and kills underlines), navy, underlined so they read as links */
.aaq2 .auth-card p a,
.aaq2 .auth-card .auth-note a,
.aaq2 .auth-card .aaq2-hint a,
.aaq2 .auth-card .aaq2-limit-note a {
    font-family: inherit;
    font-weight: 600;
    color: #1F2140;
    text-decoration: underline !important;
    text-underline-offset: 2px;
}

.aaq2 .auth-card p a:hover,
.aaq2 .auth-card .auth-note a:hover,
.aaq2 .auth-card .aaq2-hint a:hover,
.aaq2 .auth-card .aaq2-limit-note a:hover {
    color: #40437a;
}

.aaq2 .auth-card p {
    font-size: 15px;
    color: #5a5c72;
}

/* --- Progress bar (sticky, thin, navy) -------------------------------- */

.aaq2-progress {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    padding: 10px 0 8px;
    margin: 0 0 14px;
}

.aaq2-progress-label {
    font-size: 13px;
    color: #5a5c72;
    margin-bottom: 6px;
}

.aaq2-progress-label b {
    color: #1F2140;
    font-weight: 600;
}

.aaq2-progress-track {
    height: 4px;
    background: #e4e5ef;
    border-radius: 2px;
    overflow: hidden;
}

.aaq2-progress-fill {
    height: 100%;
    background: #1F2140;
    border-radius: 2px;
    transition: width 0.4s ease;
}

/* --- Back link above the card title ------------------------------------ */

.aaq2 a.aaq2-backlink {
    display: inline-block;
    font-size: 14px;
    color: #5a5c72;
    margin-bottom: 12px;
    text-decoration: none;
}

.aaq2 a.aaq2-backlink:hover {
    color: #1F2140;
    text-decoration: underline;
}

/* --- Card headings ------------------------------------------------------ */

.aaq2 .auth-card h1 {
    font-size: 26px;
    font-weight: 600;
    color: #1F2140;
    margin-bottom: 6px;
    line-height: 1.2;
}

.aaq2 .auth-card .aaq2-sub {
    font-size: 17px;
    font-weight: 600;
    color: #1F2140;
    margin: 22px 0 12px;
    padding-top: 18px;
    border-top: 1px solid #ececf3;
    line-height: 1.3;
}

.aaq2 .auth-card .aaq2-sub small,
.aaq2 .auth-card h1 small {
    font-weight: 400;
    color: #6a6c82;
    font-size: 13px;
}

.aaq2 .auth-card .aaq2-sub:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

/* --- Step 1 choice cards ----------------------------------------------- */

.aaq2 a.aaq2-choice {
    display: flex;
    align-items: center;
    border: 1px solid #cfd1e0;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 12px;
    color: #1F2140;
    text-decoration: none;
    background: #fff;
    min-height: 76px;
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.aaq2 a.aaq2-choice:hover,
.aaq2 a.aaq2-choice:focus {
    border-color: #1F2140;
    background: #f6f7fc;
    box-shadow: 0 0 0 1px #1F2140 inset;
    text-decoration: none;
    color: #1F2140;
    outline: none;
}

.aaq2-choice-icon {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    margin-right: 14px;
    border-radius: 10px;
    background: #f2f4fb;
    color: #1F2140;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.aaq2-choice-body {
    flex: 1 1 auto;
    min-width: 0;
}

.aaq2-choice-title {
    display: block;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.3;
}

.aaq2-choice-hint {
    display: block;
    font-size: 13px;
    color: #6a6c82;
    margin-top: 2px;
    line-height: 1.35;
}

.aaq2-choice-go {
    flex: 0 0 auto;
    margin-left: 10px;
    color: #1F2140;
    font-size: 16px;
}

/* --- Fields: labels above, compact rows -------------------------------- */

.aaq2 .auth-card .form-row {
    margin-left: -6px;
    margin-right: -6px;
}

.aaq2 .auth-card .form-row > [class*="col-"] {
    padding-left: 6px;
    padding-right: 6px;
}

.aaq2 .auth-card .form-group {
    margin-bottom: 16px;
}

/* Side-by-side fields: bottom-align the inputs even when one label has a hint */
.aaq2 .auth-card .form-row > .form-group {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.aaq2 .auth-card .form-row > .form-group.bluebutton {
    display: flex;
}

.aaq2 .auth-card label {
    display: block;
    font-weight: 600;
    color: #1F2140;
    font-size: 14px;
    margin-bottom: 6px;
    line-height: 1.3;
}

.aaq2 .auth-card label small,
.aaq2 .auth-card .aaq2-hint {
    display: block;
    font-weight: 400;
    color: #6a6c82;
    font-size: 13px;
    margin-top: 2px;
}

.aaq2 .auth-card textarea.form-control {
    height: auto;
    min-height: 64px;
    padding: 12px 14px;
    line-height: 1.4;
}

.aaq2 .auth-card select.form-control,
.aaq2 .auth-card select.wide {
    height: 48px;
    border: 1px solid #cfd1e0;
    border-radius: 8px;
    font-size: 16px;
    padding: 0 12px;
    color: #1F2140;
    background-color: #fff;
    width: 100%;
    box-shadow: none;
}

.aaq2 .auth-card select.form-control:focus,
.aaq2 .auth-card select.wide:focus {
    border-color: #1F2140;
    box-shadow: 0 0 0 3px rgba(31, 33, 64, 0.12);
    outline: none;
}

.aaq2 .auth-card .form-control::placeholder {
    color: #9a9cb3;
}

.aaq2 .auth-card .invalid-feedback {
    font-size: 13px;
}

/* Inline text link inside a label row (e.g. "Log in") */
.aaq2 .auth-card .auth-note a {
    color: #1F2140;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Primary button: icon spacing + status line */
.aaq2 .auth-card .bluebutton button i {
    margin-left: 6px;
}

.aaq2 .auth-card #aaq-submit-status {
    font-size: 13px;
    min-height: 0;
}

.aaq2 .auth-card #aaq-submit-status:empty {
    display: none;
}

/* --- Step 2: existing horses as compact rows --------------------------- */

.aaq2 .aaq2-horses .card {
    border: 1px solid #cfd1e0;
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
}

.aaq2 .aaq2-horses .card-header {
    background: #fff;
    border-bottom: none;
    padding: 0;
}

.aaq2 .aaq2-horses .card-header button.btn,
.aaq2 .aaq2-horses .card-header button.btn-link {
    width: 100%;
    height: auto;
    line-height: 1.3;
    background: #fff;
    color: #1F2140;
    border: none;
    border-radius: 0;
    padding: 14px 16px;
    text-align: left;
    text-decoration: none;
    font-weight: 400;
    font-size: 15px;
    display: flex;
    align-items: center;
    margin: 0;
}

.aaq2 .aaq2-horses .card-header button.btn:hover,
.aaq2 .aaq2-horses .card-header button.btn-link:hover,
.aaq2 .aaq2-horses .card-header button.btn[aria-expanded="true"] {
    background: #f6f7fc;
    color: #1F2140;
}

.aaq2 .aaq2-horse-name {
    font-weight: 600;
    font-size: 16px;
    flex: 1 1 auto;
    min-width: 0;
}

.aaq2 .aaq2-horse-meta {
    display: block;
    font-weight: 400;
    font-size: 13px;
    color: #6a6c82;
    margin-top: 1px;
}

.aaq2 .aaq2-horse-chev {
    flex: 0 0 auto;
    margin-left: 10px;
    color: #6a6c82;
    transition: transform 0.2s ease;
}

.aaq2 .aaq2-horses button[aria-expanded="true"] .aaq2-horse-chev {
    transform: rotate(180deg);
}

.aaq2 .aaq2-horses .card-body {
    padding: 16px 16px 4px;
    border-top: 1px solid #ececf3;
}

/* edithorseform2.asp (shared include - not edited) still uses label/input
   columns; flatten them to label-above-input inside this form only. */
.aaq2 .aaq2-horses .card-body .form-row > .form-group.col-md-3 {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 0;
}

.aaq2 .aaq2-horses .card-body .form-row > .form-group.col-md-9,
.aaq2 .aaq2-horses .card-body .form-row > .form-group.col-md-4,
.aaq2 .aaq2-horses .card-body .form-row > .form-group.col-md-2 {
    flex: 0 0 100%;
    max-width: 100%;
}

@media (min-width: 576px) {
    .aaq2 .aaq2-horses .card-body .form-row > .form-group.col-md-2,
    .aaq2 .aaq2-horses .card-body .form-row > .form-group.col-md-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

.aaq2 .aaq2-horses .card-body .form-group.col-md-3 small {
    display: block;
    color: #6a6c82;
    font-size: 13px;
    margin-bottom: 6px;
}

.aaq2 .aaq2-horses .card-body .form-group.col-md-3 br {
    display: none;
}

.aaq2 .aaq2-horses .card-body textarea.form-control {
    height: 72px;
}

/* --- Step 3: photo slots (side on / from behind) ------------------------ */

.aaq2 .aaq-photo-uploader {
    margin-top: 4px;
}

.aaq2 .aaq2-photo-slots {
    display: flex;
    gap: 12px;
}

.aaq2 .aaq2-photo-slot {
    flex: 1 1 0;
    min-width: 0;
    max-width: 200px;
    text-align: center;
}

/* The tile is a real <button> so it is keyboard/VoiceOver friendly */
.aaq2 .aaq2-photo-slot .aaq2-photo-tile {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #fff;
    border: 2px dashed #b9bccf;
    border-radius: 12px;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.aaq2 .aaq2-photo-slot .aaq2-photo-tile:hover,
.aaq2 .aaq2-photo-slot .aaq2-photo-tile:focus-visible {
    border-color: #1F2140;
    outline: none;
    box-shadow: 0 0 0 3px rgba(31, 33, 64, 0.15);
}

.aaq2 .aaq2-photo-slot.is-filled .aaq2-photo-tile {
    border-style: solid;
    border-color: #1F2140;
}

.aaq2 .aaq2-photo-slot .aaq2-photo-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.aaq2 .aaq2-photo-slot .aaq2-photo-guide {
    object-fit: contain;
    padding: 8px 8px 22px;
    opacity: 0.9;
}

.aaq2 .aaq2-photo-slot .aaq2-photo-preview {
    object-fit: cover;
}

.aaq2 .aaq2-photo-slot .aaq2-photo-tile img[hidden] {
    display: none;
}

/* Plus badge: bottom-right of the tile */
.aaq2 .aaq2-photo-slot .aaq2-photo-plus {
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #1F2140;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.aaq2 .aaq2-photo-slot .aaq2-photo-plus[hidden],
.aaq2 .aaq2-photo-slot .aaq2-photo-busy[hidden] {
    display: none;
}

.aaq2 .aaq2-photo-slot .aaq2-photo-busy {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.7);
    color: #1F2140;
    font-size: 26px;
}

.aaq2 .aaq2-photo-slot .aaq2-photo-caption {
    margin-top: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #1F2140;
}

/* Small text-style remove link beneath a filled slot */
.aaq2 .aaq2-photo-slot .aaq2-photo-remove {
    display: inline-block;
    margin-top: 2px;
    padding: 4px 6px;
    width: auto;
    height: auto;
    line-height: 1.2;
    background: none;
    border: none;
    font: inherit;
    font-size: 13px;
    color: #b02a37;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

.aaq2 .aaq2-photo-slot .aaq2-photo-remove[hidden] {
    display: none;
}

.aaq2 .aaq2-photo-error {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #fdecee;
    border: 1px solid #f1b9c0;
    color: #b02a37;
    font-size: 14px;
}

.aaq2 .aaq2-photo-error[hidden] {
    display: none;
}
/* --- Thank-you + opt-ins (stage 6) -------------------------------------- */

.aaq2 .aaq2-thanks-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #eef7ee;
    color: #2e7d32;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 16px;
}

.aaq2 .auth-card label.aaq2-optin {
    display: flex;
    align-items: center;
    border: 1px solid #cfd1e0;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 10px;
    cursor: pointer;
    font-weight: 400;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.aaq2 .auth-card label.aaq2-optin:hover {
    border-color: #9fa3c0;
}

.aaq2 .auth-card label.aaq2-optin .switch {
    display: inline-block;
    position: relative;
}

.aaq2 .aaq2-optin .switch {
    flex: 0 0 auto;
    margin-right: 12px;
    width: 44px;
    height: 26px;
}

.aaq2 .aaq2-optin .slider {
    background-color: #cfd1e0;
}

.aaq2 .aaq2-optin .slider:before {
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
}

.aaq2 .aaq2-optin input:checked + .slider {
    background-color: #1F2140;
}

.aaq2 .aaq2-optin input:checked + .slider:before {
    transform: translateX(18px);
}

.aaq2 .aaq2-optin-text {
    flex: 1 1 auto;
    min-width: 0;
}

.aaq2 .aaq2-optin-title {
    display: block;
    font-weight: 600;
    font-size: 15px;
    color: #1F2140;
    line-height: 1.3;
}

.aaq2 .aaq2-optin-hint {
    display: block;
    font-size: 13px;
    color: #6a6c82;
    margin-top: 1px;
}

.aaq2 .aaq2-address {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #ececf3;
}

.aaq2 .aaq2-address .form-group .form-control {
    margin-bottom: 8px;
}

.aaq2 .aaq2-address .form-group .form-control:last-child {
    margin-bottom: 0;
}

/* Secondary (outline) button, e.g. "Not now" */
.aaq2 .auth-card .bluebutton button.aaq2-btn-secondary,
.aaq2 .auth-card a.btn.aaq2-btn-secondary {
    background: #fff;
    color: #1F2140;
    border: 1px solid #1F2140;
}

.aaq2 .auth-card .bluebutton button.aaq2-btn-secondary:hover,
.aaq2 .auth-card a.btn.aaq2-btn-secondary:hover {
    background: #f6f7fc;
    color: #1F2140;
}

/* Thank-you: next-step button directly under the intro */
.aaq2 .auth-card .aaq2-next {
    margin: 4px 0 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid #ececf3;
}

.aaq2 .auth-card .aaq2-next a.btn.aaq2-btn-secondary {
    display: block;
    width: 100%;
    height: 48px;
    line-height: 46px;
    padding: 0 16px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
}

.aaq2 .auth-card .aaq2-next-hint {
    margin-top: 8px;
    font-size: 13px;
    color: #6a6c82;
    text-align: center;
}

.aaq2 .auth-card .aaq2-next-hint a {
    font-family: inherit;
    font-weight: 600;
    color: #1F2140;
    text-decoration: underline !important;
    text-underline-offset: 2px;
}

/* Links row under the card (forms rendered as text links) */
.aaq2 .auth-links {
    text-align: center;
    margin-top: 16px;
    line-height: 2;
}

.aaq2 .auth-links button.aaq2-linkbtn {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    height: auto;
    width: auto;
    line-height: inherit;
    font: inherit;
    font-size: 14px;
    color: #1F2140;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

.aaq2 .auth-links button.aaq2-linkbtn:hover {
    color: #40437a;
}

/* Error card: link styled as the primary button */
.aaq2 .auth-card .bluebutton a.btn.hvr-hover {
    display: block;
    text-align: center;
    text-decoration: none;
}

/* --- Quick question character count + limit nudge --------------------- */
.aaq2 .aaq2-counter {
    text-align: right;
    font-size: 12px;
    color: #7a7d99;
    margin-top: 4px;
    font-variant-numeric: tabular-nums;
}

.aaq2 .aaq2-counter.is-warn {
    color: #a66a00;
}

.aaq2 .aaq2-counter.is-max {
    color: #b02a37;
    font-weight: 600;
}

.aaq2 .aaq2-limit-note {
    margin-top: 8px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #fff8e6;
    border: 1px solid #f0d9a0;
    font-size: 13px;
    line-height: 1.45;
    color: #5a4a1e;
}

.aaq2 .aaq2-limit-note[hidden] {
    display: none;
}

.aaq2 .aaq2-limit-note a {
    color: #1F2140;
    text-decoration: underline;
}

/* --- Photo upload progress (stage 3, above Continue) ------------------- */
.aaq2 .aaq2-upload {
    margin-bottom: 12px;
}

.aaq2 .aaq2-upload[hidden] {
    display: none;
}

.aaq2 .aaq2-upload-label {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 14px;
    font-weight: 600;
    color: #1F2140;
    margin-bottom: 6px;
}

.aaq2 .aaq2-upload-label span:last-child {
    font-variant-numeric: tabular-nums;
    color: #5a5d7a;
    font-weight: 500;
}

.aaq2 .aaq2-upload-track {
    height: 10px;
    border-radius: 999px;
    background: #e6e7ef;
    overflow: hidden;
}

.aaq2 .aaq2-upload-fill {
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: #1F2140;
    background-image: linear-gradient(45deg, rgba(255,255,255,.18) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.18) 50%, rgba(255,255,255,.18) 75%, transparent 75%, transparent);
    background-size: 20px 20px;
    animation: aaq2-upload-stripes 0.8s linear infinite;
    transition: width 0.2s ease-out;
}

.aaq2 .aaq2-upload.is-done .aaq2-upload-fill {
    background-image: none;
    animation: none;
    background-color: #2e8b57;
}

.aaq2 .aaq2-upload.is-done .aaq2-upload-label {
    color: #2e8b57;
}

@keyframes aaq2-upload-stripes {
    from { background-position: 20px 0; }
    to { background-position: 0 0; }
}

@media (prefers-reduced-motion: reduce) {
    .aaq2 .aaq2-upload-fill {
        animation: none;
    }
}

/* --- Horse height (hands) / weight (kg) steppers ---------------------------
   Built by /js/horse-measures.js around input.horseHeight / input.horseWeight:
   <div class="hm-stepper"><button -/><input/><button +/><div.invalid-feedback/></div>
   The native number spinner is hidden; the buttons step one inch (x.0-x.3) or
   10 kg. Unit label sits inside the field on the right. */

/* The horse includes put Height/Weight in col-6 col-sm-3 columns, which is too
   narrow once the buttons are added. Give them half the row each and push the
   following field (Condition) onto its own full-width line. */
.aaq2 .form-row > .form-group.hm-col {
    flex: 0 0 50%;
    max-width: 50%;
}

.aaq2 .form-row > .form-group.hm-col ~ .form-group:not(.hm-col) {
    flex: 0 0 100%;
    max-width: 100%;
}

.aaq2 .hm-stepper {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
}

.aaq2 .hm-stepper .hm-btn {
    flex: 0 0 44px;
    width: 44px;
    height: 48px;
    margin: 0;
    padding: 0;
    border: 1px solid #cfd1e0;
    background: #f6f7fc;
    color: #1F2140;
    font-size: 22px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    user-select: none;
    touch-action: manipulation;
}

.aaq2 .hm-stepper .hm-btn.hm-minus {
    border-radius: 8px 0 0 8px;
    border-right: 0;
}

.aaq2 .hm-stepper .hm-btn.hm-plus {
    border-radius: 0 8px 8px 0;
    border-left: 0;
}

.aaq2 .hm-stepper .hm-btn:hover {
    background: #e9ebf5;
}

.aaq2 .hm-stepper .hm-btn:active {
    background: #1F2140;
    color: #fff;
}

.aaq2 .hm-stepper .hm-btn:focus {
    outline: none;
}

.aaq2 .hm-stepper .hm-btn:focus-visible {
    box-shadow: 0 0 0 3px rgba(31, 33, 64, 0.12);
    position: relative;
    z-index: 1;
}

.aaq2 .auth-card .hm-stepper input.form-control {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    height: 48px;
    border-radius: 0;
    padding: 0 8px;
    text-align: center;
    font-weight: 600;
    -moz-appearance: textfield;
    appearance: textfield;
}

.aaq2 .auth-card .hm-stepper input.form-control:focus {
    position: relative;
    z-index: 1;
}

.aaq2 .hm-stepper input::-webkit-outer-spin-button,
.aaq2 .hm-stepper input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Keep the red border visible under the adjoining buttons */
.aaq2 .auth-card .hm-stepper input.form-control.is-invalid,
.aaq2 .auth-card .was-validated .hm-stepper input.form-control:invalid {
    position: relative;
    z-index: 1;
}

.aaq2 .hm-stepper .invalid-feedback {
    flex: 0 0 100%;
}
