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

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #eaeaea;
}

.container {
    width: 100%;
    max-width: 520px;
}

.card {
    background: rgba(22, 33, 62, 0.95);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 215, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 215, 0, 0.15);
}

.header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 50%, #ffd700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
}

.subtitle {
    color: #ffd700;
    font-size: 1rem;
    font-weight: 300;
    margin-top: 8px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.welcome {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 24px;
    color: #fff;
}

.welcome #guest-name {
    color: #ffd700;
    font-weight: 600;
}

.welcome .guest-label {
    color: #ffd700;
    font-size: 0.95rem;
    font-style: italic;
    margin-top: 4px;
}

.announcement {
    text-align: center;
    margin-bottom: 20px;
}

.announcement h2 {
    font-size: 1.3rem;
    font-weight: 500;
    line-height: 1.5;
    color: #fff;
}

.announcement strong {
    color: #ffd700;
    font-weight: 700;
}

.details {
    text-align: center;
    margin-bottom: 24px;
    padding: 16px;
    background: rgba(255, 215, 0, 0.08);
    border-radius: 12px;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.details p {
    font-size: 1.1rem;
    color: #fff;
}

.details strong {
    color: #ffd700;
}

.guest-info {
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: 12px;
}

.guest-info h3 {
    color: #ffd700;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-item label {
    font-size: 0.8rem;
    font-weight: 500;
    color: #b0b0b0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-item span {
    font-size: 0.95rem;
    color: #fff;
}

.qrcode-container {
    padding-top: 16px;
    border-top: 1px solid rgba(255, 215, 0, 0.15);
}

.qrcode-container label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: #b0b0b0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.qrcode-container img {
    max-width: 200px;
    height: auto;
    border-radius: 8px;
    background: #fff;
    padding: 8px;
}

.cta {
    text-align: center;
    margin-bottom: 30px;
    color: #b0b0b0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.rsvp-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.attendance-fieldset {
    border: none;
    padding: 0;
}

.attendance-fieldset legend {
    font-size: 1rem;
    font-weight: 600;
    color: #ffd700;
    margin-bottom: 16px;
    display: block;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    transition: all 0.3s ease;
    font-size: 1rem;
    color: #eaeaea;
}

.radio-label:hover {
    background: rgba(255, 215, 0, 0.08);
    border-color: rgba(255, 215, 0, 0.4);
}

.radio-label input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 22px;
    height: 22px;
    border: 2px solid rgba(255, 215, 0, 0.5);
    border-radius: 50%;
    margin-right: 16px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.radio-label input[type="radio"]:checked + .radio-custom {
    border-color: #ffd700;
    background: #ffd700;
    box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.2);
}

.radio-label input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #1a1a2e;
    border-radius: 50%;
}

.radio-label input[type="radio"]:focus-visible + .radio-custom {
    outline: 2px solid #ffd700;
    outline-offset: 2px;
}

.additional-fields {
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.additional-fields.hidden {
    display: none;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #ffd700;
}

.form-group input,
.form-group textarea {
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: #fff;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ffd700;
    background: rgba(255, 215, 0, 0.05);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #666;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.deadline {
    padding: 16px;
    background: rgba(255, 193, 7, 0.08);
    border: 1px solid rgba(255, 193, 7, 0.2);
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #ccc;
}

.deadline strong {
    color: #ffc107;
}

.submit-btn {
    padding: 18px;
    background: linear-gradient(135deg, #ffd700 0%, #ffc107 100%);
    color: #1a1a2e;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 8px;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
}

.submit-btn:active:not(:disabled) {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.submit-btn:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.contact {
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 215, 0, 0.15);
    text-align: center;
}

.contact p {
    color: #b0b0b0;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.contact-info {
    font-size: 0.85rem !important;
    color: #888 !important;
}

.contact-info a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #ffd700;
    text-decoration: underline;
}

/* Confirmed guest styles */
.confirmed .contact-info {
    color: #ffd700 !important;
}

.confirmed .contact-info a {
    color: #ff69b4 !important;
}

.confirmed .contact-info a[href^="tel:"] {
    color: #ffd700 !important;
}

.confirmed .contact-info a[href^="mailto:"] {
    color: #ff69b4 !important;
}

.confirmed .contact-info a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.event-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 16px;
}

.detail-section {
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: 12px;
}

.detail-section h4 {
    color: #ffd700;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-section p {
    color: #ddd;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 8px;
}

.detail-section p:last-child {
    margin-bottom: 0;
}

.detail-section a {
    color: #ffd700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.detail-section a:hover {
    color: #ffed4e;
    text-decoration: underline;
}

.map-link {
    display: inline-block;
    margin-top: 8px;
    font-weight: 500;
}

.timeline {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.timeline li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 12px 16px;
    background: rgba(255, 215, 0, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.timeline .time {
    color: #ffd700;
    font-weight: 700;
    font-size: 0.9rem;
    min-width: 60px;
    flex-shrink: 0;
}

.timeline li span:last-child {
    color: #ddd;
    line-height: 1.5;
}

.final-message {
    margin-top: 24px;
    padding: 20px;
    text-align: center;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 215, 0, 0.05) 100%);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
}

.final-message p {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 500;
    font-style: italic;
}

@media (max-width: 480px) {
    .card {
        padding: 24px;
    }

    .header h1 {
        font-size: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .radio-label {
        padding: 14px 16px;
    }

    .timeline li {
        flex-direction: column;
        gap: 4px;
    }

    .timeline .time {
        min-width: auto;
    }
}