:root {
    --deep-navy: #1a1035;
    --deep-purple: #3b1a55;
    --coral: #ff5e62;
    --orange: #ff8a3d;
    --gold: #ffc26f;
    --cream: #fff4e9;
    --ink: #2a1b3d;
    --glass-bg: rgba(255, 255, 255, 0.10);
    --glass-border: rgba(255, 255, 255, 0.22);
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    font-family: 'Poppins', sans-serif;
    color: var(--cream);
    background: radial-gradient(circle at 20% 15%, #4a2166 0%, transparent 55%),
                radial-gradient(circle at 85% 10%, #ff8a3d 0%, transparent 45%),
                linear-gradient(160deg, var(--deep-navy) 0%, var(--deep-purple) 45%, #7a2b4a 75%, #c9502f 100%);
    background-attachment: fixed;
    overflow-x: hidden;
    position: relative;
}

.glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.55;
    z-index: 0;
    pointer-events: none;
}

.glow-1 {
    width: 480px;
    height: 480px;
    top: -140px;
    right: -120px;
    background: radial-gradient(circle, var(--orange) 0%, transparent 70%);
}

.glow-2 {
    width: 420px;
    height: 420px;
    bottom: -160px;
    left: -100px;
    background: radial-gradient(circle, var(--coral) 0%, transparent 70%);
}

.site-header,
main,
.site-footer {
    position: relative;
    z-index: 1;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 28px 20px 10px;
    text-align: center;
    flex-wrap: wrap;
}

.church-logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
    filter: drop-shadow(0 0 14px rgba(255, 138, 61, 0.55));
}

.church-name {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.25;
}

.church-name-main {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.church-name-sub {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--gold);
    opacity: 0.9;
}

.hero {
    text-align: center;
    padding: 40px 20px 10px;
    max-width: 720px;
    margin: 0 auto;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.78rem;
    color: var(--gold);
    margin: 0 0 14px;
    font-weight: 500;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 700;
    font-size: clamp(2.6rem, 7vw, 4.2rem);
    margin: 0;
    background: linear-gradient(95deg, var(--gold) 0%, var(--cream) 45%, var(--orange) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 8px 40px rgba(255, 138, 61, 0.25);
}

.hero-date {
    margin: 18px 0 6px;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.hero-tagline {
    margin: 0;
    color: rgba(255, 244, 233, 0.78);
    font-size: 0.98rem;
}

.countdown-section {
    text-align: center;
    padding: 36px 20px 10px;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    max-width: 520px;
    margin: 0 auto;
}

.countdown-box {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 16px;
    padding: 16px 10px;
    min-width: 78px;
    flex: 1 1 78px;
    max-width: 108px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.countdown-value {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.6rem, 5vw, 2.3rem);
    font-weight: 700;
    color: var(--cream);
    line-height: 1.1;
}

.countdown-label {
    display: block;
    margin-top: 4px;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--gold);
    opacity: 0.85;
}

.countdown-message {
    margin: 18px 0 0;
    font-weight: 600;
    color: var(--gold);
    min-height: 1.2em;
}

.form-section {
    display: flex;
    justify-content: center;
    padding: 46px 20px 70px;
}

.form-card {
    width: 100%;
    max-width: 440px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: 24px;
    padding: 36px 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
}

.form-card h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    margin: 0 0 6px;
    text-align: center;
    color: var(--cream);
}

.form-subtitle {
    text-align: center;
    margin: 0 0 26px;
    font-size: 0.9rem;
    color: rgba(255, 244, 233, 0.72);
}

.field {
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.field label {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--gold);
    letter-spacing: 0.02em;
}

.field input,
.field select {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 13px 14px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.96rem;
    color: var(--ink);
    outline: none;
    transition: box-shadow 0.2s ease, transform 0.15s ease;
}

.field input::placeholder {
    color: #9a8fae;
}

.field input:focus,
.field select:focus {
    box-shadow: 0 0 0 3px rgba(255, 138, 61, 0.55);
}

.field select {
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'><path d='M1 1l6 6 6-6' stroke='%232a1b3d' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.field input.invalid,
.field select.invalid {
    box-shadow: 0 0 0 2px var(--coral);
}

.form-error {
    color: #ffd7d0;
    background: rgba(255, 94, 98, 0.18);
    border: 1px solid rgba(255, 94, 98, 0.4);
    border-radius: 10px;
    padding: 0;
    font-size: 0.84rem;
    text-align: center;
    margin: 0 0 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.2s ease;
}

.form-error.visible {
    padding: 10px 12px;
    max-height: 80px;
    margin-bottom: 16px;
}

button[type="submit"] {
    width: 100%;
    border: none;
    border-radius: 14px;
    padding: 15px 18px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--deep-navy);
    background: linear-gradient(95deg, var(--gold) 0%, var(--orange) 55%, var(--coral) 100%);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 10px 26px rgba(255, 94, 98, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(255, 94, 98, 0.45);
}

button[type="submit"]:active {
    transform: translateY(0);
}

button[type="submit"]:disabled {
    opacity: 0.75;
    cursor: not-allowed;
    transform: none;
}

.btn-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(42, 27, 61, 0.35);
    border-top-color: var(--deep-navy);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

button[type="submit"].loading .btn-spinner {
    display: inline-block;
}

button[type="submit"].loading .btn-text {
    opacity: 0.85;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.site-footer {
    text-align: center;
    padding: 0 20px 34px;
    font-size: 0.8rem;
    color: rgba(255, 244, 233, 0.55);
}

@media (max-width: 420px) {
    .countdown {
        gap: 10px;
    }
    .countdown-box {
        min-width: 68px;
        padding: 12px 6px;
    }
    .form-card {
        padding: 30px 22px;
    }
}
