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

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    position: relative;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background-color: #faf8f5;
    overflow-x: hidden;
}

.container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 15px;
    box-shadow:
        0 15px 50px rgba(212, 175, 155, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.8);
    padding: 50px;
    max-width: 650px;
    width: 100%;
    border: 1px solid rgba(240, 230, 224, 0.9);
    position: relative;
    z-index: 100;
}

.wedding-header {
    text-align: center;
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 2px solid #d4af9a;
}

.wedding-header h1 {
    color: #8b6f5c;
    font-size: 36px;
    font-weight: 400;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.subtitle {
    color: #b08968;
    font-size: 16px;
    font-style: italic;
    margin-top: 10px;
}

.farm-animals {
    display: flex;
    justify-content: space-evenly;
    align-items: flex-end;
    margin: 20px 0 15px 0;
    padding: 0 10px;
}

.animal-pig {
    width: 160px;
    height: auto;
    -webkit-mask-image: radial-gradient(ellipse at center, black 60%, transparent 100%);
    mask-image: radial-gradient(ellipse at center, black 60%, transparent 100%);
    opacity: 0.95;
}

.animal-cockerel {
    width: 130px;
    height: auto;
    -webkit-mask-image: radial-gradient(ellipse at center, black 60%, transparent 100%);
    mask-image: radial-gradient(ellipse at center, black 60%, transparent 100%);
    opacity: 0.95;
}

.animal-cart {
    width: 200px;
    height: auto;
    -webkit-mask-image: radial-gradient(ellipse at center, black 60%, transparent 100%);
    mask-image: radial-gradient(ellipse at center, black 60%, transparent 100%);
    opacity: 0.95;
}

.venue-info .wedding-date {
    color: #1a1410;
    font-size: 22px;
    font-weight: 800;
    text-align: center;
    margin: 0 0 20px 0;
    letter-spacing: 1px;
    text-shadow:
        0 0 12px rgba(255, 255, 255, 1),
        0 0 18px rgba(255, 255, 255, 1),
        0 0 22px rgba(255, 255, 255, 0.9),
        0 3px 6px rgba(255, 255, 255, 0.9),
        2px 2px 4px rgba(255, 255, 255, 1),
        -2px -2px 4px rgba(255, 255, 255, 1),
        3px 0 4px rgba(255, 255, 255, 1),
        -3px 0 4px rgba(255, 255, 255, 1);
}

.success-container .wedding-date {
    color: #8b6f5c;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    margin: 10px 0;
    letter-spacing: 1px;
}

.venue-info {
    margin-top: 25px;
    padding: 20px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.15) 100%),
        url('/static/images/southfarm-house.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 154, 0.3);
    box-shadow: 0 4px 15px rgba(139, 111, 92, 0.15);
    position: relative;
}

.venue-info h2 {
    color: #1a1410;
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 15px;
    text-align: center;
    text-shadow:
        0 0 15px rgba(255, 255, 255, 1),
        0 0 20px rgba(255, 255, 255, 1),
        0 0 25px rgba(255, 255, 255, 0.9),
        0 3px 6px rgba(255, 255, 255, 0.9),
        2px 2px 4px rgba(255, 255, 255, 1),
        -2px -2px 4px rgba(255, 255, 255, 1),
        3px 0 4px rgba(255, 255, 255, 1),
        -3px 0 4px rgba(255, 255, 255, 1);
}

.venue-address {
    color: #0d0a08;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 15px;
    text-shadow:
        0 0 12px rgba(255, 255, 255, 1),
        0 0 18px rgba(255, 255, 255, 1),
        0 0 22px rgba(255, 255, 255, 0.9),
        0 3px 6px rgba(255, 255, 255, 0.9),
        2px 2px 4px rgba(255, 255, 255, 1),
        -2px -2px 4px rgba(255, 255, 255, 1),
        3px 0 4px rgba(255, 255, 255, 1),
        -3px 0 4px rgba(255, 255, 255, 1);
}

.venue-address strong {
    color: #0d0a08;
    font-size: 17px;
    font-weight: 800;
    display: block;
    margin-bottom: 5px;
    text-shadow:
        0 0 15px rgba(255, 255, 255, 1),
        0 0 20px rgba(255, 255, 255, 1),
        0 0 25px rgba(255, 255, 255, 0.9),
        0 3px 6px rgba(255, 255, 255, 0.9),
        2px 2px 4px rgba(255, 255, 255, 1),
        -2px -2px 4px rgba(255, 255, 255, 1),
        3px 0 4px rgba(255, 255, 255, 1),
        -3px 0 4px rgba(255, 255, 255, 1);
}

