/* RemoteCoder.in home-page contact form
   Dedicated stylesheet so the contact section is not affected by stale cached home.css. */

#contact.contact-section {
    background: #f3f6f9;
}

#contact .contact-section-head {
    margin-bottom: 28px;
    max-width: 920px;
}

#contact .contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(310px, .95fr);
    gap: 38px;
    align-items: stretch;
}

#contact .contact-form-card,
#contact .direct-contact-card {
    box-sizing: border-box;
    min-width: 0;
    background: #ffffff;
    border: 1px solid #d8e1ea;
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(16, 42, 67, .07);
}

#contact .contact-form-card {
    padding: 30px 34px 34px;
}

#contact .home-contact-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin: 0;
}

#contact .home-contact-form label {
    display: block;
    margin: 8px 0 0;
    color: #102a43;
    font-size: .96rem;
    font-weight: 750;
    line-height: 1.35;
}

#contact .home-contact-form label span[aria-hidden="true"] {
    color: #b42318;
}

#contact .home-contact-form input,
#contact .home-contact-form select,
#contact .home-contact-form textarea {
    display: block;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin: 0;
    border: 1px solid #d4dfeb;
    border-radius: 7px;
    background: #ffffff;
    color: #102a43;
    padding: 11px 13px;
    font: inherit;
    line-height: 1.35;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

#contact .home-contact-form input,
#contact .home-contact-form select {
    min-height: 46px;
}

#contact .home-contact-form textarea {
    min-height: 138px;
    resize: vertical;
}

#contact .home-contact-form input:focus,
#contact .home-contact-form select:focus,
#contact .home-contact-form textarea:focus {
    border-color: #1f6feb;
    box-shadow: 0 0 0 3px rgba(31, 111, 235, .12);
}

#contact .home-contact-form input:disabled {
    background: #f5f7fa;
    cursor: not-allowed;
}

#contact .contact-submit {
    display: block;
    box-sizing: border-box;
    width: 100%;
    min-height: 46px;
    margin: 5px 0 0;
    border: 0;
    border-radius: 10px;
    padding: 10px 16px;
    background: #315d9b;
    color: #ffffff;
    font: inherit;
    font-size: 1rem;
    font-weight: 800;
    text-align: center;
    cursor: pointer;
}

#contact .contact-submit:hover,
#contact .contact-submit:focus-visible {
    filter: brightness(.96);
}

#contact .contact-submit:disabled {
    opacity: .68;
    cursor: not-allowed;
}

#contact .contact-trap {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

#contact .contact-alert {
    margin: 0 0 16px;
    padding: 11px 13px;
    border-radius: 9px;
    font-weight: 700;
}

#contact .contact-alert-success {
    color: #12613b;
    background: #eaf8f0;
    border: 1px solid #b9e4ca;
}

#contact .contact-alert-error {
    color: #8b1e17;
    background: #fff0ee;
    border: 1px solid #f0c2bd;
}

#contact .contact-noscript {
    margin: 4px 0 0;
    color: #5f7185;
    font-size: .88rem;
}

#contact .contact-noscript a {
    color: #1f6feb;
    text-decoration: underline;
}

#contact .direct-contact-card {
    padding: 34px 38px;
}

#contact .direct-contact-card h3 {
    margin: 0 0 22px;
    color: #102a43;
    font-size: 1.45rem;
    line-height: 1.25;
}

#contact .direct-contact-name {
    margin: 0 0 20px;
    color: #102a43;
    font-size: 1.05rem;
    font-weight: 800;
}

#contact .direct-contact-list {
    margin: 0;
}

#contact .direct-contact-list div {
    margin-bottom: 21px;
}

#contact .direct-contact-list dt {
    margin: 0 0 4px;
    color: #68798a;
    font-size: .79rem;
    font-weight: 900;
    letter-spacing: .04em;
}

#contact .direct-contact-list dd {
    margin: 0;
    color: #102a43;
    font-size: 1.05rem;
    font-weight: 800;
    overflow-wrap: anywhere;
}

#contact .direct-contact-list a {
    color: inherit;
    text-decoration: none;
}

#contact .direct-contact-list a:hover,
#contact .direct-contact-list a:focus-visible {
    color: #1f6feb;
    text-decoration: underline;
}

#contact .protected-form-note {
    margin-top: 26px;
    padding: 20px 20px 18px;
    border-left: 5px solid #d9a11d;
    background: #fff9ee;
}

#contact .protected-form-note h4 {
    margin: 0 0 8px;
    color: #102a43;
    font-size: 1.02rem;
}

#contact .protected-form-note p {
    margin: 0;
    color: #5f7185;
    font-size: .91rem;
    line-height: 1.55;
}

@media (max-width: 900px) {
    #contact .contact-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

@media (max-width: 768px) {
    #contact .contact-section-head {
        margin-bottom: 18px;
    }

    #contact .contact-form-card,
    #contact .direct-contact-card {
        padding: 18px;
        border-radius: 14px;
    }

    #contact .home-contact-form {
        gap: 6px;
    }

    #contact .home-contact-form label {
        font-size: .86rem;
    }

    #contact .home-contact-form input,
    #contact .home-contact-form select,
    #contact .home-contact-form textarea {
        padding: 9px 10px;
        font-size: .88rem;
    }

    #contact .home-contact-form input,
    #contact .home-contact-form select,
    #contact .contact-submit {
        min-height: 40px;
    }

    #contact .home-contact-form textarea {
        min-height: 120px;
    }

    #contact .direct-contact-card h3 {
        margin-bottom: 16px;
        font-size: 1.22rem;
    }

    #contact .direct-contact-name,
    #contact .direct-contact-list dd {
        font-size: .94rem;
    }

    #contact .direct-contact-list div {
        margin-bottom: 15px;
    }

    #contact .protected-form-note {
        margin-top: 18px;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    #contact .contact-form-card,
    #contact .direct-contact-card {
        padding: 14px;
    }
}
