/* ===========================
   Antonia & Arthur Wedding RSVP
   Elegant Blush & Botanical Theme
   =========================== */

:root {
    --blush: #FFEBE4;
    --blush-mid: #f8dcd2;
    --blush-deep: #f0cfc3;
    --coral: #e05c45;
    --coral-light: #e87860;
    --coral-dark: #c04030;
    --forest: #4a7c4a;
    --forest-light: #5a8f5a;
    --forest-dark: #3a6a3a;
    --slate: #4a6f70;
    --slate-light: #6a8f90;
    --brown: #8B5E3C;
    --cream: #fdf5f0;
    --text-dark: #3a2820;
    --text-mid: #6a4840;
    --text-light: #a08070;
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Jost', system-ui, sans-serif;
    --shadow-soft: 0 8px 32px rgba(180,80,60,0.10);
    --shadow-card: 0 16px 48px rgba(100,40,30,0.12);
    --radius: 20px;
    --transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html, body {
    min-height: 100vh;
}

body {
    background-color: #FFEBE4;
    /*background-image:*/
    /*    radial-gradient(ellipse at 20% 10%, rgba(255,200,180,0.35) 0%, transparent 50%),*/
    /*    radial-gradient(ellipse at 80% 90%, rgba(200,230,200,0.25) 0%, transparent 50%),*/
    /*    radial-gradient(ellipse at 60% 40%, rgba(255,220,200,0.20) 0%, transparent 40%);*/
    font-family: var(--font-body);
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* ---- Language Header ---- */
.lang-header {
    position: fixed;
    top: 0;
    right: 0;
    width: auto;
    display: flex;
    justify-content: flex-end;
    padding: 16px 24px 0;
    z-index: 1000;
}

.lang-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.55);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.7);
    border-radius: 50px;
    padding: 6px 14px;
    box-shadow: 0 2px 12px rgba(180,80,60,0.08);
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    color: var(--text-mid);
    padding: 4px 8px;
    border-radius: 30px;
    transition: var(--transition);
}

.lang-btn:hover {
    background: rgba(224,92,69,0.12);
    color: var(--coral);
}

.lang-btn.active {
    background: var(--coral);
    color: white;
}

.lang-btn .flag {
    font-size: 1rem;
    line-height: 1;
}

.lang-divider {
    color: var(--text-light);
    font-size: 1rem;
    user-select: none;
}

/* ---- Branch Decorations ---- */
.branch-decoration {
    width: 100%;
    max-width: 600px;
    pointer-events: none;
    user-select: none;
}

.top-branch {
    margin-top: -10px;
    opacity: 0.9;
    animation: floatBranch 6s ease-in-out infinite alternate;
}

.bottom-branch {
    margin-top: 8px;
    opacity: 1;
}

@keyframes floatBranch {
    from { transform: translateY(0px); }
    to { transform: translateY(-6px); }
}

/* ---- Main Content ---- */
.main-content {
    width: 100%;
    max-width: 520px;
    padding: 0 20px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

body:has(.admin-container) .main-content {
    max-width: 1040px;
}

/* ---- Couple Header ---- */
.couple-header {
    text-align: center;
    margin-bottom: 32px;
}

.save-the-date-label {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.85rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--coral);
    margin-bottom: 6px;
    display: block;
}

.couple-names {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 8vw, 3.6rem);
    font-weight: 400;
    color: var(--forest);
    line-height: 1.05;
    letter-spacing: 0.01em;
    margin-bottom: 12px;
}

.wedding-date {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 1.05rem;
    letter-spacing: 0.18em;
    color: var(--slate);
    margin-bottom: 4px;
}

.wedding-location {
    font-family: var(--font-display);
    font-weight: 300;
    font-style: italic;
    font-size: 1.1rem;
    color: var(--slate-light);
}

/* ---- Card ---- */
.card {
    background: rgba(255,255,255,0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.80);
    border-radius: var(--radius);
    padding: 40px 36px;
    width: 100%;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--coral-light), var(--forest-light), var(--slate));
    border-radius: var(--radius) var(--radius) 0 0;
}

.card-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--coral-dark);
    text-align: center;
    margin-bottom: 8px;
}

.card-subtitle {
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 300;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 32px;
    letter-spacing: 0.05em;
}

/* ---- Code Input ---- */
.code-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}

.code-label {
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-mid);
}

.code-input-wrapper {
    position: relative;
}

.code-input {
    width: 100%;
    font-family: 'Courier New', 'Courier', monospace;
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-align: center;
    color: var(--forest-dark);
    background: rgba(255,255,255,0.80);
    border: 2px solid rgba(224,92,69,0.25);
    border-radius: 12px;
    padding: 14px 20px;
    outline: none;
    transition: var(--transition);
    text-transform: uppercase;
}

.code-input::placeholder {
    color: rgba(160,128,112,0.55);
    letter-spacing: 0.18em;
}

