.brightloop-contact-page {
    background: linear-gradient(180deg, #f6fbff 0%, #ffffff 48%, #f7fbff 100%);
}

.brightloop-contact-hero {
    padding: 34px 0 38px;
}

.brightloop-contact-grid {
    display: grid;
    grid-template-columns: minmax(330px, 0.92fr) minmax(460px, 0.98fr);
    gap: 38px;
    align-items: start;
}

@media (min-width: 1200px) {
    .brightloop-contact-grid {
        grid-template-columns: minmax(360px, 0.94fr) minmax(500px, 0.92fr);
    }
}

.brightloop-contact-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    color: #246bfe;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2.4px;
    text-transform: uppercase;
}

.brightloop-contact-eyebrow::before {
    content: "";
    width: 28px;
    height: 2px;
    border-radius: 999px;
    background: #246bfe;
}

.brightloop-contact-copy h1 {
    max-width: 600px;
    margin: 0;
    color: #071936;
    font-size: clamp(40px, 4.6vw, 62px);
    font-weight: 900;
    line-height: 1.02;
    letter-spacing: 0;
}

.brightloop-contact-copy p {
    max-width: 560px;
    margin: 18px 0 0;
    color: #536985;
    font-size: 16px;
    line-height: 1.68;
}

.contact-trust-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.contact-trust-chips span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 0 11px;
    border: 1px solid rgba(36, 107, 254, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    color: #14284a;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 12px 28px rgba(28, 72, 116, 0.06);
}

.contact-trust-chips i {
    color: #16c2cf;
}

.contact-process-list {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    max-width: 620px;
    margin-top: 26px;
    padding: 10px;
    border: 1px solid rgba(18, 44, 78, 0.08);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(244,248,252,.92));
    box-shadow: 0 16px 38px rgba(28, 72, 116, 0.07);
}

.contact-process-list div {
    position: relative;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    column-gap: 12px;
    min-height: 72px;
    padding: 13px 14px;
    border: 1px solid rgba(223, 232, 242, 0.78);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(20, 32, 58, 0.05);
    transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}

.contact-process-list div:hover {
    transform: translateY(-2px);
    border-color: #317EFE;
    box-shadow: 0 16px 34px rgba(49, 126, 254, 0.12);
}

.contact-process-list div > i {
    grid-row: 1 / span 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: #eef6ff;
    color: #317EFE;
    font-size: 16px;
    transition: background .22s ease, color .22s ease;
}

.contact-process-list div:hover > i {
    background: #317EFE;
    color: #ffffff;
}

.contact-process-list span {
    color: #246bfe;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    line-height: 1;
}

.contact-process-list strong {
    display: block;
    margin-top: 5px;
    color: #071936;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.25;
}

.brightloop-contact-form-card {
    position: relative;
    overflow: hidden;
    width: min(100%, 720px);
    justify-self: end;
    padding: 18px;
    border: 1px solid #dfe8f2;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 24px 62px rgba(20, 32, 58, 0.1);
}

.form-card-top,
.brightloop-project-form {
    position: relative;
    z-index: 1;
}

.form-card-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.form-card-top span,
.form-card-top small {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    color: #14284a;
    font-size: 11px;
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(28, 72, 116, 0.07);
}

.form-card-top span {
    gap: 8px;
}

.form-card-top i {
    color: #16c2cf;
}

