/* ==========================================================
   Central Point Stake Live Theme
   ========================================================== */

/* --- Reset / Base --- */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    height: 100%;
}

html,
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
        'Helvetica Neue', Arial, sans-serif;
    color: #fff;
    line-height: 1.6;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    color: #fff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* --- Full-viewport Background --- */

.site-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
}

.site-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: -1;
}

/* --- Navigation --- */

.site-nav {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    padding: 0.8rem 1rem;
    background: rgba(0, 0, 0, 0.6);
    font-size: 0.85rem;
}

.site-nav__link {
    color: rgba(255, 255, 255, 0.8);
}

.site-nav__link:hover {
    color: #fff;
}

/* --- Main Content --- */

.site-content {
    position: static !important;
    z-index: 1;
    max-width: 800px;
    margin: 40px auto;
    padding: 60px 40px 40px;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.75);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0px 2px 18px 21px rgba(0, 0, 0, 0.75);
}

/* --- Typography --- */

.page-title {
    font-size: 1.6rem;
    font-style: italic;
    font-weight: 600;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.section-heading {
    font-size: 1.4rem;
    font-style: italic;
    margin-top: 2rem;
    margin-bottom: 0.8rem;
}

/* --- Link Lists (Wards + Events on Homepage) --- */

.link-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-bottom: 1rem;
}

.link-list__item {
    font-size: 0.95rem;
}

/* --- Page Description / Content --- */

.page-description,
.page-content {
    text-align: left;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.7;
}

.page-description h2,
.page-content h2 {
    font-size: 1.2rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

/* --- WPCF7 Forms (Attendance + Feedback) --- */

.attendance-form,
.page-content .wpcf7 {
    margin: 2rem 0;
    text-align: left;
}

.attendance-form .wpcf7-form,
.page-content .wpcf7-form {
    display: flex;
    flex-direction: column;
}

.attendance-form .wpcf7-turnstile,
.page-content .wpcf7-turnstile {
    order: 1;
    margin-top: 1rem;
    align-self: center;
}

.attendance-form .wpcf7-submit,
.attendance-form .wpcf7-spinner,
.page-content .wpcf7-submit,
.page-content .wpcf7-spinner {
    order: 2;
}

.attendance-form .wpcf7-response-output,
.page-content .wpcf7-response-output {
    order: 3;
}

.attendance-form .form-row,
.page-content .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.attendance-form .form-row > :only-child,
.page-content .form-row > :only-child {
    grid-column: 1 / -1;
}

.attendance-form .wpcf7-submit,
.page-content .wpcf7-submit {
    margin-top: 1.2rem;
}

.attendance-form label,
.page-content .wpcf7 label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.attendance-form input[type='text'],
.attendance-form input[type='number'],
.attendance-form input[type='email'],
.attendance-form input[type='tel'],
.page-content .wpcf7 input[type='text'],
.page-content .wpcf7 input[type='number'],
.page-content .wpcf7 input[type='email'],
.page-content .wpcf7 input[type='tel'],
.page-content .wpcf7 textarea,
.page-content .wpcf7 select {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.95rem;
    color: #333;
    width: 100%;
}

.attendance-form input[type='text']:focus,
.attendance-form input[type='number']:focus,
.attendance-form input[type='email']:focus,
.attendance-form input[type='tel']:focus,
.page-content .wpcf7 input[type='text']:focus,
.page-content .wpcf7 input[type='number']:focus,
.page-content .wpcf7 input[type='email']:focus,
.page-content .wpcf7 input[type='tel']:focus,
.page-content .wpcf7 textarea:focus,
.page-content .wpcf7 select:focus {
    outline: 2px solid #64b5f6;
    outline-offset: 1px;
}

/* WPCF7 validation messages */
.wpcf7-not-valid-tip {
    color: #ff8a80;
    font-size: 0.8rem;
    margin-top: 4px;
}

.wpcf7-response-output {
    border: none !important;
    padding: 0.5rem 0 !important;
    margin: 0.5rem 0 0 !important;
    font-size: 0.85rem;
}

.page-content .wpcf7 input[name="event"] {
    margin-top: 5px;
}

/* --- Buttons (shared style) --- */

.btn,
.btn-feedback,
.attendance-form input[type='submit'],
.page-content .wpcf7 input[type='submit'] {
    display: inline-block;
    background: #1565c0;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 36px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn:hover,
.btn-feedback:hover,
.attendance-form input[type='submit']:hover,
.page-content .wpcf7 input[type='submit']:hover {
    background: #0d47a1;
    text-decoration: none;
    color: #fff;
}

/* --- Feedback Button --- */

.feedback-wrapper {
    margin: 2rem 0;
    text-align: center;
}

/* --- Stream Link Section --- */

.stream-link-section {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    text-align: left;
}

.stream-direct-link {
    color: #90caf9;
    word-break: break-all;
}

.stream-direct-link:hover {
    color: #bbdefb;
}

/* --- Conference Meeting Blocks --- */

.meeting-block {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.meeting-block:last-child {
    border-bottom: none;
}

.meeting-date {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.meeting-stream-notice {
    font-style: italic;
    color: #ffa726;
    margin-bottom: 0.5rem;
}

.meeting-stream-notice a {
    color: #ffa726;
    text-decoration: underline;
}

.meeting-in-person {
    font-style: italic;
    margin-bottom: 0.5rem;
}

.meeting-content {
    text-align: left;
    margin: 0.5rem auto;
    max-width: 600px;
}

.meeting-content ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin: 0.5rem 0;
}

.meeting-content p {
    margin-bottom: 0.5rem;
}

.meeting-watch-live {
    margin-top: 1rem;
    text-align: center;
}

/* Conference Spanish section divider */
.conference-section-es {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(255, 255, 255, 0.3);
}

/* --- Footer --- */

.site-footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem 1rem;
    margin-top: auto;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    background: #000;
}

.footer-copyright {
    margin-bottom: 0.3rem;
}

.footer-disclaimer {
    margin-bottom: 0.8rem;
    font-style: italic;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.7);
    margin: 0 8px;
}

.footer-nav a:hover {
    color: #fff;
}

/* --- Responsive --- */

@media (max-width: 600px) {
    .site-content {
        margin: 20px auto;
        padding: 30px 15px 20px;
    }

    .page-title {
        font-size: 1.3rem;
    }

    .attendance-form .form-row,
    .page-content .form-row {
        grid-template-columns: 1fr;
    }
}
