@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600&family=Lora:wght@400;500&family=Cormorant+Garamond:wght@400;600&family=Great+Vibes&family=Cinzel:wght@400;600&family=Montserrat:wght@400;500&display=swap');

.rsvp-form-wrapper-d74448b0 {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    background: var(--rsvp-form-bg) !important;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.06);
    text-align: var(--rsvp-align) !important;
    font-family: var(--rsvp-font) !important;
    color: var(--rsvp-text-color) !important;
}

.rsvp-fixed-logo {
    text-align: center;
    margin-bottom: 20px;
}
.rsvp-fixed-logo img {
    max-width: 140px;
    height: auto;
    opacity: 0.9;
}

.rsvp-header {
    margin-bottom: 30px;
}
.rsvp-header-img {
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}
.rsvp-header-text {
    margin-bottom: 20px;
}
.rsvp-title {
    font-size: var(--rsvp-fs-title) !important;
    margin: 0 0 10px 0 !important;
    color: var(--rsvp-text-color) !important;
    font-family: var(--rsvp-font) !important;
    font-weight: 600;
}
.rsvp-subtitle {
    font-size: var(--rsvp-fs-subtitle) !important;
    margin: 0 0 15px 0 !important;
    font-family: var(--rsvp-font) !important;
    opacity: 0.85;
}
.rsvp-event-name {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.6;
    margin-top: 10px;
}

.rsvp-field {
    margin-bottom: 25px;
    text-align: left; /* Fields usually read better left-aligned, but inherit align for radio groups if needed */
}
.rsvp-field label {
    display: block;
    margin-bottom: 8px;
    font-size: var(--rsvp-fs-label) !important;
    font-weight: 500;
    font-family: var(--rsvp-font) !important;
    color: var(--rsvp-text-color) !important;
}
.req { color: #cc0000; margin-left: 3px; }

.rsvp-help-text {
    font-size: 0.85em;
    color: var(--rsvp-ph-color) !important;
    margin-bottom: 10px;
    display: block;
}

.rsvp-field input[type="text"], 
.rsvp-field input[type="number"], 
.rsvp-field select, 
.rsvp-field textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--rsvp-input-bg) !important;
    border: var(--rsvp-input-bw) solid var(--rsvp-input-border) !important;
    border-radius: var(--rsvp-input-br) !important;
    font-size: var(--rsvp-fs-input) !important;
    font-family: var(--rsvp-font) !important;
    color: var(--rsvp-text-color) !important;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.rsvp-field input::placeholder,
.rsvp-field textarea::placeholder {
    color: var(--rsvp-ph-color) !important;
    opacity: 1;
}

.rsvp-field input:focus, 
.rsvp-field select:focus, 
.rsvp-field textarea:focus {
    outline: none;
    border-color: var(--rsvp-btn-bg) !important;
}

.rsvp-field textarea {
    min-height: 100px;
    resize: vertical;
}

.rsvp-radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.rsvp-radio-group label {
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-family: var(--rsvp-font) !important;
    font-size: var(--rsvp-fs-input) !important;
    margin: 0;
}
.rsvp-radio-group input[type="radio"] {
    accent-color: var(--rsvp-btn-bg) !important;
    width: 18px;
    height: 18px;
    margin: 0;
}

.rsvp-songs-section {
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid var(--rsvp-input-border);
}
.rsvp-songs-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: var(--rsvp-text-color) !important;
}
.rsvp-songs-header h3 {
    margin: 0;
    font-size: var(--rsvp-fs-label) !important;
    font-family: var(--rsvp-font) !important;
}

.rsvp-submit-btn {
    width: 100%;
    padding: 16px;
    background: var(--rsvp-btn-bg) !important;
    color: var(--rsvp-btn-text) !important;
    border: var(--rsvp-btn-bw) solid var(--rsvp-btn-border) !important;
    border-radius: var(--rsvp-btn-br) !important;
    font-size: var(--rsvp-fs-label) !important;
    font-weight: 600;
    font-family: var(--rsvp-font) !important;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}
.rsvp-submit-btn:hover {
    background: var(--rsvp-btn-bg-hover) !important;
    color: var(--rsvp-btn-text-hover) !important;
}
.rsvp-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Success Overlay */
.rsvp-success-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--rsvp-form-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    z-index: 10;
    opacity: 0;
    animation: fadeIn_d74448b0 0.5s ease forwards;
}
.rsvp-success-content {
    text-align: center;
    padding: 30px;
}
.success-icon {
    width: 60px; height: 60px;
    background: var(--rsvp-btn-bg);
    color: var(--rsvp-btn-text);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 30px; margin: 0 auto 20px;
}
.rsvp-reset-btn {
    padding: 10px 20px;
    background: transparent;
    border: 1px solid var(--rsvp-text-color);
    color: var(--rsvp-text-color);
    border-radius: var(--rsvp-btn-br);
    cursor: pointer;
    margin-top: 20px;
}

@keyframes fadeIn_d74448b0 { to { opacity: 1; } }

@media (max-width: 480px) {
    .rsvp-form-wrapper-d74448b0 {
        padding: 25px 20px;
        border-radius: 0;
        box-shadow: none;
    }
}