:root {
    --gold-primary: #c5a059;
    --text-dark: #333333;
    --text-muted: #666666;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #f0f2f5;
    color: var(--text-dark);
    display: flex;
    justify-content: center;
    padding: 40px 20px;
}

.app-container {
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

/* Controls Styles */
.controls {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 500px;
    text-align: center;
}

.controls h1 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.language-selector {
    margin-bottom: 20px;
    text-align: left;
}

.language-selector p {
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.lang-btns {
    display: flex;
    gap: 10px;
}

.lang-btn {
    flex: 1;
    padding: 8px;
    border: 2px solid #eee;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.lang-btn.active {
    border-color: var(--gold-primary);
    background: var(--gold-primary);
    color: white;
}

.input-group {
    margin-bottom: 20px;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-muted);
}

.input-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #eee;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: var(--gold-primary);
}

.btn {
    background: var(--gold-primary);
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn:hover {
    background: #b08e4a;
}

/* Invitation Card Styles */
.invitation-card {
    width: 210mm; /* A4 width */
    height: 297mm; /* A4 height */
    background: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    display: flex;
    justify-content: center;
}

.bg-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.display-name {
    position: absolute;
    top: 31%; /* Positioned under JOIN US */
    left: 50%;
    transform: translateX(-50%);
    font-family: "Playfair Display", serif;
    font-size: 2.5rem;
    font-style: italic;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
    width: 80%;
    letter-spacing: 2px;
    pointer-events: none;
}

/* Scaling for preview */
@media screen and (max-width: 900px) {
    .invitation-card {
        transform: scale(0.4);
        transform-origin: top center;
        margin-bottom: -150mm;
    }
}
