/* ===========================
   COMMUNITIES & SHARE PAGES
   Town of Holland Area Historical Society
   Shared styles for hollandtown.html, askeaton.html,
   dundas.html, and share.html
   =========================== */

/* ===========================
   COMMUNITY PAGE HERO
   =========================== */
.comm-hero {
    position: relative;
    height: 60vh;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.comm-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.72) 100%);
}

/* Community-specific hero backgrounds */
.hollandtown-hero {
    background-image: url('../web_photos/Schutdinner.jpg');
}

.askeaton-hero {
    background-image: url('../web_photos/askeaton1947.jpg');
    background-size: calc(100% + 20px) auto;
    background-position: center calc(50% + 15px);
}

.dundas-hero {
    background-image: url('../web_photos/dundas_view.jpg');
}

.share-hero {
    background-image: url('../web_photos/scrapbook_full.jpg');
    background-position: center 30%;
}

.comm-hero-content {
    position: relative;
    z-index: 1;
    padding: 140px 5% 3rem;
    width: 100%;
}

.comm-hero-eyebrow {
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

.comm-hero-title {
    font-family: 'Aboreto', serif;
    font-size: 4rem;
    color: var(--text-white);
    letter-spacing: 4px;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.comm-hero-ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 1rem auto;
    max-width: 300px;
}

.comm-hero-ornament .ho-line {
    flex: 1;
    height: 1px;
    background: var(--accent-gold);
    opacity: 0.6;
}

.comm-hero-ornament .ho-diamond {
    width: 8px;
    height: 8px;
    background: var(--accent-gold);
    transform: rotate(45deg);
    flex-shrink: 0;
}

.comm-hero-subtitle {
    font-family: 'Lato', sans-serif;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
    max-width: 600px;
    margin: 0.5rem auto 0;
    line-height: 1.6;
}

/* ===========================
   COMMUNITY CONTENT SECTION
   =========================== */
.comm-content-section {
    background: var(--dark-bg);
    padding: 5rem 5%;
}

.comm-content-inner {
    max-width: 800px;
    margin: 0 auto;
}

.comm-section-title {
    font-family: 'Aboreto', serif;
    font-size: 2rem;
    color: var(--accent-gold);
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    text-align: center;
}

.comm-section-rule {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 auto 2.5rem;
    max-width: 300px;
}

.comm-section-rule .sr-line {
    flex: 1;
    height: 1px;
    background: rgba(212, 165, 116, 0.4);
}

.comm-section-rule .sr-diamond {
    width: 7px;
    height: 7px;
    background: var(--accent-gold);
    transform: rotate(45deg);
    flex-shrink: 0;
}

.comm-body-text {
    font-family: 'Lato', sans-serif;
    font-size: 1.05rem;
    color: var(--text-gray);
    line-height: 1.9;
    margin-bottom: 1.5rem;
}

.comm-body-text:last-child {
    margin-bottom: 0;
}

/* ===========================
   SHARE PAGE — PROCESS STEPS
   =========================== */
.share-process-section {
    background: var(--dark-gray);
    padding: 4rem 5%;
}

.share-process-inner {
    max-width: 800px;
    margin: 0 auto;
}

.share-process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.share-step {
    text-align: center;
    padding: 2rem 1.5rem;
    border: 1px solid rgba(212, 165, 116, 0.2);
    background: rgba(0, 0, 0, 0.3);
}

.share-step-number {
    font-family: 'Aboreto', serif;
    font-size: 2.5rem;
    color: var(--accent-gold);
    opacity: 0.6;
    margin-bottom: 0.75rem;
}

.share-step h3 {
    font-family: 'Aboreto', serif;
    font-size: 1.1rem;
    color: var(--text-white);
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}

.share-step p {
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.7;
}

/* ===========================
   SHARE PAGE — CTA
   =========================== */
.share-cta-section {
    background: var(--dark-bg);
    padding: 4rem 5%;
    text-align: center;
}

.share-cta-inner {
    max-width: 600px;
    margin: 0 auto;
}

.btn-cta-primary {
    display: inline-block;
    padding: 14px 36px;
    background: var(--accent-gold);
    color: var(--dark-bg);
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration: none;
    transition: background 0.3s ease;
    margin-top: 1.5rem;
}

.btn-cta-primary:hover {
    background: var(--accent-gold-hover);
}

/* ===========================
   SHARE PAGE — COLLECTION INQUIRY FORM
   Replaces the original CTA button/note with a full inline form.
   =========================== */

/* Inner wrapper — wider than the old CTA for comfortable form layout */
.share-inquiry-inner {
    max-width: 780px;
    margin: 0 auto;
    text-align: left; /* override the section-level text-align:center */
}

/* Heading + rule inside the form section stay centered */
.share-inquiry-inner .comm-section-title,
.share-inquiry-inner .comm-section-rule {
    text-align: center;
}

/* Autofill notice — shown when form is pre-populated for logged-in users */
.inquiry-autofill-notice {
    background: rgba(74, 124, 80, 0.12);
    border: 1px solid rgba(74, 124, 80, 0.35);
    color: #9fd4a5;
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
    font-style: italic;
    padding: 12px 18px;
    margin-bottom: 2rem;
    text-align: center;
}

/* Error banner — shown on submission failure */
.inquiry-error-banner {
    background: rgba(180, 30, 30, 0.12);
    border: 1px solid rgba(220, 60, 60, 0.35);
    color: #f87171;
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
    padding: 12px 18px;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Form container */
.inquiry-form {
    margin-top: 2rem;
}

.inquiry-form-group {
    margin-bottom: 1.75rem;
}

/* Two-column row for email + phone */
.inquiry-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.75rem;
}

/* Labels */
.inquiry-label {
    display: block;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

.inquiry-required {
    color: var(--accent-gold);
    margin-left: 2px;
}

.inquiry-optional {
    font-weight: 400;
    color: #888;
    font-size: 0.95rem;
    margin-left: 4px;
}

/* Text inputs and textarea */
.inquiry-input {
    width: 100%;
    background: #0d0d0d;
    border: 1px solid rgba(212, 175, 55, 0.25);
    color: var(--text-white);
    font-family: 'Lato', sans-serif;
    font-size: 1.05rem;
    padding: 14px 16px;
    transition: border-color 0.2s;
    box-sizing: border-box;
    -webkit-appearance: none;
}

.inquiry-input:focus {
    outline: none;
    border-color: var(--accent-gold);
}

.inquiry-input::placeholder {
    color: rgba(255, 255, 255, 0.22);
}

.inquiry-textarea {
    resize: vertical;
    min-height: 130px;
    line-height: 1.7;
}

/* Inline field-level error messages (principle #35: minimum 0.95rem) */
.inquiry-field-error {
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
    color: #f87171;
    margin-top: 6px;
    min-height: 1.3em;
}

/* Fieldset wrapper for radio groups — strip browser defaults */
.inquiry-fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

/* Radio button groups */
.inquiry-radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.inquiry-radio-label {
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    font-family: 'Lato', sans-serif;
    font-size: 1.05rem;
    color: var(--text-gray);
    padding: 12px 16px;
    border: 1px solid rgba(212, 175, 55, 0.15);
    background: rgba(0, 0, 0, 0.25);
    transition: border-color 0.2s, background 0.2s, color 0.2s;
    -webkit-user-select: none;
    user-select: none;
}

.inquiry-radio-label:hover {
    border-color: rgba(212, 175, 55, 0.35);
    background: rgba(212, 175, 55, 0.04);
}

/* .is-checked is toggled by share.js on radio change — avoids :has() for compatibility */
.inquiry-radio-label.is-checked {
    border-color: rgba(212, 175, 55, 0.5);
    background: rgba(212, 175, 55, 0.07);
    color: var(--text-white);
}

/* Hide the native radio visually while keeping it keyboard/screen-reader accessible */
.inquiry-radio-label input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

/* Custom radio circle */
.inquiry-radio-custom {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 2px solid rgba(212, 175, 55, 0.35);
    border-radius: 50%;
    position: relative;
    transition: border-color 0.2s;
    flex-shrink: 0;
}

.inquiry-radio-label.is-checked .inquiry-radio-custom {
    border-color: var(--accent-gold);
}

.inquiry-radio-label.is-checked .inquiry-radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent-gold);
}

