/* =========================================================
   CTOPlusTeam contact A/B experiment
   Fully isolated under .abcontact-* to avoid affecting other forms.
   ========================================================= */

.abcontact-section {
    padding: 64px 0;
    background: #eef6fc;
    color: #12365f;
}

.abcontact-section *,
.abcontact-section *::before,
.abcontact-section *::after {
    box-sizing: border-box;
}

.abcontact-shell {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.abcontact-heading {
    max-width: 1100px;
    margin: 0 auto 34px;
    text-align: center;
}

.abcontact-kicker {
    display: inline-block;
    margin-bottom: 10px;
    color: #f26a4a;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.abcontact-heading h2 {
    margin: 0;
    color: #12365f;
    font-size: clamp(1.9rem, 3.2vw, 2.8rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.abcontact-heading p {
    max-width: 1080px; margin: 0 auto; color: #476583; font-size: clamp(17px, 1.4vw, 21px); line-height: 1.8; margin-top: 12px;
}

.abcontact-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 42px;
    align-items: center;
}

/* Left trust/context column */

.abcontact-context {
    min-width: 0;
}

.abcontact-person {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 26px;
}

.abcontact-person-photo {
    width: 86px;
    height: 86px;
    flex: 0 0 86px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ffffff;
    box-shadow: 0 12px 28px rgba(18, 54, 95, 0.15);
}

.abcontact-person-copy,
.abcontact-company {
    min-width: 0;
}

.abcontact-person-label {
    display: block;
    margin-bottom: 5px;
    color: #f26a4a;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.07em;
}

.abcontact-person-name {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #12365f;
    font-size: 1.45rem;
    font-weight: 850;
    line-height: 1.15;
}

.abcontact-person-name a {
    color: #0a66c2;
    font-size: 1.1rem;
}

.abcontact-person-copy p,
.abcontact-company p {
    margin: 7px 0 0;
    color: #58718e;
    font-size: 0.95rem;
    line-height: 1.5;
}

.abcontact-company {
    margin-bottom: 26px;
}

.abcontact-company h3 {
    margin: 0;
    color: #12365f;
    font-size: 1.55rem;
    font-weight: 850;
    line-height: 1.25;
}

.abcontact-proof {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 24px 0;
}

.abcontact-proof > div {
    padding: 18px 14px;
    border: 1px solid rgba(18, 54, 95, 0.11);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
    text-align: center;
}

.abcontact-proof strong {
    display: block;
    margin-bottom: 5px;
    color: #f26a4a;
    font-size: 1.55rem;
    font-weight: 900;
    line-height: 1;
}

.abcontact-proof span {
    display: block;
    color: #58718e;
    font-size: 0.78rem;
    line-height: 1.35;
}

.abcontact-quote {
    margin: 0;
    padding: 18px 20px;
    border-left: 4px solid #f26a4a;
    border-radius: 0 12px 12px 0;
    background: rgba(255, 255, 255, 0.72);
}

.abcontact-quote p {
    margin: 0;
    color: #264b70;
    font-size: 0.94rem;
    font-style: italic;
    line-height: 1.5;
}

.abcontact-quote footer {
    margin-top: 8px;
    padding: 0;
    border: 0;
    color: #6a7e94;
    font-size: 0.78rem;
}

/* Form card */

.abcontact-card {
    padding: 30px;
    border-radius: 22px;
    background:
        radial-gradient(circle at 100% 0, rgba(41, 125, 224, 0.20), transparent 34%),
        linear-gradient(145deg, #082f63 0%, #062853 100%);
    box-shadow:
        0 22px 52px rgba(5, 43, 87, 0.20),
        0 6px 16px rgba(5, 43, 87, 0.10);
}

.abcontact-card-head {
    margin-bottom: 22px;
}

.abcontact-card-head > span {
    display: block;
    margin-bottom: 5px;
    color: #ff9d7e;
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.abcontact-card-head h3 {
    margin: 0;
    color: #ffffff;
    font-size: 1.55rem;
    font-weight: 850;
    line-height: 1.2;
}

.abcontact-card-head p {
    margin: 7px 0 0;
    color: #c3d4e5;
    font-size: 0.92rem;
    line-height: 1.45;
}

.abcontact-form {
    margin: 0;
}

.abcontact-field {
    margin-bottom: 16px;
}

.abcontact-field label {
    display: flex;
    align-items: baseline;
    gap: 7px;
    margin-bottom: 6px;
    color: #ff9d7e;
    font-size: 0.84rem;
    font-weight: 800;
}

.abcontact-field label span {
    color: #ffffff;
}

.abcontact-field label small {
    color: #aac0d5;
    font-size: 0.72rem;
    font-weight: 600;
}

.abcontact-field input,
.abcontact-field textarea {
    display: block;
    width: 100%;
    border: 2px solid transparent;
    border-radius: 10px;
    outline: 0;
    background: #ffffff;
    color: #12365f;
    font-family: inherit;
    font-size: 0.95rem;
    transition:
        border-color 160ms ease,
        box-shadow 160ms ease;
}

.abcontact-field input {
    min-height: 48px;
    padding: 0 13px;
}

.abcontact-field textarea {
    min-height: 112px;
    padding: 12px 13px;
    line-height: 1.45;
    resize: vertical;
}

.abcontact-field input::placeholder,
.abcontact-field textarea::placeholder {
    color: #879bb0;
    opacity: 1;
}

.abcontact-field input:focus,
.abcontact-field textarea:focus {
    border-color: #ff8059;
    box-shadow: 0 0 0 3px rgba(255, 128, 89, 0.20);
}

.abcontact-s5-simple .s5-team-summary { max-width: 1080px; margin: 0 auto; color: #476583; font-size: clamp(17px, 1.4vw, 21px); line-height: 1.6; }


.abcontact-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 50px;
    margin-top: 4px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff8059, #ff6637);
    color: #ffffff;
    font-size: 0.96rem;
    font-weight: 850;
    cursor: pointer;
    box-shadow: 0 12px 26px rgba(255, 102, 55, 0.25);
    transition:
        transform 160ms ease,
        box-shadow 160ms ease,
        filter 160ms ease;
}

.abcontact-submit:hover {
    transform: translateY(-2px);
    filter: brightness(1.03);
    box-shadow: 0 16px 32px rgba(255, 102, 55, 0.33);
}

.abcontact-submit i {
    transition: transform 160ms ease;
}

.abcontact-submit:hover i {
    transform: translateX(4px);
}

.abcontact-assurance {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 13px;
    color: #bfd0e1;
    font-size: 0.78rem;
    text-align: center;
}

.abcontact-assurance span {
    position: relative;
}

.abcontact-assurance span:not(:last-child)::after {
    content: "•";
    position: absolute;
    right: -12px;
    color: rgba(255, 255, 255, 0.35);
}

.abcontact-assurance i {
    margin-right: 4px;
    color: #9fc7ff;
}

.abcontact-direct {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 16px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.abcontact-direct a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 750;
    text-decoration: none;
}

.abcontact-direct a:hover {
    color: #ffaf93;
}

.abcontact-next {
    margin: 14px 0 0;
    color: #9fb6cc;
    font-size: 0.76rem;
    line-height: 1.45;
    text-align: center;
}

/* Tablet */

@media (max-width: 900px) {
    .abcontact-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .abcontact-context {
        max-width: 700px;
        margin: 0 auto;
    }

    .abcontact-card {
        max-width: 700px;
        width: 100%;
        margin: 0 auto;
    }
}

/* Mobile */

@media (max-width: 600px) {
    .abcontact-section {
        padding: 48px 0;
    }

    .abcontact-shell {
        width: min(100% - 24px, 1180px);
    }

    .abcontact-heading {
        margin-bottom: 28px;
    }

    .abcontact-heading p {
        font-size: 0.98rem;
    }

    .abcontact-person {
        align-items: flex-start;
    }

    .abcontact-person-photo {
        width: 68px;
        height: 68px;
        flex-basis: 68px;
    }

    .abcontact-person-name {
        font-size: 1.22rem;
    }

    .abcontact-company h3 {
        font-size: 1.35rem;
    }

    .abcontact-proof {
        grid-template-columns: 1fr;
    }

    .abcontact-proof > div {
        display: grid;
        grid-template-columns: 70px 1fr;
        align-items: center;
        text-align: left;
    }

    .abcontact-proof strong {
        margin: 0;
        text-align: center;
    }

    .abcontact-card {
        padding: 22px 18px;
        border-radius: 18px;
    }

    .abcontact-card-head h3 {
        font-size: 1.35rem;
    }

    .abcontact-assurance span:not(:last-child)::after {
        display: none;
    }

    .abcontact-direct {
        flex-direction: column;
        gap: 10px;
    }
}
