/*
 * jcts-contact-forms.css
 *
 * Card layout for the two form pages, which are near-twins - same `#contact-section`
 * wrapper, same `.contact-form`, same `.heading-wrap`, same field markup:
 *
 *   - /Home/Contact         Views/Home/Contact.cshtml
 *   - /Home/PrayerRequest   Views/Home/PrayerRequest.cshtml
 *
 * Same visual language as css/jcts-message-cards.css: white surface, 14px radius,
 * hairline #ecf0f4 border, 0 5px 20px rgba(0,0,0,.07) shadow.
 *
 * Everything is scoped to `#contact-section` (or `#map`), so nothing here can reach the
 * shared nav, the footer, or any other page - both views put that id on the container
 * that holds the form.
 *
 * The rules in the "Contact page only" block at the bottom target markup that exists
 * only on Contact; on PrayerRequest those selectors simply match nothing.
 */

/* ---------------------------------------------------------------------------
   Card surfaces
   --------------------------------------------------------------------------- */
#contact-section .contact-form,
#contact-section .quick-contact-panel {
    background: #fff;
    border: 1px solid #ecf0f4;
    border-radius: 14px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.07);
    padding: 28px;
    height: 100%;
}

/* ---------------------------------------------------------------------------
   Form controls
   --------------------------------------------------------------------------- */
#contact-section .form-control {
    background-color: #fff;
    border: 1px solid #dfe4ea;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 15px;
    color: #1f2733;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

    /* The theme's focus ring is green (style.css:1918-1921), left over from the
       original template palette. Brought in line with the #2196f3 brand blue. */
    #contact-section .form-control:focus {
        border-color: #2196f3;
        box-shadow: 0 0 0 0.2rem rgba(33, 150, 243, 0.18);
    }

#contact-section label {
    font-size: 13.5px;
    font-weight: 600;
    color: #1f2733;
    margin-bottom: 6px;
}

#contact-section .contact-form .btn-primary {
    border-radius: 8px;
    padding: 10px 24px;
    font-size: 14.5px;
    font-weight: 600;
}

    #contact-section .contact-form .btn-primary:disabled {
        opacity: 0.65;
        cursor: not-allowed;
    }

/* Validation / submission feedback, written by wwwroot/js/jcts-contact-form.js.
   Empty until there is something to say, so it takes no space on a clean form. */
#contact-section .form-status {
    font-size: 14px;
    line-height: 1.6;
    font-weight: 600;
}

    #contact-section .form-status:not(:empty) {
        margin-top: 14px;
    }

    #contact-section .form-status.is-error {
        color: #c0392b;
    }

    #contact-section .form-status.is-success {
        color: #1e7e34;
    }

    #contact-section .form-status.is-pending {
        color: #67717f;
    }

/* ---------------------------------------------------------------------------
   Side image (PrayerRequest) - given the same surface treatment as the cards.
   --------------------------------------------------------------------------- */
#contact-section .side-image {
    width: 100%;
    height: 100%;
    max-height: 460px;
    object-fit: cover;
    border: 1px solid #ecf0f4;
    border-radius: 14px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.07);
}

/* ---------------------------------------------------------------------------
   Contact page only - this markup does not exist on PrayerRequest.
   --------------------------------------------------------------------------- */
#contact-section .quick-contact-item {
    padding-bottom: 18px;
    margin-bottom: 18px !important;
    border-bottom: 1px solid #f0f2f5;
}

    #contact-section .quick-contact-item:last-child {
        padding-bottom: 0;
        margin-bottom: 0 !important;
        border-bottom: 0;
    }

    /* The theme sizes these at 80px (style.css:9512), which crowds a padded
       panel. The ID here outranks it comfortably. */
    #contact-section .quick-contact-item [class*="icon-"] {
        font-size: 1.35rem;
        width: 52px;
        height: 52px;
        flex: 0 0 52px;
        margin-right: 18px;
        border-width: 1px;
    }

    #contact-section .quick-contact-item .text {
        font-size: 15px;
        line-height: 1.7;
        color: #67717f;
        margin-bottom: 0;
    }

        /* Phone and email are tel:/mailto: links, as they already are in the
           footer. Kept in body colour so the panel does not turn blue. */
        #contact-section .quick-contact-item .text a {
            color: #67717f;
            text-decoration: none;
        }

            #contact-section .quick-contact-item .text a:hover {
                color: #2196f3;
                text-decoration: underline;
            }

/* Map: same radius/border/shadow as the cards. */
#map {
    border: 1px solid #ecf0f4;
    border-radius: 14px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.07);
    overflow: hidden;
}
