/* NxCorp | css/contact-form.css
   Contact form
   Load order matters: files are linked in index.html in this order. */

/* ========== SECTION: CONTACT FORM (CSS) ========== */
.row2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 12px;
}

.trap {
    position: absolute !important;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.contact input:focus,
.contact textarea:focus,
.contact select:focus {
    outline: none;
    border-color: #ff6b3d;
    box-shadow: 0 0 0 3px rgba(255, 107, 61, .25);
}

.contact ::placeholder {
    color: rgba(255, 255, 255, .4);
}

#go {
    display: inline-flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 16px;
}

#go .spin {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(14, 17, 48, .3);
    border-top-color: #0e1130;
    border-radius: 50%;
    animation: rot .7s linear infinite;
}

.cf.busy #go .spin {
    display: inline-block;
}

@keyframes rot {
    to {
        transform: rotate(360deg);
    }
}

#msg {
    min-height: 22px;
    margin-top: 12px;
    font-size: 14.5px;
}

#msg.err {
    color: #ffb4a2;
}

.cf .ok-card {
    display: none;
    padding: 28px 8px;
    text-align: center;
}

.cf.sent>:not(.ok-card) {
    display: none;
}

.cf.sent #go {
    display: none !important;
}

.cf.sent .ok-card {
    display: block;
    animation: up .6s both;
}

.ok-card svg {
    width: 84px;
    height: 84px;
}

.ok-card circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: draw .7s .1s forwards;
}

.ok-card path {
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: draw .5s .7s forwards;
}

@keyframes draw {
    to {
        stroke-dashoffset: 0;
    }
}

.ok-card h3 {
    margin: 10px 0 6px;
    font-size: 26px;
}

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

    .nt-cta {
        display: none;
    }

    .notice {
        font-size: 13px;
        padding: 8px 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nt-move {
        animation: none;
    }

    .rv {
        filter: none;
    }
}

@media (max-width: 560px) {
    .pfw {
        width: calc(100% - 20px);
    }
}