/* Submit button row */
.inquiry-submit-row {
    margin-top: 2.25rem;
    display: flex;
    justify-content: flex-start;
}

.btn-inquiry-submit {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 42px;
    background: var(--accent-gold);
    color: var(--dark-bg);
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease, opacity 0.2s;
}

.btn-inquiry-submit:hover:not(:disabled) {
    background: var(--accent-gold-hover);
}

.btn-inquiry-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Alternative direct contact line below the form */
.inquiry-alt-contact {
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
    color: #888;
    margin-top: 2rem;
    text-align: center;
    font-style: italic;
}

.inquiry-email-link {
    color: var(--accent-gold);
    text-decoration: none;
    font-style: normal;
}

.inquiry-email-link:hover {
    text-decoration: underline;
}

/* Success state (replaces form on successful submission) */
.inquiry-success {
    text-align: center;
    padding: 2rem 0;
}

.inquiry-success-icon {
    font-size: 4rem;
    color: #4a7c50;
    margin-bottom: 1.5rem;
    line-height: 1;
}

.inquiry-success-text {
    font-family: 'Lato', sans-serif;
    font-size: 1.1rem;
    color: var(--text-gray);
    line-height: 1.8;
    max-width: 580px;
    margin: 0 auto 1.25rem;
}

/* ===========================
   SHARE PAGE — FORMS & DOCUMENTS
   =========================== */