.venue-times {
    color: #0d0a08;
    font-size: 15px;
    line-height: 1.8;
    text-shadow:
        0 0 12px rgba(255, 255, 255, 1),
        0 0 18px rgba(255, 255, 255, 1),
        0 0 22px rgba(255, 255, 255, 0.9),
        0 3px 6px rgba(255, 255, 255, 0.9),
        2px 2px 4px rgba(255, 255, 255, 1),
        -2px -2px 4px rgba(255, 255, 255, 1),
        3px 0 4px rgba(255, 255, 255, 1),
        -3px 0 4px rgba(255, 255, 255, 1);
}

.venue-times strong {
    color: #0d0a08;
    font-weight: 800;
    text-shadow:
        0 0 15px rgba(255, 255, 255, 1),
        0 0 20px rgba(255, 255, 255, 1),
        0 0 25px rgba(255, 255, 255, 0.9),
        0 3px 6px rgba(255, 255, 255, 0.9),
        2px 2px 4px rgba(255, 255, 255, 1),
        -2px -2px 4px rgba(255, 255, 255, 1),
        3px 0 4px rgba(255, 255, 255, 1),
        -3px 0 4px rgba(255, 255, 255, 1);
}

.arrival-note {
    color: #0d0a08;
    font-size: 14px;
    font-style: italic;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    text-align: center;
    line-height: 1.6;
    text-shadow:
        0 0 12px rgba(255, 255, 255, 1),
        0 0 18px rgba(255, 255, 255, 1),
        0 0 22px rgba(255, 255, 255, 0.9),
        0 3px 6px rgba(255, 255, 255, 0.9),
        2px 2px 4px rgba(255, 255, 255, 1),
        -2px -2px 4px rgba(255, 255, 255, 1),
        3px 0 4px rgba(255, 255, 255, 1),
        -3px 0 4px rgba(255, 255, 255, 1);
}

h1 {
    color: #8b6f5c;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 400;
}

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

label {
    display: block;
    margin-bottom: 8px;
    color: #6d5d4f;
    font-weight: 500;
    font-size: 15px;
}

small {
    display: block;
    margin-top: 5px;
    color: #9a8678;
    font-size: 13px;
    font-style: italic;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #d4c5ba;
    border-radius: 8px;
    font-size: 15px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    transition: all 0.3s ease;
    background-color: #fdfcfb;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #b08968;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(176, 137, 104, 0.1);
}

textarea {
    resize: vertical;
    font-family: inherit;
}

.btn-submit {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #b08968 0%, #8b6f5c 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    margin-top: 10px;
    font-family: 'Georgia', serif;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 111, 92, 0.3);
    background: linear-gradient(135deg, #c09978 0%, #9b7f6c 100%);
}

.alert {
    padding: 12px 16px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.success-container {
    text-align: center;
}

.success-container h1 {
    color: #8b6f5c;
    margin-bottom: 20px;
    font-size: 32px;
    font-weight: 400;
}

.success-message {
    font-size: 20px;
    color: #b08968;
    margin-bottom: 15px;
    font-weight: 500;
}

.success-container p {
    font-size: 16px;
    margin-bottom: 15px;
    color: #6d5d4f;
    line-height: 1.6;
}

.confirmation-details {
    background: linear-gradient(135deg, #faf8f5 0%, #f5ede6 100%);
    padding: 25px;
    border-radius: 10px;
    margin: 30px 0;
    border: 1px solid #e8ddd2;
}

.submission-id {
    margin-bottom: 10px;
    font-size: 14px;
    color: #6d5d4f;
}

.submission-id strong {
    color: #b08968;
    word-break: break-all;
    font-family: monospace;
    font-size: 13px;
}

.note {
    font-size: 13px;
    color: #9a8678;
    font-style: italic;
    margin-top: 10px;
}

.next-steps {
    background: #fff9f5;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 3px solid #d4af9a;
}

.next-steps p {
    font-size: 15px;
    color: #6d5d4f;
    margin-bottom: 10px;
}

@media (max-width: 600px) {
    .container {
        padding: 20px;
    }

    h1 {
        font-size: 24px;
    }

    .wedding-header h1 {
        font-size: 28px;
    }

    /* Make farm animals responsive */
    .farm-animals {
        flex-wrap: wrap;
        gap: 15px;
        justify-content: center;
        margin: 25px 0 20px 0;
    }

    .animal-pig {
        width: 120px;
    }

    .animal-cockerel {
        width: 100px;
    }

    .animal-cart {
        width: 150px;
    }

    /* Adjust venue info for mobile */
    .venue-info {
        padding: 15px;
    }

    .venue-info .wedding-date {
        font-size: 20px;
    }

    .venue-address,
    .venue-times {
        font-size: 14px;
    }

    .arrival-note {
        font-size: 13px;
    }
}

@media (max-width: 400px) {
    /* Extra small screens - stack farm animals or make even smaller */
    .farm-animals {
        gap: 10px;
    }

    .animal-pig {
        width: 100px;
    }

    .animal-cockerel {
        width: 85px;
    }

    .animal-cart {
        width: 125px;
    }
}
