/* ============================================================
   FCM Public Styles v2
   ============================================================ */

/* ----------------------------------------------------------
   Obituary 2-column layout: photo+QR left | form right
   ---------------------------------------------------------- */
.fcm-obit-layout {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    margin: 24px 0 40px;
    font-family: inherit;
}

/* LEFT */
.fcm-obit-left {
    flex: 0 0 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.fcm-obit-photo img {
    width: 220px;
    height: 260px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

.fcm-obit-qr {
    text-align: center;
}
.fcm-obit-qr img {
    display: block;
    margin: 0 auto;
}
.fcm-qr-label {
    font-size: 11px;
    color: #888;
    margin-top: 5px;
    line-height: 1.4;
}

.fcm-obit-dates {
    width: 100%;
    font-size: 12px;
    color: #555;
    line-height: 1.8;
    border-top: 1px solid #e2e2e2;
    padding-top: 10px;
}
.fcm-dt-label {
    font-weight: 700;
    color: #333;
    display: inline-block;
    min-width: 58px;
}

/* RIGHT */
.fcm-obit-right {
    flex: 1;
    min-width: 0;
}

/* ----------------------------------------------------------
   Form fields - clean, minimal, matching screenshot style
   ---------------------------------------------------------- */
.fcm-obit-right form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fcm-field {
    display: flex;
    flex-direction: column;
}

.fcm-row { margin-bottom: 10px; }

.fcm-two-col {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.fcm-field input[type="text"],
.fcm-field input[type="email"],
.fcm-field input[type="tel"],
.fcm-field textarea,
.fcm-field select.fcm-select {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid #ccc;
    border-radius: 8px;
    font-size: 17px;
    color: #1a1a1a;
    background: #ffffff;
    font-family: inherit;
    transition: border-color .2s, background .2s;
    appearance: auto;
}

.fcm-field input::placeholder,
.fcm-field textarea::placeholder,
.fcm-field select.fcm-select::placeholder {
    color: #888;
    font-size: 16px;
}

.fcm-field input:focus,
.fcm-field textarea:focus,
.fcm-field select.fcm-select:focus {
    outline: none;
    border-color: #666;
    background: #fff;
}

.fcm-field textarea {
    resize: vertical;
    min-height: 120px;
}

/* Submit row */
.fcm-submit-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 4px;
}

.fcm-submit-btn {
    background: #2e7d32;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 12px 32px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .08em;
    cursor: pointer;
    transition: background .2s;
}
.fcm-submit-btn:hover  { background: #256427; }
.fcm-submit-btn:active { background: #1b4d1e; }

/* Alerts */
.fcm-success, .fcm-error {
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 14px;
    font-size: 14px;
    font-weight: 500;
}
.fcm-success { background: #eafaf1; border: 1px solid #27ae60; color: #1e7e45; }
.fcm-error   { background: #fdf0ef; border: 1px solid #e74c3c; color: #c0392b; }

/* ----------------------------------------------------------
   Services Landing Page
   ---------------------------------------------------------- */
.fcm-landing-page {
    max-width: 860px;
    margin: 0 auto;
    padding: 20px 0 40px;
    text-align: center;
    font-family: inherit;
}

.fcm-landing-logo-wrap {
    margin-bottom: 28px;
}
.fcm-landing-logo-wrap img.fcm-landing-logo {
    max-width: 220px;
    height: auto;
    display: inline-block;
}
.fcm-landing-site-name {
    font-size: 26px;
    font-weight: 700;
    color: #1a5c1a;
}

.fcm-landing-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 28px;
    letter-spacing: .02em;
}

.fcm-landing-empty {
    color: #888;
    font-size: 15px;
}

.fcm-services-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.fcm-service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: opacity .2s;
    width: 100%;
    max-width: 320px;
}
.fcm-service-card:hover { opacity: .82; }

.fcm-service-photo {
    width: 200px;
    height: 230px;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 10px;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
}
.fcm-service-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.fcm-service-no-photo {
    color: #bbb;
    font-size: 13px;
}

.fcm-service-info { text-align: center; }
.fcm-service-name {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 4px;
}
.fcm-service-meta {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}
.fcm-service-chapel {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}

/* ----------------------------------------------------------
   Responsive
   ---------------------------------------------------------- */
@media (max-width: 600px) {
    .fcm-obit-layout {
        flex-direction: column;
        align-items: center;
    }
    .fcm-obit-left {
        flex: none;
        width: 100%;
    }
    .fcm-obit-photo img {
        width: 100%;
        height: auto;
        max-height: 280px;
    }
    .fcm-two-col {
        grid-template-columns: 1fr !important;
    }
}

/* Dates at the top under the title */
.fcm-obit-dates-top {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 28px;
    margin: 4px 0 20px;
    font-size: 13px;
    color: #555;
    line-height: 1.8;
    border-bottom: 1px solid #eee;
    padding-bottom: 14px;
}
.fcm-obit-dates-top .fcm-dt-label {
    font-weight: 700;
    color: #333;
    display: inline-block;
    min-width: 58px;
}

/* ---- Background image on service card ---- */
.fcm-service-card.fcm-has-bg {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    padding: 16px;
}
.fcm-service-card.fcm-has-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: inherit;
    background-size: cover;
    background-position: center;
    opacity: 0.18;
    z-index: 0;
    border-radius: 8px;
}
.fcm-service-card.fcm-has-bg .fcm-service-photo,
.fcm-service-card.fcm-has-bg .fcm-service-info {
    position: relative;
    z-index: 1;
}

/* ---- Background image on full obituary page ---- */
.fcm-obit-bg {
    position: fixed;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.10;
    z-index: -1;
    pointer-events: none;
}

