.contact-field-error {
    display: block;
    margin-top: 6px;
    color: #dc3545;
    font-size: 13px;
    font-weight: 500;
}

.contact-input-shell:focus-within {
    border-color: #2b70fa !important;
    box-shadow: 0 0 0 4px rgba(43, 112, 250, 0.1);
}

.contact-input-shell.contact-field-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.08);
}

.contact-success-modal .modal-dialog {
    max-width: 480px;
    padding: 16px;
}

.contact-success-modal .modal-content {
    overflow: hidden;
    border: 0;
    border-radius: 24px;
    background:
        radial-gradient(circle at 100% 0, rgba(43, 112, 250, 0.13), transparent 35%),
        #ffffff;
    box-shadow: 0 30px 80px rgba(10, 32, 72, 0.24);
}

.contact-success-modal .modal-content::before {
    position: absolute;
    top: 0;
    left: 10%;
    width: 80%;
    height: 4px;
    content: "";
    border-radius: 0 0 8px 8px;
    background: linear-gradient(90deg, #2b70fa, #17c6ba, #22c55e);
}

.contact-success-modal .modal-body {
    padding: 48px 42px 42px;
    text-align: center;
}

.contact-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #68758a;
    background: #f2f5fa;
    transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.contact-modal-close:hover {
    color: #ffffff;
    background: #2b70fa;
    transform: rotate(8deg);
}

.contact-success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 82px;
    height: 82px;
    margin-bottom: 22px;
    border: 8px solid #eafaf2;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, #17c6ba, #22c55e);
    font-size: 30px;
    box-shadow: 0 14px 28px rgba(34, 197, 94, 0.22);
}

.contact-success-eyebrow {
    display: block;
    margin-bottom: 8px;
    color: #2b70fa;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.contact-success-modal h2 {
    margin-bottom: 12px;
    color: #121826;
    font-size: 36px;
}

.contact-success-modal p {
    max-width: 350px;
    margin: 0 auto 22px;
    color: #5e6878;
    font-size: 17px;
    line-height: 1.65;
}

.contact-success-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-bottom: 26px;
    padding: 12px 15px;
    border: 1px solid #e3ebf8;
    border-radius: 10px;
    color: #56647a;
    background: #f7faff;
    font-size: 13px;
    font-weight: 600;
}

.contact-success-note i {
    color: #2b70fa;
    font-size: 17px;
}

.contact-success-action {
    min-width: 150px;
    padding: 13px 30px;
    border: 0;
    border-radius: 9px;
    color: #ffffff;
    background: linear-gradient(90deg, #2b70fa, #17a9d2);
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 12px 25px rgba(43, 112, 250, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-success-action:hover,
.contact-success-action:focus-visible {
    color: #ffffff;
    box-shadow: 0 16px 30px rgba(43, 112, 250, 0.34);
    transform: translateY(-2px);
}

@media (max-width: 575px) {
    .contact-success-modal .modal-body {
        padding: 44px 24px 30px;
    }

    .contact-success-modal h2 {
        font-size: 30px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .contact-modal-close,
    .contact-success-action {
        transition: none;
    }
}
