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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #3d5a26 0%, #6b7280 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

.event-card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    margin-bottom: 30px;
}

.event-header {
    text-align: center;
    margin-bottom: 30px;
}

.event-title {
    font-size: 2.5rem;
    color: #2d3748;
    margin-bottom: 20px;
    font-weight: 700;
}

.event-details {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #4a5568;
    font-size: 1.1rem;
}

.detail-icon {
    font-size: 1.5rem;
}

.rsvp-button {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    padding: 16px 32px;
    background: linear-gradient(135deg, #4a6b2e 0%, #5a7c3e 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.rsvp-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(74, 107, 46, 0.4);
}

.rsvp-button:active {
    transform: translateY(0);
}

.rsvp-form-container {
    display: none;
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    margin-bottom: 30px;
}

.rsvp-form-container.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

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

.form-title {
    font-size: 1.8rem;
    color: #2d3748;
    margin-bottom: 20px;
    text-align: center;
}

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

.form-label {
    display: block;
    margin-bottom: 8px;
    color: #4a5568;
    font-weight: 600;
}

.form-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: #4a6b2e;
}

.captcha-container {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.button-group {
    display: flex;
    gap: 12px;
}

.submit-button {
    flex: 1;
    padding: 14px;
    background: linear-gradient(135deg, #4a6b2e 0%, #5a7c3e 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.submit-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.submit-button:not(:disabled):hover {
    transform: translateY(-2px);
}

.cancel-button {
    flex: 1;
    padding: 14px;
    background: #e2e8f0;
    color: #4a5568;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.cancel-button:hover {
    background: #cbd5e0;
}

.message {
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
    display: none;
}

.message.active {
    display: block;
    animation: slideDown 0.3s ease-out;
}

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

.message.success {
    background: #c6f6d5;
    color: #22543d;
}

.message.error {
    background: #fed7d7;
    color: #742a2a;
}

.rsvp-list {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.rsvp-list-title {
    font-size: 1.8rem;
    color: #2d3748;
    margin-bottom: 20px;
    text-align: center;
}

.rsvp-count {
    text-align: center;
    color: #718096;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.rsvp-items {
    list-style: none;
}

.rsvp-item {
    padding: 16px;
    background: #f7fafc;
    border-radius: 8px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.rsvp-item-icon {
    font-size: 1.5rem;
}

.rsvp-item-name {
    font-size: 1.1rem;
    color: #2d3748;
    font-weight: 500;
}

.empty-state {
    text-align: center;
    color: #a0aec0;
    font-style: italic;
    padding: 40px;
}

.cancel-rsvp-btn {
    background: #dc2626;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    margin-left: auto;
    transition: background 0.2s;
}

.cancel-rsvp-btn:hover {
    background: #b91c1c;
}

.confirm-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.confirm-modal.active {
    display: flex;
}

.confirm-modal-content {
    background: white;
    border-radius: 16px;
    padding: 40px;
    max-width: 450px;
    width: 100%;
    text-align: center;
    animation: modalSlideIn 0.3s ease-out;
}

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

.confirm-modal-title {
    font-size: 1.5rem;
    color: #2d3748;
    margin-bottom: 20px;
    font-weight: 700;
}

.confirm-modal-text {
    color: #4a5568;
    margin-bottom: 30px;
    line-height: 1.6;
    font-size: 1.1rem;
}

.confirm-modal-name {
    font-weight: 700;
    color: #2d3748;
}

.confirm-modal-buttons {
    display: flex;
    gap: 12px;
}

.confirm-yes-btn {
    flex: 1;
    padding: 14px;
    background: #dc2626;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
}

.confirm-yes-btn:hover {
    background: #b91c1c;
}

.confirm-no-btn {
    flex: 1;
    padding: 14px;
    background: #e2e8f0;
    color: #4a5568;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
}

.confirm-no-btn:hover {
    background: #cbd5e0;
}

@media (max-width: 640px) {
    .event-card, .rsvp-form-container, .rsvp-list {
        padding: 24px;
    }

    .event-title {
        font-size: 1.8rem;
    }

    .event-details {
        flex-direction: column;
        gap: 15px;
    }

    .detail-item {
        justify-content: center;
    }
}