:root {
    --primary-color: #d32f2f; /* Red */
    --primary-dark: #b71c1c; /* Dark Red */
    --accent-color: #000000; /* Black */
    --bg-color: #121212; /* Black background */
    --card-bg: #1e1e1e; /* Dark Gray Card */
    --text-main: #ffffff;
    --text-light: #cccccc;
    --border-color: #333333;
    --error-color: #ff5252;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
    
    --shadow-sm: 0 4px 6px -1px rgba(0,0,0,0.5), 0 2px 4px -1px rgba(0,0,0,0.3);
    --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.5), 0 4px 6px -2px rgba(0,0,0,0.3);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.6), 0 10px 10px -5px rgba(0,0,0,0.4);
}

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

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.hidden { display: none !important; }

/* Hero Section */
.hero {
    position: relative;
    min-height: 350px;
    display: flex; align-items: center; justify-content: center;
    text-align: center; overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0;
    background: #000000; /* Black Banner */
    z-index: 1;
}
.hero-content {
    position: relative; z-index: 3;
    color: white; 
    padding: 2rem 2rem 5rem 2rem;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}
.hero-logo {
    max-width: 250px;
    width: 100%;
    height: auto;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}
.hero-content .eyebrow {
    font-size: 0.9rem; text-transform: uppercase; letter-spacing: 2px;
    margin: 0; color: var(--primary-color); font-weight: 700;
}
.hero-content h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1; margin: 0; font-weight: 700;
}

/* Red Title Effects */
.title-red {
    color: var(--primary-color);
}
.title-celebration {
    color: var(--primary-color);
    -webkit-text-stroke: 1.5px var(--primary-dark);
    text-shadow: 0 4px 15px rgba(211, 47, 47, 0.4);
}

.hero-content .subtitle { font-size: 1.25rem; font-style: italic; opacity: 0.9; margin: 0; color: #fff; }

/* The inline hero photo */
.hero-photo {
    width: 100%;
    max-height: 450px;
    border-radius: 12px;
    margin-top: 0;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--primary-color); /* Red Outline */
    padding: 4px;
    background-color: #000000; /* Black inner border */
    object-fit: cover;
}

/* Main Layout */
.main-container {
    max-width: 1200px; margin: -50px auto 40px;
    padding: 0 20px; position: relative; z-index: 10;
}
.layout-grid {
    display: grid; grid-template-columns: 1fr;
    gap: 2rem; align-items: start;
}
@media (min-width: 850px) {
    .layout-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
}

/* Cards */
.info-card, .interactive-card {
    background: var(--card-bg);
    border-radius: 16px; padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}
.info-card h2 {
    font-family: var(--font-heading); font-size: 2rem;
    color: var(--primary-color); margin-bottom: 1.5rem; line-height: 1.2;
}
.info-card .lead { font-size: 1.1rem; font-weight: 700; margin-bottom: 1rem; color: var(--text-main); }
.info-card p { margin-bottom: 1.5rem; color: var(--text-light); }

.action-links { margin: 2rem 0; }
.social-links { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--border-color); }
.social-links p { margin-bottom: 0.5rem; font-size: 0.9rem; font-weight: 700; }
.social-links a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--bg-color); color: var(--text-main);
    margin-right: 10px; transition: all 0.3s ease; border: 1px solid var(--border-color);
}
.social-links a:hover { background: var(--primary-color); color: white; border-color: var(--primary-color); }

/* Interactive Area Content */
.interactive-card h3 {
    font-family: var(--font-heading); font-size: 1.75rem;
    margin-bottom: 0.5rem; color: var(--primary-color); text-align: center;
}
.form-desc, .result-header .result-lead {
    text-align: center; color: var(--text-light); margin-bottom: 2rem; font-size: 0.95rem;
}

