/* CSS Color Palette from Images */
:root {
    --amethyst-smoke: #A76EAD;
    --yale-blue: #033D5B;
    --prussian-blue: #012954;
    --french-blue: #474C95;
    --french-blue-2: #34498A;
    --text-light: #f0f0f0;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: 'antihistory';
    src: url('../fonts/antihistory.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: 'antihistory', Georgia, "Times New Roman", Times, serif;
    line-height: 1.6;
    color: var(--text-light);
    background-color: var(--prussian-blue);
    background-image: url('../images/Background.png');
    background-size: cover;
    background-position: bottom center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow-x: hidden;
    position: relative;
}

/* Daphne image - bottom left, scales down without stretching or lifting */
.daphne-image {
    position: fixed;
    bottom: 0;
    left: 0;
    height: 100vh;
    width: auto;
    z-index: 1;
    pointer-events: none;
}

/* Vignette overlay - dark wash behind text, in front of background and Daphne */
.vignette-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        ellipse at center,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.4) 60%,
        rgba(0, 0, 0, 0.6) 100%
    );
    z-index: 1;
    pointer-events: none;
}

/* Abbey Games logo - bottom right */
.abbey-logo-link {
    position: fixed;
    bottom: 10px;
    right: 30px;
    z-index: 3;
    display: block;
}

.abbey-logo {
    height: 160px;
    width: auto;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.abbey-logo:hover {
    opacity: 1;
}

.abbey-logo-link:hover .abbey-logo-credit {
    opacity: 1;
}

.container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    position: relative;
    z-index: 2;
}

/* Header Styles */
.header {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.logo {
    height: auto;
    width: 100%;
    max-width: 600px;
    object-fit: contain;
}

.header h1 {
    font-family: 'antihistory', serif;
    font-size: 4rem;
    color: var(--amethyst-smoke);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    margin-bottom: 1rem;
}

/* Body Text Styles */
.body-text {
    width: 100%;
    max-width: 700px;
}

.body-text p {
    font-family: 'antihistory', serif;
    font-size: 1.5rem;
    color: var(--text-light);
    line-height: 1.8;
    text-align: center;
    margin-bottom: 1rem;
}

/* Bullet Points */
.bullet-points {
    font-family: 'antihistory', serif;
    font-size: 1.35rem;
    color: var(--text-light);
    line-height: 1.8;
    text-align: left;
    max-width: 700px;
    margin: 0 auto;
}

.bullet-points li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
}

/* CTA Layout */
.cta-layout {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    gap: 0rem;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.cta-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0rem;
    background-color: rgba(1, 41, 84, 0.7);
    border: 1px solid var(--yale-blue);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.cta-box h2 {
    font-family: 'antihistory', serif;
    font-size: 2rem;
    color: var(--amethyst-smoke);
    margin-bottom: 1rem;
}

.cta-box p {
    font-family: 'antihistory', serif;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* ===== BREVO FORM STYLES ===== */

/* Message panels - Brevo JS controls display, we only style appearance */
.sib-form-message-panel {
    font-family: 'antihistory', serif !important;
    color: var(--text-light) !important;
    background-color: rgba(1, 41, 84, 0.9) !important;
    border-color: var(--yale-blue) !important;
    border-radius: 3px !important;
    max-width: 300px !important;
    margin: 0 auto 1rem !important;
    padding: 0.75rem !important;
}

.sib-form-message-panel__text {
    text-align: center !important;
}

.sib-icon {
    width: 20px !important;
    height: 20px !important;
    fill: var(--amethyst-smoke) !important;
}

/* Remove Brevo's light background from outer container */
.sib-form {
    background-color: transparent !important;
    text-align: center;
    width: 100%;
    max-width: 320px;
}

#sib-form-container {
    width: 100%;
}

/* Main form container */
#sib-container {
    max-width: 300px !important;
    text-align: center !important;
    background-color: transparent !important;
    border: none !important;
    padding: 0 !important;
}

/* Form blocks - remove padding and backgrounds */
.sib-form-block,
.sib-text-form-block,
.form__entry,
.form__label-row,
.entry__field {
    padding: 0 !important;
    margin: 0 0 0.5rem 0 !important;
    background-color: transparent !important;
    text-align: center !important;
    width: 100% !important;
}

/* Labels */
.entry__label {
    font-family: 'antihistory', serif !important;
    font-size: 1rem !important;
    font-weight: normal !important;
    color: var(--text-light) !important;
    text-align: center !important;
    display: block !important;
    margin-bottom: 0.5rem !important;
}

/* Input field */
.input {
    padding: 0.8rem !important;
    border: 1px solid var(--yale-blue) !important;
    border-radius: 4px !important;
    font-size: 1rem !important;
    background-color: rgba(1, 41, 84, 0.5) !important;
    color: var(--text-light) !important;
    width: 100% !important;
    font-family: 'antihistory', serif !important;
    margin: 0 !important;
}

.input::placeholder {
    color: rgba(240, 240, 240, 0.6) !important;
    font-family: 'antihistory', serif !important;
}

/* Error and specification labels */
.entry__error,
.entry__specification {
    font-family: 'antihistory', serif !important;
    font-size: 0.85rem !important;
    color: rgba(240, 240, 240, 0.6) !important;
    text-align: center !important;
    display: block !important;
    margin-top: 0.25rem !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
}

/* Submit button */
.sib-form-block__button,
.sib-form-block__button-with-loader {
    background: var(--amethyst-smoke) !important;
    color: var(--prussian-blue) !important;
    border: none !important;
    padding: 0.8rem !important;
    border-radius: 4px !important;
    font-size: 1rem !important;
    font-family: 'antihistory', serif !important;
    cursor: pointer !important;
    transition: background 0.3s !important;
    width: 100% !important;
    text-align: center !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
}

.sib-form-block__button:hover {
    background: var(--french-blue) !important;
}

/* Hide loader SVG but keep it in DOM */
.sib-hide-loader-icon {
    display: none !important;
}

/* Hidden inputs */
.input--hidden {
    display: none !important;
}

/* ===== END BREVO FORM STYLES ===== */

/* Responsive Design */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2.5rem;
    }

    .body-text p {
        font-size: 1.2rem;
    }

    .bullet-points {
        font-size: 1.2rem;
        text-align: left;
    }

    .bullet-points li {
        margin-bottom: 0.5rem;
    }

    .cta-layout {
        flex-direction: column;
        gap: 1.5rem;
    }

    .cta-box {
        width: 100%;
        max-width: 400px;
    }        
    
    .abbey-logo-link {
        bottom: 30px;
        right: 30px;
    }
    
    .abbey-logo {
        height: 150px;
    }
    
    /* Mobile adjustments for Brevo form */
    .sib-form {
        max-width: 280px;
    }
    
    #sib-container {
        max-width: 260px !important;
    }
}