.brightloop-project-form {
    display: grid;
    gap: 9px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.contact-field {
    position: relative;
    display: block;
    padding: 2px;
    border: 1px solid #dfe8f2;
    border-radius: 14px;
    background: #ffffff;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.contact-field:hover,
.contact-field:focus-within {
    transform: translateY(-1px);
    border-color: #317EFE;
    box-shadow: 0 12px 28px rgba(49, 126, 254, 0.12), 0 0 0 4px rgba(49, 126, 254, 0.08);
}

.contact-field i {
    position: absolute;
    left: 18px;
    top: 50%;
    z-index: 2;
    color: #8aa0bc;
    font-size: 15px;
    transform: translateY(-50%);
    transition: color 0.22s ease;
}

.contact-field:hover i,
.contact-field:focus-within i {
    color: #16c2cf;
}

.contact-field input,
.contact-field textarea {
    width: 100%;
    border: 0 !important;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.96);
    color: #071936;
    font-size: 15px;
    font-weight: 700;
    outline: none;
    transition: background 0.22s ease;
}

.contact-field input {
    height: 46px;
    padding: 20px 15px 8px 46px;
}

.contact-field textarea {
    min-height: 78px;
    resize: vertical;
    padding: 27px 52px 22px 46px;
}

.contact-field span {
    position: absolute;
    left: 48px;
    top: 14px;
    z-index: 2;
    color: #7186a1;
    font-size: 14px;
    font-weight: 800;
    pointer-events: none;
    transition: transform 0.18s ease, color 0.18s ease, font-size 0.18s ease;
}

.contact-field input:focus + span,
.contact-field input:not(:placeholder-shown) + span,
.contact-field textarea:focus + span,
.contact-field textarea:not(:placeholder-shown) + span {
    color: #317EFE;
    font-size: 11px;
    transform: translateY(-12px);
}

.message-field i {
    top: 29px;
    transform: none;
}

.message-field small {
    position: absolute;
    right: 16px;
    bottom: 13px;
    z-index: 2;
    color: #8aa0bc;
    font-size: 11px;
    font-weight: 900;
}

.message-field span {
    max-width: calc(100% - 72px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.form-choice-group {
    padding: 12px 13px;
    border: 1px solid #dfe8f2;
    border-radius: 14px;
    background: #ffffff;
}

.form-choice-group strong {
    display: block;
    margin-bottom: 10px;
    color: #071936;
    font-size: 13px;
    font-weight: 900;
}

.form-choice-group.compact {
    padding: 12px 13px;
}

.form-choice-group.compact strong {
    margin-bottom: 10px;
}

.choice-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.chip-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
}

.choice-grid label,
.chip-row label {
    margin: 0;
}

.choice-grid input,
.chip-row input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.choice-grid span,
.chip-row span {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid #dfe8f2;
    border-radius: 999px;
    background: #fdfefe;
    color: #335371;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, color 0.22s ease, background 0.22s ease;
}

.chip-row span {
    width: auto;
    min-height: 34px;
    padding: 0 12px;
    white-space: nowrap;
}

.choice-grid span i {
    color: #317EFE;
    font-size: 13px;
    transition: color .22s ease;
}

.choice-grid span:hover,
.chip-row span:hover {
    transform: translateY(-1px);
    border-color: #317EFE;
    color: #071936;
    box-shadow: 0 10px 24px rgba(49, 126, 254, 0.12);
}

.choice-grid input:checked + span,
.chip-row input:checked + span {
    border-color: #317EFE;
    background: #317EFE;
    color: #ffffff;
    box-shadow: 0 14px 28px rgba(49, 126, 254, 0.18);
}

.choice-grid input:checked + span i {
    color: #ffffff;
}


.contact-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 46px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(100deg, #317EFE 0%, #238df4 64%, #18c7d2 100%);
    color: #ffffff;
    font-size: 15px;
    font-weight: 900;
    box-shadow: 0 16px 34px rgba(36, 107, 254, 0.2);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.contact-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 42px rgba(36, 107, 254, 0.26);
}

.contact-submit-note {
    color: #536985;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;
    margin: 0 0 0;
    text-align: center;
}

.brightloop-contact-methods {
    padding: 0 0 76px;
}

.contact-method-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.contact-method-card {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 118px;
    padding: 20px;
    border: 1px solid #dfe8f2;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 16px 38px rgba(28, 72, 116, 0.07);
    color: inherit;
    transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.contact-method-card:hover {
    border-color: #317EFE;
    box-shadow: 0 20px 48px rgba(49, 126, 254, 0.14);
    transform: translateY(-2px);
}

.contact-method-card > i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #eef6ff;
    color: #246bfe;
    font-size: 18px;
    transition: background 0.22s ease, color 0.22s ease;
}

.contact-method-card:hover > i {
    background: linear-gradient(100deg, #317EFE 0%, #18c7d2 74%, #E7F914 100%);
    color: #ffffff;
}

.contact-method-card strong {
    display: block;
    color: #071936;
    font-size: 18px;
    font-weight: 900;
}

.contact-method-card span {
    display: block;
    margin-top: 4px;
    color: #536985;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
}

.contact-method-card small {
    display: inline-flex;
    margin-top: 7px;
    color: #317EFE;
    font-size: 12px;
    font-weight: 900;
}

.contact-hidden-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.brightloop-success-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.brightloop-success-modal.is-visible {
    display: flex;
}

.success-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 32, 58, 0.42);
    backdrop-filter: blur(8px);
}

.success-modal-card {
    position: relative;
    width: min(100%, 460px);
    padding: 34px 32px 30px;
    border: 1px solid #dfe8f2;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 28px 70px rgba(20, 32, 58, 0.22);
    text-align: center;
    animation: successCardIn 0.42s cubic-bezier(.2, .8, .2, 1) both;
}

.success-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid #dfe8f2;
    border-radius: 50%;
    background: #ffffff;
    color: #335371;
    cursor: pointer;
    transition: border-color 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.success-modal-close:hover {
    border-color: #317EFE;
    color: #317EFE;
    transform: rotate(8deg);
}

.success-check-wrap {
    position: relative;
    width: 108px;
    height: 108px;
    margin: 0 auto 18px;
}

.success-check-ring,
.success-check-icon {
    position: absolute;
    inset: 16px;
    border-radius: 50%;
}

.success-check-ring {
    border: 2px solid rgba(49, 126, 254, 0.18);
    background: #f4f8fc;
    animation: successRing 1.4s ease-out infinite;
}

.success-check-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #317EFE;
    color: #ffffff;
    font-size: 30px;
    box-shadow: 0 16px 34px rgba(49, 126, 254, 0.26);
    animation: successPop 0.55s cubic-bezier(.2, .9, .2, 1) both;
}

