/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

/* =========================================================================
   jgwm_form shortcode — public contact form
   ========================================================================= */

.jgwm_form {
    max-width: 640px;
    margin: 0 auto 2em;
    font-size: 1rem;
}

.jgwm_form .jgwm_form_field {
    margin-bottom: 1.2em;
}

.jgwm_form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.3em;
}

.jgwm_form .jgwm_required {
    color: #c00;
}

.jgwm_form input[type="text"],
.jgwm_form input[type="email"],
.jgwm_form textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 0.55em 0.75em;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 1rem;
    line-height: 1.5;
    background: #fff;
    color: #1d2327;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.jgwm_form input[type="text"]:focus,
.jgwm_form input[type="email"]:focus,
.jgwm_form textarea:focus {
    border-color: #1776a6;
    box-shadow: 0 0 0 2px rgba(23, 118, 166, 0.2);
    outline: none;
}

.jgwm_form textarea {
    resize: vertical;
    min-height: 140px;
}

/* Submit button */
.jgwm_form .jgwm_form_submit button {
    display: inline-block;
    padding: 0.6em 1.6em;
    background-color: #368B38;
    color: #fff;
    border: none;
    border-radius: 3px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.jgwm_form .jgwm_form_submit button:hover,
.jgwm_form .jgwm_form_submit button:focus {
    background-color: #2a6e2c;
    outline: none;
}

/* Success message */
.jgwm_form_success {
    padding: 1em 1.2em;
    background-color: #edfaee;
    border: 1px solid #368B38;
    border-left: 4px solid #368B38;
    border-radius: 3px;
    color: #1d4620;
    margin-bottom: 1.5em;
}

/* Error message */
.jgwm_form_error {
    padding: 1em 1.2em;
    background-color: #fdf2f2;
    border: 1px solid #E02222;
    border-left: 4px solid #E02222;
    border-radius: 3px;
    color: #6b1010;
    margin-bottom: 1.2em;
}

.jgwm_form_error p {
    margin: 0.2em 0;
}

/* Honeypot — visually hidden from real users */
.jgwm_hp_field {
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    left: -9999px !important;
    height: 0 !important;
    overflow: hidden !important;
}
