/*
|--------------------------------------------------------------------------
| APlusWebTraffic Contact Page
|--------------------------------------------------------------------------
|
| Dedicated styling for /contact.php.
|
| This file intentionally remains separate from the public and member
| stylesheets so future member-area CSS changes do not affect the contact
| form.
|
*/

.contact-page {
    padding: 64px 0 88px;
    background:
        radial-gradient(
            circle at top right,
            rgba(40, 111, 255, 0.08),
            transparent 34%
        ),
        #f4f7fb;
}

.contact-page .contact-container {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

/*
|--------------------------------------------------------------------------
| Page heading
|--------------------------------------------------------------------------
*/

.contact-page-header {
    max-width: 760px;
    margin-bottom: 32px;
}

.contact-page-header h1 {
    margin: 0 0 12px;
    color: #102b5c;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
}

.contact-page-header p {
    margin: 0;
    color: #52627a;
    font-size: 1.05rem;
    line-height: 1.7;
}

/*
|--------------------------------------------------------------------------
| Two-column layout
|--------------------------------------------------------------------------
*/

.contact-layout {
    display: grid;
    grid-template-columns:
        minmax(0, 0.85fr)
        minmax(0, 1.35fr);
    gap: 28px;
    align-items: start;
}

.contact-info-card,
.contact-form-card {
    background: #ffffff;
    border: 1px solid #dce5f1;
    border-radius: 18px;
    box-shadow:
        0 18px 44px rgba(16, 43, 92, 0.08);
}

.contact-info-card {
    padding: 30px;
}

.contact-form-card {
    padding: 32px;
}

/*
|--------------------------------------------------------------------------
| Card typography
|--------------------------------------------------------------------------
*/

.contact-info-card h2,
.contact-form-card h2 {
    margin: 0 0 12px;
    color: #102b5c;
    font-size: 1.45rem;
    line-height: 1.3;
}

.contact-info-card p,
.contact-form-introduction {
    color: #5b6980;
    line-height: 1.7;
}

.contact-form-introduction {
    margin: 0 0 22px;
}

/*
|--------------------------------------------------------------------------
| Support information
|--------------------------------------------------------------------------
*/

.contact-email-link {
    display: inline-block;
    margin: 4px 0 24px;
    color: #1d5fd1;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.contact-email-link:hover {
    color: #174fae;
    text-decoration: underline;
}

.contact-help-list {
    margin: 18px 0 26px;
    padding-left: 20px;
    color: #334155;
    line-height: 1.8;
}

.contact-junk-reminder {
    margin: 0;
    padding: 16px;
    background: #f5f8fd;
    border: 1px solid #dce5f1;
    border-radius: 12px;
    color: #52627a;
    font-size: 0.94rem;
    line-height: 1.65;
}

/*
|--------------------------------------------------------------------------
| Status and error messages
|--------------------------------------------------------------------------
*/

.contact-alert {
    margin-bottom: 22px;
    padding: 15px 17px;
    border-radius: 12px;
    line-height: 1.55;
}

.contact-alert-success {
    background: #ecfdf3;
    border: 1px solid #a7e3bd;
    color: #176338;
}

.contact-alert-error {
    background: #fff3f2;
    border: 1px solid #efb5b0;
    color: #8d251f;
}

/*
|--------------------------------------------------------------------------
| Form fields
|--------------------------------------------------------------------------
*/

.contact-field {
    margin-bottom: 20px;
}

.contact-field label {
    display: block;
    margin-bottom: 7px;
    color: #182b4d;
    font-weight: 700;
}

.contact-required {
    color: #b42318;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #cbd7e6;
    border-radius: 10px;
    background: #ffffff;
    color: #13264a;
    font: inherit;
    padding: 12px 14px;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        background-color 0.15s ease;
}

.contact-field textarea {
    min-height: 190px;
    resize: vertical;
    line-height: 1.55;
}

.contact-field input:hover,
.contact-field select:hover,
.contact-field textarea:hover {
    border-color: #afc0d5;
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
    outline: none;
    border-color: #286fff;
    box-shadow:
        0 0 0 3px rgba(40, 111, 255, 0.14);
}

.contact-field input[aria-invalid="true"],
.contact-field select[aria-invalid="true"],
.contact-field textarea[aria-invalid="true"] {
    border-color: #c93c32;
    background: #fffdfd;
}

.contact-field-error {
    margin: 7px 0 0;
    color: #a72d25;
    font-size: 0.91rem;
    line-height: 1.45;
}

.contact-field-help {
    margin: 7px 0 0;
    color: #68758a;
    font-size: 0.88rem;
    line-height: 1.45;
}

/*
|--------------------------------------------------------------------------
| Submit button
|--------------------------------------------------------------------------
*/

.contact-submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 24px;
    border: 0;
    border-radius: 10px;
    background: #286fff;
    color: #ffffff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    box-shadow:
        0 10px 24px rgba(40, 111, 255, 0.18);
    transition:
        background-color 0.15s ease,
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

.contact-submit-button:hover {
    background: #1959d1;
    box-shadow:
        0 12px 28px rgba(40, 111, 255, 0.24);
    transform: translateY(-1px);
}

.contact-submit-button:active {
    transform: translateY(0);
}

.contact-submit-button:focus-visible {
    outline: 3px solid rgba(40, 111, 255, 0.3);
    outline-offset: 3px;
}

/*
|--------------------------------------------------------------------------
| Honeypot
|--------------------------------------------------------------------------
|
| This field must remain inaccessible to legitimate visitors while still
| existing in the submitted form for automated-spam detection.
|
*/

.contact-honeypot {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/*
|--------------------------------------------------------------------------
| Tablet and mobile
|--------------------------------------------------------------------------
*/

@media (max-width: 820px) {
    .contact-page {
        padding: 42px 0 64px;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .contact-info-card,
    .contact-form-card {
        padding: 24px;
    }
}

@media (max-width: 520px) {
    .contact-page .contact-container {
        width: min(100% - 22px, 1120px);
    }

    .contact-page-header {
        margin-bottom: 24px;
    }

    .contact-page-header h1 {
        font-size: 2rem;
    }

    .contact-info-card,
    .contact-form-card {
        padding: 20px;
        border-radius: 14px;
    }

    .contact-submit-button {
        width: 100%;
    }
}