main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.contact-us {
    margin: 0 auto;
    padding: 32px 48px 48px;
    color: var(--color-black);
    background-color: var(--invoice-background);
    font-family: var(--font-family);
}

.contact-title {
    text-align: center;
    font-size: 44px;
    font-weight: 600;
    line-height: 120%;
}

.contact-wrapper {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin-top: 32px;
}

/* =========================
   LEFT SIDE (INFO)
========================= */

.contact-info {
    flex: 1;
}

    .contact-info h3 {
        margin-bottom: 0.5rem;
        font-size: 22px;
        font-weight: 600;
        line-height: 120%;
    }

    .contact-info p {
        margin-bottom: 24px;
        font-size: 16px;
        font-weight: 400;
        line-height: 150%;
        color: var(--color-text-muted);
    }

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .contact-list li {
        display: flex;
        align-items: center;
        gap: 0.6rem;
        margin: 0.9rem 0;
        color: var(--color-black);
        font-size: 16px;
        font-weight: 400;
        line-height: 150%;
        overflow-wrap: anywhere;
    }

    .contact-list a {
        color: var(--color-black);
        text-decoration: none;
    }

        .contact-list a:hover {
            text-decoration: underline;
        }

        .contact-list a:focus-visible {
            outline: 3px solid var(--color-focus);
            outline-offset: 2px;
            border-radius: 2px;
        }

.contact-list-icon {
    background: var(--color-icon-bg);
    border-radius: 4px;
    width: 36px;
    height: 36px;
    padding: 8px;
    flex-shrink: 0;
}

/* ICONS */
.contact-icon {
    width: 20px;
    height: 20px;
}

/* ADDRESS */
address {
    font-style: normal;
}

/* =========================
   FORM STYLES
========================= */

.contact-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border: 1px solid var(--invoice-border);
    background: var(--color-white);
    padding: 24px;
    border-radius: 8px;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    flex: 1;
}

label {
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: var(--color-text-muted);
    font-size: 14px;
    line-height: 150%;
}

    /* Required field indicator */
    label .required-mark {
        color: var(--color-error);
        margin-left: 2px;
    }

input,
textarea {
    padding: 0.75rem;
    font-size: 1rem;
    border: 1px solid var(--color-form-border);
    border-radius: 4px;
    background-color: var(--color-form-bg);
    color: var(--color-black);
}

    input:focus,
    textarea:focus {
        outline: 3px solid var(--color-focus-form);
        border-color: var(--color-focus-form);
        outline-offset: 2px;
    }

    input[aria-invalid="true"],
    textarea[aria-invalid="true"] {
        border-color: var(--color-error);
        outline: 2px solid var(--color-error);
    }

/* Inline validation error messages */
.field-error {
    color: var(--color-error);
    font-size: 13px;
    margin-top: 4px;
}

/* "(250 character limit)" hint next to the Message label */
.cu-char-hint {
    font-weight: 400;
    font-size: 12px;
    color: var(--color-text-muted);
}

/* Virtual Assistant CTA card heading/description — same treatment as .contact-info h3/p */
.contact-form-title {
    margin-bottom: 0.5rem;
    font-size: 22px;
    font-weight: 600;
    line-height: 120%;
}

.contact-form-desc {
    margin-bottom: 0;
    font-size: 16px;
    font-weight: 400;
    line-height: 150%;
    color: var(--color-text-muted);
}

/* =========================
   BUTTON
========================= */

.btn-submit {
    background-color: var(--button-primary);
    border-radius: 4px;
    border: none;
    width: 100%;
    padding: 8px 0;
    color: var(--button-text-primary);
    font-size: 16px;
    font-weight: 600;
    line-height: 150%;
    cursor: pointer;
    min-height: 44px;
}

    .btn-submit:hover {
        background-color: var(--color-primary);
        color: var(--color-white);
    }

    .btn-submit:focus-visible {
        outline: 3px solid var(--color-focus);
        outline-offset: 2px;
    }

/* =========================
   RESULT MESSAGE
   Set on lblResult from code-behind (ShowError/ShowSuccess) —
   own class names, no dependency on register.css
========================= */

.cu-result {
    display: block;
    margin-bottom: 4px;
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 150%;
}

    .cu-result:empty {
        display: none;
    }

    .cu-result--error {
        background: var(--color-alert-danger-bg);
        border: 1px solid var(--color-alert-danger-border);
        color: var(--color-alert-danger-text-strong);
    }

    .cu-result--success {
        background: var(--color-alert-success-bg);
        border: 1px solid var(--color-alert-success-border);
        color: var(--color-alert-success-text);
    }

/* "You can also call us at:" / "Prefer to call?" note under the submit button */
.cu-submit-note {
    font-size: 13px;
    color: var(--color-text-muted);
    margin: 0;
    line-height: 150%;
}

/* =========================
   ASP.NET has-error state
   (mirrors register.css pattern)
========================= */

.form-group.has-error label {
    color: var(--color-error);
}

.form-group.has-error input,
.form-group.has-error textarea,
.form-group.has-error .v2-form-control {
    border-color: var(--color-error) !important;
    background-color: #fff5f5;
}

    .form-group.has-error input:focus,
    .form-group.has-error textarea:focus,
    .form-group.has-error .v2-form-control:focus {
        outline-color: var(--color-error);
        border-color: var(--color-error) !important;
    }

.form-group .field-error {
    color: var(--color-error);
    font-size: 12px;
    font-weight: 500;
    margin-top: 4px;
}

textarea.v2-form-control {
    height: auto;
    resize: vertical;
    min-height: 100px;
}

/* =========================
   RESPONSIVE DESIGN
========================= */

/* Tablet */
@media (min-width: 768px) and (max-width: 1199px) {
    .contact-us {
        padding: 32px 24px 48px;
    }

    .contact-title {
        font-size: 36px;
    }

    .contact-info,
    .contact-form {
        flex: 1 1 50%;
        max-width: 50%;
        min-width: 0;
    }

    .contact-form .form-row {
        flex-direction: column;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .contact-us {
        padding: 24px 16px 40px;
    }

    .contact-title {
        font-size: 28px;
    }

    .contact-info h3 {
        font-size: 18px;
    }

    .contact-wrapper {
        flex-direction: column;
        gap: 1rem;
    }

    .form-row {
        flex-direction: column;
    }

    .contact-form {
        width: 100%;
    }
}
