/*
 * NYC TV Mounts AV service forms (av_v2).
 * Light theme, accessible, usable at 320 px, 44 px touch targets.
 */

#nyctv-av-form {
    max-width: 640px;
    margin: 0 auto;
}

.nyctv-av-form {
    display: block;
    background: #ffffff;
    border: 1px solid #d9dee5;
    border-radius: 8px;
    padding: 20px 16px;
    font-size: 1rem;
    line-height: 1.5;
    color: #1c2733;
}

.nyctv-av-step-indicator {
    margin: 0 0 16px;
    font-weight: 600;
    color: #33414f;
}

.nyctv-av-step h3 {
    margin: 0 0 16px;
    font-size: 1.15rem;
    color: #1c2733;
}

.nyctv-av-step h3:focus {
    outline: 2px solid #1a5dab;
    outline-offset: 2px;
}

.nyctv-av-field {
    margin: 0 0 16px;
}

.nyctv-av-name-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.nyctv-av-field label,
.nyctv-av-radio-group legend {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #1c2733;
}

.nyctv-av-optional {
    font-weight: 400;
    color: #5a6b7c;
}

.nyctv-av-hint {
    margin: 0 0 6px;
    font-size: 0.9rem;
    color: #5a6b7c;
}

.nyctv-av-form input[type="text"],
.nyctv-av-form input[type="tel"],
.nyctv-av-form input[type="email"],
.nyctv-av-form select,
.nyctv-av-form textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #9aa7b4;
    border-radius: 6px;
    background: #ffffff;
    color: #1c2733;
    font: inherit;
}

.nyctv-av-form textarea {
    min-height: 96px;
    resize: vertical;
}

.nyctv-av-form input:focus,
.nyctv-av-form select:focus,
.nyctv-av-form textarea:focus,
.nyctv-av-form button:focus {
    outline: 2px solid #1a5dab;
    outline-offset: 2px;
}

.nyctv-av-form input[aria-invalid="true"],
.nyctv-av-form select[aria-invalid="true"],
.nyctv-av-form textarea[aria-invalid="true"] {
    border-color: #a4262c;
}

.nyctv-av-error {
    margin: 6px 0 0;
    color: #a4262c;
    font-size: 0.9rem;
}

.nyctv-av-error[hidden] {
    display: none;
}

.nyctv-av-price-note {
    margin: 0 0 16px;
    padding: 10px 12px;
    background: #eef4fb;
    border: 1px solid #c4d7ec;
    border-radius: 6px;
    color: #1c2733;
    font-weight: 600;
}

.nyctv-av-price-note:empty {
    display: none;
}

.nyctv-av-radio-group {
    margin: 0 0 16px;
    padding: 0;
    border: 0;
}

.nyctv-av-radio {
    display: flex;
    align-items: center;
    min-height: 44px;
}

.nyctv-av-radio input[type="radio"] {
    width: 22px;
    height: 22px;
    margin: 0 10px 0 0;
    flex: none;
}

.nyctv-av-radio label {
    font-weight: 400;
    margin: 0;
    padding: 10px 0;
}

.nyctv-av-checkbox-row {
    display: flex;
    align-items: flex-start;
    min-height: 44px;
}

.nyctv-av-checkbox-row input[type="checkbox"] {
    width: 22px;
    height: 22px;
    margin: 2px 10px 0 0;
    flex: none;
}

.nyctv-av-checkbox-row label {
    font-weight: 400;
    margin: 0;
}

.nyctv-av-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.nyctv-av-button {
    min-height: 44px;
    min-width: 44px;
    padding: 10px 22px;
    border-radius: 6px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.nyctv-av-primary {
    background: #1a5dab;
    border: 1px solid #1a5dab;
    color: #ffffff;
}

.nyctv-av-primary:hover {
    background: #14497f;
    border-color: #14497f;
}

.nyctv-av-secondary {
    background: #ffffff;
    border: 1px solid #1a5dab;
    color: #1a5dab;
}

.nyctv-av-secondary:hover {
    background: #eef4fb;
}

.nyctv-av-button[disabled] {
    opacity: 0.6;
    cursor: default;
}

.nyctv-av-status {
    margin: 0 0 16px;
    padding: 10px 12px;
    background: #fdf1f1;
    border: 1px solid #e0b4b6;
    border-radius: 6px;
    color: #a4262c;
}

.nyctv-av-status[hidden] {
    display: none;
}

.nyctv-av-status:focus,
.nyctv-av-success:focus {
    outline: 2px solid #1a5dab;
    outline-offset: 2px;
}

.nyctv-av-success {
    padding: 16px;
    background: #eef8ef;
    border: 1px solid #b5d8b8;
    border-radius: 8px;
    color: #1c2733;
}

.nyctv-av-success p {
    margin: 0;
}

/* Honeypot: removed from the visual and assistive flow. */
.nyctv-av-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

@media (max-width: 380px) {
    .nyctv-av-form {
        padding: 16px 12px;
    }

    .nyctv-av-actions {
        flex-direction: column;
    }

    .nyctv-av-name-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .nyctv-av-button {
        width: 100%;
    }
}