.share-docs-section {
    background: var(--dark-gray);
    padding: 4rem 5%;
}

.share-docs-inner {
    max-width: 780px;
    margin: 0 auto;
}

.share-docs-intro {
    text-align: center;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

.share-docs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.share-doc-card {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.5rem;
    border: 1px solid rgba(212, 165, 116, 0.2);
    background: rgba(0, 0, 0, 0.3);
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s;
}

.share-doc-card:hover {
    border-color: rgba(212, 165, 116, 0.4);
    background: rgba(212, 175, 55, 0.04);
}

.share-doc-icon {
    font-size: 2.2rem;
    color: var(--accent-gold);
    opacity: 0.75;
    flex-shrink: 0;
    margin-top: 2px;
}

.share-doc-body {
    flex: 1;
}

.share-doc-title {
    font-family: 'Aboreto', serif;
    font-size: 1.05rem;
    color: var(--text-white);
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.share-doc-form-id {
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
    color: rgba(212, 175, 55, 0.55);
    font-weight: 400;
    letter-spacing: 0;
}

.share-doc-desc {
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 0.85rem;
}

.share-doc-dl {
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
    color: var(--accent-gold);
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* ===========================
   EASTLAKE DIVIDER WRAPPER
   =========================== */
.comm-divider-wrap {
    background: var(--dark-bg);
    padding: 1rem 0;
    overflow: hidden;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 968px) {
    .comm-hero-title {
        font-size: 3rem;
    }

    .share-process-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 3rem auto 0;
    }
}

@media (max-width: 768px) {
    .comm-hero {
        min-height: 360px;
    }

    .comm-hero-title {
        font-size: 2.4rem;
        letter-spacing: 2px;
    }

    .comm-hero-subtitle {
        font-size: 1rem;
    }

    .comm-content-section {
        padding: 3.5rem 5%;
    }

    /* Email + Phone fields stack on tablet/mobile */
    .inquiry-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    /* Document download cards stack on tablet/mobile */
    .share-docs-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    /* Submit button expands to full width on small screens */
    .inquiry-submit-row {
        justify-content: center;
    }

    .btn-inquiry-submit {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .comm-hero-title {
        font-size: 2rem;
    }

    .comm-content-section {
        padding: 2.5rem 5%;
    }
}