/* Forms */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
    display: block; font-size: 0.9rem; font-weight: 700;
    margin-bottom: 0.5rem; color: var(--text-main);
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"] {
    width: 100%; padding: 0.875rem 1rem;
    border: 1px solid var(--border-color); border-radius: 8px;
    font-family: inherit; font-size: 1rem;
    background: #2a2a2a; color: var(--text-main); transition: all 0.3s ease;
}
.form-group input:focus {
    outline: none; border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.2); background: #333333;
}
.checkbox-group { display: flex; align-items: flex-start; gap: 10px; }
.checkbox-group input { margin-top: 4px; }
.checkbox-group label { font-size: 0.85rem; font-weight: 400; color: var(--text-light); margin-bottom: 0; }
.checkbox-group a { color: var(--primary-color); text-decoration: underline; }

/* Buttons */
.btn-primary, .btn-submit, .btn-secondary {
    display: inline-block; width: 100%; text-align: center;
    padding: 1rem 1.5rem; border: none; border-radius: 8px;
    font-family: inherit; font-size: 1.05rem; font-weight: 700;
    cursor: pointer; transition: all 0.3s ease;
    text-decoration: none;
}
.btn-primary, .btn-submit {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white; box-shadow: var(--shadow-sm);
}
.btn-primary:hover, .btn-submit:hover:not(:disabled) {
    transform: translateY(-2px); box-shadow: var(--shadow-md);
    background: linear-gradient(135deg, var(--primary-dark), #9a0000);
}
.btn-submit:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }
.btn-secondary { background: var(--bg-color); color: var(--text-main); border: 1px solid var(--border-color); }
.btn-secondary:hover { background: #2a2a2a; }

/* Post-Entry Result Screen Styles */
.result-header {
    text-align: center;
    margin-bottom: 2rem;
}
.result-header h3 {
    font-size: 2.2rem;
    color: var(--primary-color);
    font-family: var(--font-heading);
}

/* Share Panel */
.share-panel { margin-top: 2rem; }
.share-panel-inner {
    background: #222222;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--border-color);
}
.share-panel h4 { font-family: var(--font-heading); font-size: 1.5rem; margin-bottom: 0.5rem; color: var(--primary-color); }
.share-panel p { font-size: 0.95rem; color: var(--text-light); margin-bottom: 1.5rem; }
.share-input-group { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; }
.share-input-group input {
    flex: 1; padding: 0.75rem; border: 1px solid var(--border-color);
    border-radius: 8px; background: #2a2a2a; color: var(--text-main);
}
.share-input-group button { width: auto; padding: 0.75rem 1.5rem; }
.social-share-btns { display: flex; gap: 0.5rem; }
.btn-social {
    flex: 1; padding: 0.75rem; border: none; border-radius: 8px;
    font-weight: 700; color: white; cursor: pointer; transition: opacity 0.3s;
}
.btn-social:hover { opacity: 0.9; }
.btn-social.fb { background: #1877f2; }
.btn-social.tw { background: #000000; border: 1px solid #333333; }

/* Errors */
.error-banner {
    background: rgba(211, 47, 47, 0.1); color: var(--error-color);
    padding: 1rem; border-radius: 8px; margin-bottom: 1.5rem;
    font-size: 0.9rem; text-align: center; border: 1px solid rgba(211, 47, 47, 0.3);
}

/* Footer & Modal */
.site-footer { text-align: center; padding: 2rem; margin-top: 2rem; }
.btn-text {
    background: none; border: none; color: var(--text-light);
    text-decoration: underline; cursor: pointer; font-family: inherit; font-size: 0.9rem; margin-bottom: 1rem;
}

.modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.8); backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center; z-index: 9999; padding: 1rem;
}
.modal-content {
    background: var(--card-bg); border-radius: 12px; width: 100%; max-width: 600px;
    max-height: 90vh; display: flex; flex-direction: column; box-shadow: var(--shadow-lg);
}
.modal-header {
    padding: 1.5rem; border-bottom: 1px solid var(--border-color);
    display: flex; justify-content: space-between; align-items: center;
}
.modal-header h3 { font-family: var(--font-heading); margin: 0; color: var(--primary-color); }
.close-btn { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text-light); }
.modal-body { padding: 1.5rem; overflow-y: auto; font-size: 0.9rem; white-space: pre-wrap; color: var(--text-light); }

/* Responsive Adjustments */
@media (max-width: 400px) {
    .social-share-btns { flex-direction: column; }
}