.code-input:focus {
    border-color: var(--coral);
    background: white;
    box-shadow: 0 0 0 4px rgba(224,92,69,0.12);
}

.code-hint {
    font-family: var(--font-body);
    font-size: 0.78rem;
    color: var(--text-light);
    text-align: center;
    letter-spacing: 0.03em;
}

/* ---- Form Elements ---- */
.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.4;
}

.form-label-sub {
    display: block;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 300;
    color: var(--text-light);
    margin-top: 2px;
}

/* Radio Buttons (Ja/Nee) */
.radio-group {
    display: flex;
    gap: 12px;
}

.radio-card {
    flex: 1;
    position: relative;
}

.radio-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0; height: 0;
}

.radio-card label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    background: rgba(255,255,255,0.7);
    border: 2px solid rgba(224,92,69,0.2);
    border-radius: 12px;
    cursor: pointer;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-mid);
    transition: var(--transition);
    user-select: none;
}

.radio-card label .radio-icon {
    font-size: 1.1rem;
    transition: var(--transition);
}

.radio-card input[type="radio"]:checked + label {
    background: var(--coral);
    border-color: var(--coral);
    color: white;
    box-shadow: 0 4px 16px rgba(224,92,69,0.30);
}

.radio-card input[type="radio"]:checked + label.yes-label {
    background: var(--forest);
    border-color: var(--forest);
}

.radio-card label:hover {
    border-color: var(--coral);
    background: rgba(224,92,69,0.08);
}

/* Textarea */
.form-textarea {
    width: 100%;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--text-dark);
    background: rgba(255,255,255,0.80);
    border: 2px solid rgba(224,92,69,0.20);
    border-radius: 12px;
    padding: 14px 16px;
    outline: none;
    resize: vertical;
    min-height: 90px;
    line-height: 1.6;
    transition: var(--transition);
}

.form-textarea:focus {
    border-color: var(--coral);
    background: white;
    box-shadow: 0 0 0 4px rgba(224,92,69,0.10);
}

.form-textarea::placeholder {
    color: var(--text-light);
    font-style: italic;
}

/* ---- Buttons ---- */
.btn-primary {
    width: 100%;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: white;
    background: linear-gradient(135deg, var(--coral) 0%, var(--coral-dark) 100%);
    border: none;
    border-radius: 12px;
    padding: 16px 32px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(224,92,69,0.30);
    margin-top: 8px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(224,92,69,0.40);
}

.btn-primary:active {
    transform: translateY(0);
}

/* ---- Guest Name Banner ---- */
.guest-banner {
    text-align: center;
    margin-bottom: 28px;
    padding: 14px 20px;
    background: rgba(74,124,74,0.08);
    border: 1px solid rgba(74,124,74,0.20);
    border-radius: 12px;
}

.guest-welcome {
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    color: var(--forest);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.guest-name {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 500;
    font-style: italic;
    color: var(--forest-dark);
}

/* ---- Error / Validation ---- */
.alert-error {
    background: rgba(224,92,69,0.10);
    border: 1px solid rgba(224,92,69,0.30);
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-family: var(--font-body);
    font-size: 0.88rem;
    color: var(--coral-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.alert-error::before {
    content: '⚠';
    font-size: 1rem;
}

/* ---- Thank You Page ---- */
.thankyou-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thankyou-heading {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 400;
    color: var(--forest);
    text-align: center;
    margin-bottom: 12px;
}

.thankyou-body {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-mid);
    text-align: center;
}

.thankyou-summary {
    margin-top: 28px;
    padding: 20px;
    background: rgba(74,124,74,0.06);
    border-radius: 12px;
    border: 1px solid rgba(74,124,74,0.15);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(74,124,74,0.10);
    font-family: var(--font-body);
    font-size: 0.9rem;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-label {
    font-weight: 400;
    color: var(--text-light);
    flex-shrink: 0;
}

.summary-value {
    font-weight: 500;
    color: var(--text-dark);
    text-align: right;
}

/* ---- Rings Decoration ---- */
.rings-decoration {
    margin: 8px auto 0;
    opacity: 0.7;
    animation: pulsRings 3s ease-in-out infinite alternate;
}

@keyframes pulsRings {
    from { transform: scale(1); opacity: 0.65; }
    to { transform: scale(1.04); opacity: 0.80; }
}

/* ---- Divider ---- */
.floral-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    opacity: 0.5;
}

.floral-divider::before,
.floral-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--coral-light), transparent);
}

.floral-divider span {
    font-size: 1rem;
    color: var(--coral);
}

/* ---- Responsive ---- */
@media (max-width: 480px) {
    .card {
        padding: 28px 20px;
    }

    .radio-group {
        flex-direction: column;
    }

    .couple-names {
        font-size: 2.4rem;
    }
}

/* ---- Animations ---- */
.card {
    animation: fadeSlideUp 0.5s ease-out both;
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.couple-header {
    animation: fadeSlideUp 0.4s ease-out 0.1s both;
}