.success-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #E7F914;
    opacity: 0.9;
    animation: successFloat 1.8s ease-in-out infinite;
}

.success-dot.dot-one {
    top: 16px;
    left: 20px;
}

.success-dot.dot-two {
    top: 26px;
    right: 12px;
    width: 7px;
    height: 7px;
    background: #28c8d1;
    animation-delay: .18s;
}

.success-dot.dot-three {
    right: 22px;
    bottom: 18px;
    width: 6px;
    height: 6px;
    background: #317EFE;
    animation-delay: .3s;
}

.success-dot.dot-four {
    left: 14px;
    bottom: 28px;
    width: 6px;
    height: 6px;
    background: #28c8d1;
    animation-delay: .46s;
}

.success-modal-kicker {
    display: inline-flex;
    margin-bottom: 8px;
    color: #317EFE;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.success-modal-card h2 {
    margin: 0;
    color: #14203A;
    font-size: 30px;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.16;
}

.success-modal-card p {
    max-width: 340px;
    margin: 12px auto 0;
    color: #335371;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.6;
}

.success-modal-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.success-primary-btn,
.success-secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
    transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.success-primary-btn {
    border: 1px solid #317EFE;
    background: #317EFE;
    color: #ffffff;
}

.success-primary-btn:hover {
    border-color: #14203A;
    background: #14203A;
    color: #ffffff;
    transform: translateY(-1px);
}

.success-secondary-btn {
    border: 1px solid #dfe8f2;
    background: #ffffff;
    color: #317EFE;
}

.success-secondary-btn:hover {
    border-color: #317EFE;
    color: #14203A;
    transform: translateY(-1px);
}

@keyframes successCardIn {
    from {
        opacity: 0;
        transform: translateY(14px) scale(.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes successPop {
    0% {
        transform: scale(.62);
    }
    70% {
        transform: scale(1.08);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes successRing {
    0% {
        box-shadow: 0 0 0 0 rgba(49, 126, 254, .22);
    }
    100% {
        box-shadow: 0 0 0 18px rgba(49, 126, 254, 0);
    }
}

@keyframes successFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

@media (max-width: 1199px) {
    .brightloop-contact-grid {
        grid-template-columns: 1fr;
    }

    .brightloop-contact-copy h1,
    .brightloop-contact-copy p,
    .contact-process-list {
        max-width: none;
    }

    .brightloop-contact-form-card {
        justify-self: stretch;
        width: 100%;
    }
}

@media (max-width: 767px) {
    .brightloop-contact-hero {
        min-height: auto;
        padding: 52px 0 42px;
    }

    .brightloop-contact-copy h1 {
        font-size: 38px;
    }

    .contact-process-list,
    .form-row,
    .contact-method-grid {
        grid-template-columns: 1fr;
    }

    .brightloop-contact-form-card {
        padding: 20px 16px;
        border-radius: 16px;
    }

    .choice-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .brightloop-contact-methods {
        padding-bottom: 66px;
    }
}

@media (max-width: 460px) {
    .choice-grid {
        grid-template-columns: 1fr;
    }

    .form-card-top {
        align-items: flex-start;
        flex-direction: column;
    }

    .contact-field textarea {
        padding-right: 20px;
    }
}
