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

:root {
    --olive-green: #6B7F3C;
    --olive-dark: #556332;
    --olive-light: #8A9B5A;
    --burgundy: #661B2E;
    --gold: #C9A961;
    --cream: #f5f1e8;
    --text-dark: #4a4a4a;
}

body {
    font-family: 'Lato', sans-serif;
    min-height: 100vh;
    background: url('./images/background.jpg') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    color: var(--text-dark);
    padding: 40px 20px;
}

@media (max-width: 768px) {
    body {
        padding: 0;
        background-attachment: fixed;
        background-position: 65% 100%;
        background-size: auto 80%;
    }
}

.content-box {
    max-width: 500px;
    background: rgba(255, 255, 255, 0.95);
    padding: 40px 35px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

@media (max-width: 768px) {
    .content-box {
        max-width: 100%;
        padding: 20px;
        border-radius: 0;
        max-height: none;
        overflow-y: visible;
    }
}

.tagline {
    font-family: 'Cormorant', serif;
    font-size: 1.2rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--olive-green);
    margin-bottom: 8px;
}

@media (max-width: 768px) {
    .tagline {
        font-size: 1.2rem;
        font-weight: 800;
        margin-bottom: 5px;
        letter-spacing: 3px;
    }
}

.names {
    font-family: 'Cormorant', serif;
    font-size: 2.6rem;
    margin-bottom: 25px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--burgundy);
    line-height: 1.2;
}

@media (max-width: 768px) {
    .names {
        font-size: 1.8rem;
        margin-bottom: 15px;
        letter-spacing: 0.5px;
    }
}

.date-info {
    margin-bottom: 35px;
    padding: 25px 0;
    border-top: 2px solid rgba(107, 127, 60, 0.2);
    border-bottom: 2px solid rgba(107, 127, 60, 0.2);
}

.icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.date-with-icon,
.location-with-icon {
    display: flex;
    align-items: center;
    gap: 8px;
}

.location-text {
    display: flex;
    flex-direction: column;
}

@media (max-width: 768px) {
    .date-info {
        margin-bottom: 15px;
        padding: 15px 0;
        border-top: 1px solid rgba(107, 127, 60, 0.3);
        border-bottom: 1px solid rgba(107, 127, 60, 0.3);
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
        align-items: start;
    }

    .icon {
        width: 18px;
        height: 18px;
    }

    .calendar-icon {
        color: var(--olive-green);
    }

    .pin-icon {
        color: var(--burgundy);
    }
}

.date-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--olive-dark);
    margin-bottom: 10px;
    font-weight: 400;
}

@media (max-width: 768px) {
    .date-label {
        font-size: 0.65rem;
        letter-spacing: 2px;
        margin-bottom: 6px;
    }
}

.wedding-date {
    font-family: 'Cormorant', serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--olive-green);
    margin-bottom: 15px;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .wedding-date {
        font-size: 1.2rem;
        font-weight: 700;
        margin-bottom: 0;
        line-height: 1.2;
        white-space: nowrap;
    }
}

.location {
    font-family: 'Cormorant', serif;
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 5px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .location {
        font-size: 1.1rem;
        margin-bottom: 2px;
        line-height: 1.2;
    }
}

.location-detail {
    font-style: italic;
    color: #666;
    font-weight: 300;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .location-detail {
        font-size: 0.85rem;
        line-height: 1.2;
    }
}

.expand-prompt {
    display: none;
}

@media (max-width: 768px) {
    .expand-prompt {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 12px;
        color: var(--olive-green);
        font-family: 'Cormorant', serif;
        font-size: 1.1rem;
        font-weight: 600;
        letter-spacing: 1px;
        cursor: pointer;
        animation: pulse 2s ease-in-out infinite;
    }

    .expand-prompt .chevron-icon {
        width: 20px;
        height: 20px;
        transition: transform 0.3s ease;
    }

    .expand-prompt.expanded .chevron-icon {
        transform: rotate(180deg);
    }

    .form-section {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.3s ease, opacity 0.25s ease;
    }

    .form-section.expanded {
        max-height: 600px;
        opacity: 1;
        overflow: visible;
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.form-section {
}

.form-section h2 {
    font-family: 'Cormorant', serif;
    color: var(--olive-green);
    margin-bottom: 10px;
    font-weight: 500;
    font-size: 1.6rem;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .form-section h2 {
        font-size: 1.2rem;
        margin-bottom: 6px;
    }
}

.form-intro {
    color: #666;
    margin-bottom: 25px;
    font-size: 0.9rem;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .form-intro {
        font-size: 0.75rem;
        margin-bottom: 12px;
        line-height: 1.3;
    }
}

.form-group {
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .form-group {
        margin-bottom: 12px;
    }
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-size: 0.9rem;
    font-weight: 400;
}

@media (max-width: 768px) {
    .form-group label {
        margin-bottom: 4px;
        font-size: 0.75rem;
    }
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
    font-family: 'Lato', sans-serif;
}

@media (max-width: 768px) {
    .form-group input {
        padding: 8px 10px;
        font-size: 0.9rem;
        border-radius: 6px;
    }
}

.form-group input:focus {
    outline: none;
    border-color: var(--olive-green);
    box-shadow: 0 0 0 3px rgba(107, 127, 60, 0.1);
}

.form-group input:disabled {
    background-color: transparent;
    color: inherit;
    border-color: #e0e0e0;
    cursor: default;
    opacity: 1;
    -webkit-text-fill-color: inherit;
}

.cf-turnstile {
    display: flex;
    justify-content: center;
    margin: 10px 0;
}

@media (max-width: 768px) {
    .cf-turnstile {
        margin: 8px 0;
        transform: scale(0.85);
        transform-origin: center;
    }
}

button[type="submit"] {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--olive-green) 0%, var(--olive-dark) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.3s;
    font-weight: 500;
    font-family: 'Lato', sans-serif;
}

@media (max-width: 768px) {
    button[type="submit"] {
        padding: 10px;
        font-size: 0.95rem;
        border-radius: 6px;
    }
}

button[type="submit"]:hover {
    background: linear-gradient(135deg, var(--gold) 0%, #b89444 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(201, 169, 97, 0.4);
}

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

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

.message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    display: none;
}

@media (max-width: 768px) {
    .message {
        margin-top: 10px;
        padding: 10px;
        font-size: 0.85rem;
    }
}

.message.success {
    background: linear-gradient(135deg, rgba(156, 175, 136, 0.15) 0%, rgba(107, 127, 60, 0.1) 100%);
    color: var(--olive-dark);
    border: 1px solid var(--olive-light);
    display: block;
    font-weight: 500;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}
