/* =============================================
   contact.css — AFS Analytics 2026
   ============================================= */

/* BANNER */

.contact-banner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    background: #212b44;
    padding: 60px 20px;
}

.contact-banner::after {
    content: '';
    position: absolute;
    bottom: -7px;
    left: 0;
    right: 0;
    height: 7px;
    background: #e62640;
    z-index: 1;
}

.contact-hero {
    font: 500 45px 'open sans', sans-serif;
    color: #fff;
    margin-bottom: 16px;
}

.contact-extra {
    font: 400 26px 'open sans', sans-serif;
    color: rgba(255,255,255,.75);
}

/* FORM SECTION */

.contact-form-section {
    padding: 60px 0 80px;
}

.contact-form-title {
    font: 400 28px 'open sans', sans-serif;
    text-align: center;
    margin-bottom: 40px;
    color: #1a2540;
}

.contact-form-cnt {
    max-width: 700px;
    margin: 0 auto;
}

/* Errors */

.contact-errors {
    background: #fff3f3;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    padding: 14px 20px;
    margin-bottom: 24px;
    color: #721c24;
}

.contact-errors ul {
    margin: 0;
    padding-left: 18px;
}

.contact-errors li {
    margin-bottom: 4px;
}

/* Two-column row (first + last name) */

.contact-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 24px;
}

/* Individual field */

.f_field {
    display: flex;
    flex-direction: column;
    margin-bottom: 28px;
    position: relative;
}

.f_field.required label::after {
    content: ' *';
    color: #e62640;
}

.f_field label {
    font-size: 13px;
    font-weight: 600;
    color: #526db0;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.contact-form-cnt input[type="text"],
.contact-form-cnt input[type="email"],
.contact-form-cnt input[type="url"],
.contact-form-cnt input[type="number"],
.contact-form-cnt textarea {
    font: 18px roboto, arial, sans-serif;
    border: none;
    border-bottom: 1px solid rgba(10,30,60,.15);
    border-radius: 0;
    padding: 8px 4px;
    color: #1a2540;
    background: transparent;
    outline: none;
    width: 100%;
    box-sizing: border-box;
    transition: border-color .2s ease;
}

.contact-form-cnt input:focus,
.contact-form-cnt textarea:focus {
    border-bottom-color: #526db0;
}

.contact-form-cnt textarea {
    min-height: 160px;
    resize: vertical;
}

#captcha_field input {
    max-width: 180px;
}

/* Submit */

.contact-submit {
    text-align: center;
    margin-top: 16px;
}

.contact-submit button {
    background: #e62640;
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 12px 48px;
    font: 700 16px roboto, arial, sans-serif;
    text-transform: uppercase;
    cursor: pointer;
    letter-spacing: .06em;
    transition: background .3s ease;
}

.contact-submit button:hover {
    background: #c41e34;
}

/* SUCCESS */

.contact-result-section {
    min-height: 300px;
}

/* SOCIAL */

.contact-social {
    padding: 50px 20px;
    margin: 0 auto 40px;
    max-width: 600px;
    border-radius: 30px;
    background: #f7f9fc;
}

.contact-social h2 {
    font: 400 26px 'open sans', sans-serif;
    color: #526db0;
    margin-bottom: 24px;
}

.contact-social-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-size: 28px;
    color: #526db0;
}

.contact-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border: 2px solid #526db0;
    border-radius: 50%;
    color: #526db0;
    background: #fff;
    text-decoration: none;
    transition: all .3s ease;
}

.contact-social-icon:hover {
    background: #526db0;
    color: #fff;
}

/* RESPONSIVE */

@media (max-width: 640px) {
    .contact-hero  { font-size: 32px; }
    .contact-extra { font-size: 18px; }
    .contact-row   { grid-template-columns: 1fr; }
    .contact-form-cnt { padding: 0 8px; }
    .contact-banner { min-height: 220px; }
}
