/* ============================================
   ZIMMERMAN COMMUNITY ENDORSEMENTS — FRONTEND
   Campaign Colors: #1B3A6B (navy), #C8102E (red), #FFFFFF
   ============================================ */

/* ---------- Layout Wrapper ---------- */
.zce-wrap {
    max-width: 1100px;
    margin: 0 auto;
    font-family: inherit;
}

/* ---------- Featured Cards Grid ---------- */
.zce-featured-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-bottom: 48px;
}

@media (max-width: 680px) {
    .zce-featured-grid { grid-template-columns: 1fr; }
}

/* ---------- Endorsement Card ---------- */
.zce-card {
    background: #ffffff;
    border: 1px solid #e0e6ef;
    border-radius: 12px;
    padding: 28px 24px 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 2px 12px rgba(27,58,107,0.08);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.zce-card:hover {
    box-shadow: 0 6px 24px rgba(27,58,107,0.15);
    transform: translateY(-2px);
}

/* ---------- Avatar ---------- */
.zce-avatar-wrap {
    margin-bottom: 16px;
}
.zce-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #1B3A6B;
}
.zce-initials-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 1px;
    border: 3px solid rgba(255,255,255,0.3);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* ---------- Card Text ---------- */
.zce-quote {
    font-size: 15px;
    line-height: 1.65;
    color: #333;
    font-style: italic;
    margin: 0 0 14px;
    flex-grow: 1;
}
.zce-name {
    font-weight: 700;
    font-size: 16px;
    color: #1B3A6B;
    margin: 0 0 4px;
}
.zce-location {
    font-size: 13px;
    color: #666;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ---------- Additional Section ---------- */
.zce-additional-section {
    background: #f4f7fc;
    border-radius: 12px;
    padding: 32px 28px;
    margin-bottom: 48px;
}
.zce-additional-title {
    font-size: 20px;
    font-weight: 700;
    color: #1B3A6B;
    margin: 0 0 18px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.zce-name-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 2px;
    line-height: 2;
}
.zce-name-btn {
    background: none;
    border: none;
    color: #1B3A6B;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    padding: 3px 8px;
    border-radius: 4px;
    transition: background 0.15s, color 0.15s;
    text-decoration: underline;
    text-decoration-color: transparent;
}
.zce-name-btn:hover {
    background: #1B3A6B;
    color: #fff;
    text-decoration: none;
}
.zce-divider {
    color: #aab4c6;
    font-weight: 300;
    user-select: none;
}

/* ---------- Modal ---------- */
.zce-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: zce-fade-in 0.2s ease;
}
.zce-modal.is-open {
    display: flex;
}
@keyframes zce-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.zce-modal-inner {
    background: #fff;
    border-radius: 14px;
    max-width: 480px;
    width: 100%;
    padding: 36px 32px;
    position: relative;
    text-align: center;
    animation: zce-slide-up 0.25s ease;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
@keyframes zce-slide-up {
    from { transform: translateY(24px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}
.zce-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    color: #888;
    cursor: pointer;
    line-height: 1;
}
.zce-modal-close:hover { color: #333; }
.zce-modal-content .zce-avatar,
.zce-modal-content .zce-initials-circle {
    width: 100px;
    height: 100px;
    font-size: 32px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.zce-modal-content .zce-name {
    font-size: 20px;
    margin-bottom: 4px;
}
.zce-modal-content .zce-location {
    margin-bottom: 16px;
}
.zce-modal-content .zce-quote {
    font-size: 16px;
    border-left: 3px solid #1B3A6B;
    padding-left: 16px;
    text-align: left;
}

/* ---------- Submission Form ---------- */
.zce-form-section {
    background: #fff;
    border: 1px solid #e0e6ef;
    border-radius: 12px;
    padding: 36px 32px;
    margin-bottom: 40px;
}
.zce-form-title {
    font-size: 22px;
    font-weight: 700;
    color: #1B3A6B;
    margin: 0 0 8px;
}
.zce-form-intro {
    color: #555;
    margin: 0 0 24px;
}
.zce-form-row { display: flex; gap: 20px; }
.zce-form-two-col > .zce-form-group { flex: 1; }
@media (max-width: 600px) {
    .zce-form-row { flex-direction: column; gap: 0; }
}
.zce-form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}
.zce-form-group label {
    font-weight: 600;
    font-size: 14px;
    color: #1B3A6B;
    margin-bottom: 6px;
}
.zce-form-group input[type="text"],
.zce-form-group input[type="email"],
.zce-form-group textarea {
    border: 1px solid #c8d3e3;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s;
    background: #fafbfd;
}
.zce-form-group input:focus,
.zce-form-group textarea:focus {
    outline: none;
    border-color: #1B3A6B;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(27,58,107,0.1);
}
.zce-field-note {
    font-size: 12px;
    color: #777;
    margin-top: 5px;
}
.required { color: #C8102E; }

/* Consent */
.zce-consent-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: #444;
    cursor: pointer;
    font-weight: normal !important;
}
.zce-consent-label input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    accent-color: #1B3A6B;
}

/* Submit button */
.zce-submit-btn {
    background: #1B3A6B;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    font-family: inherit;
}
.zce-submit-btn:hover { background: #142d55; }
.zce-submit-btn:active { transform: scale(0.98); }
.zce-submit-btn:disabled { background: #aaa; cursor: not-allowed; }

/* Response message */
.zce-form-response {
    border-radius: 6px;
    padding: 14px 18px;
    margin-bottom: 20px;
    font-weight: 600;
}
.zce-form-response.success {
    background: #e6f4ea;
    color: #2d6a4f;
    border: 1px solid #b7dfca;
}
.zce-form-response.error {
    background: #fde8e8;
    color: #a00;
    border: 1px solid #f0b4b4;
}
