
/* Modal Styles */
.custom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.custom-modal.modal-open {
    opacity: 1;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 10px;
    padding: 2rem;
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.custom-modal.modal-open .modal-content {
    transform: scale(1);
}

.custom-modal form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.custom-modal input, .custom-modal textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: var(--font-size-base);
    font-family: var(--font-primary);
}

.custom-modal textarea::placeholder {
    color: #aaa;
    font-size: var(--font-size-language-switcher);
}

.custom-modal label {
    font-weight: 600;
    margin-top: 1rem;
}

.custom-modal select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: var(--font-size-base);
    font-family: var(--font-primary);
    background: white;
    appearance: none;
}

.custom-modal button[type="submit"] {
    background: linear-gradient(105deg, var(--bride-color), var(--groom-color));
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    font-size: var(--font-size-base);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    margin-top: 1rem;
}

/* Animation variants */
.modal-fade .modal-content {
    transform: translateY(-50px);
    opacity: 0;
}

.modal-fade.modal-open .modal-content {
    transform: translateY(0);
    opacity: 1;
}

.modal-slide .modal-content {
    transform: translateY(100%);
}

.modal-slide.modal-open .modal-content {
    transform: translateY(0);
}

.modal-scale .modal-content {
    transform: scale(0.7);
}

.modal-scale.modal-open .modal-content {
    transform: scale(1);
}

#rsvp-modal{
    width: 100%;
}

.sleep-info-container {
    background-color: rgba(191, 223, 207, 0.61);
    border-left: 4px solid rgb(102, 214, 158);
    padding: 8px 20px;
    border-radius: 4px;
    margin: 20px 0;
    text-align: center;
}

.sleep-info-container p {
    margin: 0 0 10px 0;
    color: #333;
    line-height: 1.5;
    font-size: 0.95rem;
}

.sleep-info-container a {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.sleep-info-container a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .modal-content {
        margin: 20px;
        padding: 1.5rem;
        max-width: calc(100vw - 40px);
    }
}