/* ==========================================================
   GFRF CONTACT PAGE
   Load AFTER style.css and responsive.css
   ========================================================== */

#gfrf-contact-page {
    background: #f2efef;
    min-height: 100vh;
}


/* Keep content comfortably below fixed navigation */
#gfrf-contact-page .gfrf-contact-section {
    padding: 180px 15px 65px;
}


/* Main white contact card */
#gfrf-contact-page .gfrf-contact-panel {
    max-width: 820px;
    margin: 0 auto;
    padding: 38px 42px 42px;

    background: #ffffff;

    border: 1px solid #dddddd;
    border-radius: 12px;

    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}


/* Heading */
#gfrf-contact-page .gfrf-contact-panel h1 {
    margin: 0 0 12px !important;

    color: #223d61 !important;

    font-size: 34px !important;
    line-height: 1.25 !important;

    text-align: center;
}


/* Intro text */
#gfrf-contact-page .gfrf-contact-intro {
    max-width: 680px;

    margin: 0 auto 10px !important;

    color: #555555;

    font-size: 16px;
    line-height: 1.6;

    text-align: center;
}


/* Direct email line */
#gfrf-contact-page .gfrf-contact-direct {
    margin: 0 auto 30px !important;

    font-size: 14px;
    line-height: 1.5;

    text-align: center;
}

#gfrf-contact-page .gfrf-contact-direct a {
    color: #286090;
    text-decoration: underline;
}


/* ==========================================================
   FORM
   ========================================================== */

#gfrf-contact-form {
    width: 100%;
}


/* Two-column rows */
#gfrf-contact-form .gfrf-form-columns {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 18px;
}


/* Each field */
#gfrf-contact-form .gfrf-form-row {
    margin: 0 0 20px !important;
}


/* Labels */
#gfrf-contact-form .gfrf-form-row label {
    display: block;

    margin: 0 0 7px !important;

    color: #333333;

    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
}


/* Inputs */
#gfrf-contact-form .gfrf-form-row input,
#gfrf-contact-form .gfrf-form-row select,
#gfrf-contact-form .gfrf-form-row textarea {

    display: block !important;

    width: 100% !important;

    margin: 0 !important;

    padding: 12px 14px !important;

    color: #333333 !important;

    background-color: #ffffff !important;

    border: 1px solid #c8c8c8 !important;
    border-radius: 7px !important;

    font-family: inherit !important;
    font-size: 16px !important;

    line-height: 1.4 !important;

    box-shadow: none !important;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


/* Normal input/select heights */
#gfrf-contact-form .gfrf-form-row input,
#gfrf-contact-form .gfrf-form-row select {
    height: 48px !important;
}


/* Textarea */
#gfrf-contact-form .gfrf-form-row textarea {
    min-height: 165px !important;
    height: auto !important;

    resize: vertical;
}


/* Focus state */
#gfrf-contact-form .gfrf-form-row input:focus,
#gfrf-contact-form .gfrf-form-row select:focus,
#gfrf-contact-form .gfrf-form-row textarea:focus {

    outline: none !important;

    border-color: #5e9a28 !important;

    box-shadow: 0 0 0 3px rgba(94, 154, 40, 0.12) !important;
}


/* Placeholder */
#gfrf-contact-form input::placeholder,
#gfrf-contact-form textarea::placeholder {
    color: #888888 !important;
}


/* ==========================================================
   BUTTON
   ========================================================== */

#gfrf-contact-form #contact-submit {

    display: inline-block !important;

    width: auto !important;
    min-width: 175px !important;

    height: 48px !important;

    margin: 3px 0 0 !important;

    padding: 10px 24px !important;

    color: #ffffff !important;

    background: #223d61 !important;

    border: 1px solid #223d61 !important;
    border-radius: 7px !important;

    font-size: 16px !important;
    font-weight: 600;

    line-height: 1.4 !important;

    text-align: center;

    cursor: pointer;
}


#gfrf-contact-form #contact-submit:hover {
    background: #315982 !important;
    border-color: #315982 !important;
}


#gfrf-contact-form #contact-submit:disabled {
    opacity: 0.6;
    cursor: wait;
}


/* ==========================================================
   FORM STATUS
   ========================================================== */

#gfrf-contact-form .gfrf-contact-status {
    min-height: 24px;

    margin: 16px 0 0 !important;

    font-size: 15px;
    font-weight: 600;

    line-height: 1.4;
}


#gfrf-contact-form .gfrf-contact-status.is-success {
    color: #347334;
}


#gfrf-contact-form .gfrf-contact-status.is-error {
    color: #a02c2c;
}


/* ==========================================================
   ANTI-SPAM HONEYPOT
   Must never be visible
   ========================================================== */

#gfrf-contact-form .gfrf-honeypot {

    position: absolute !important;

    left: -99999px !important;
    top: auto !important;

    width: 1px !important;
    height: 1px !important;

    margin: 0 !important;
    padding: 0 !important;

    overflow: hidden !important;

    opacity: 0 !important;

    pointer-events: none !important;
}


/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width: 900px) {

    #gfrf-contact-page .gfrf-contact-section {
        padding-top: 150px;
    }

    #gfrf-contact-page .gfrf-contact-panel {
        padding: 32px;
    }

}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 640px) {

    #gfrf-contact-page .gfrf-contact-section {
-       padding: 115px 10px 40px;
+       padding: 320px 10px 40px !important;
    }

    #gfrf-contact-page .gfrf-contact-panel {
        padding: 24px 18px 28px;

        border-radius: 8px;
    }

    #gfrf-contact-page .gfrf-contact-panel h1 {
        font-size: 27px !important;
    }

    #gfrf-contact-form .gfrf-form-columns {
        grid-template-columns: 1fr;
        gap: 0;
    }

    #gfrf-contact-form #contact-submit {
        width: 100% !important;
    }

}