/* RSVP Modal Styles */
.rsvp-modal-content {
    background: linear-gradient(135deg, rgba(100, 78, 124, 0.98) 0%, rgba(139, 95, 191, 0.95) 50%, rgba(177, 156, 217, 0.95) 100%);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    color: var(--white);
    box-shadow: 0 20px 60px rgba(100, 78, 124, 0.5);
}

.rsvp-modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rsvp-modal-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 300;
    color: white;
    margin: 0;
    letter-spacing: 0.5px;
}

.btn-close-white {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.btn-close-white:hover {
    opacity: 1;
}

.rsvp-modal-body {
    padding: 2rem;
}

.rsvp-form {
    text-align: left;
}

.form-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    letter-spacing: 0.3px;
}

.rsvp-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    color: var(--white);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.input-group {
    display: flex;
}

.input-group .country-code-select {
    flex: 0 0 95px;
    min-width: 95px;
    max-width: 95px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-right: none;
    border-radius: 10px 0 0 10px;
    color: var(--white);
    padding: 0.75rem 0.25rem;
    font-size: 0.85rem;
    text-align: center;
}

.input-group .country-code-select option {
    background: var(--eggplant);
    color: var(--white);
}

.input-group .rsvp-input {
    flex: 1;
    border-radius: 0 10px 10px 0;
    border-left: none;
}

.input-group .rsvp-input:focus {
    border-left: 1px solid rgba(255, 255, 255, 0.4);
}

.form-text {
    font-size: 0.75rem;
    margin-top: 0.25rem;
    display: block;
}

.rsvp-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.rsvp-input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.contact-note {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    font-style: italic;
}

.rsvp-submit-button {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.15) 100%);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50px;
    font-weight: 500;
    letter-spacing: 1.5px;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.rsvp-submit-button::before {
    content: '💕';
    position: absolute;
    left: -30px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.rsvp-submit-button:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.25) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
}

.rsvp-submit-button:hover::before {
    left: 15px;
}

.rsvp-submit-button:active {
    transform: translateY(0);
}

.form-message {
    font-size: 0.9rem;
    text-align: center;
    min-height: 20px;
}

.form-message.success {
    color: #90ee90;
}

.form-message.error {
    color: #ffb6c1;
}

/* Add to Calendar Options */
.calendar-button-container {
    margin-top: 1.5rem;
    text-align: center;
}

.calendar-prompt {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.75rem;
    font-weight: 400;
}

.calendar-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.calendar-option {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    font-weight: 500;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.calendar-option:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    color: white;
    text-decoration: none;
}

.calendar-option svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Close Button */
.close-button-container {
    margin-top: 1.5rem;
    text-align: center;
}

.modal-close-button {
    padding: 0.75rem 2rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    font-weight: 500;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.modal-close-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Modal backdrop customization */
.modal-backdrop.show {
    opacity: 0.8;
}

/* Step Indicator */
.step-indicator {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.step.active {
    opacity: 1;
}

.step.completed {
    opacity: 0.7;
}

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.step.completed .step-number {
    background: rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.5);
}

.step-label {
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    font-weight: 400;
}

/* Companions Section */
.companions-section {
    animation: slideIn 0.3s ease;
}

.guests-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.guest-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.guest-card:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
}

.guest-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.guest-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-weight: 400;
    color: white;
    margin: 0;
}

.remove-guest-btn {
    background: rgba(255, 100, 100, 0.2);
    border: 1px solid rgba(255, 100, 100, 0.3);
    border-radius: 8px;
    padding: 0.5rem;
    color: rgba(255, 150, 150, 0.9);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-guest-btn:hover {
    background: rgba(255, 100, 100, 0.3);
    border-color: rgba(255, 100, 100, 0.5);
    color: white;
}

.remove-guest-btn svg {
    width: 16px;
    height: 16px;
}

.add-companion-button {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    color: white;
    font-weight: 500;
    letter-spacing: 0.5px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-companion-button:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.add-companion-button svg {
    width: 18px;
    height: 18px;
}

/* Success Section */
.success-section {
    text-align: center;
    animation: slideIn 0.3s ease;
}

.success-message {
    margin-bottom: 2rem;
}

.success-icon {
    width: 64px;
    height: 64px;
    color: rgba(150, 255, 150, 0.9);
    margin-bottom: 1rem;
    animation: checkmark 0.6s ease;
}

@keyframes checkmark {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-message h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 400;
    color: white;
    margin-bottom: 0.5rem;
}

.success-message p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 576px) {
    .rsvp-modal-header {
        padding: 1rem 1rem 0;
    }

    .rsvp-modal-body {
        padding: 1.5rem;
    }

    .step-indicator {
        gap: 1rem;
    }

    .step-label {
        font-size: 0.75rem;
    }

    .calendar-options {
        grid-template-columns: 1fr;
    }

    .guest-card {
        padding: 1rem;
    }

    .guest-name {
        font-size: 1.1rem;
    }
    
    .rsvp-submit-button {
        padding: 0.75rem;
        font-size: 0.9rem;
        letter-spacing: 1px;
    }
    
    .add-companion-button {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
}