/* Base Styles */
body {
    background-color: #f9f7f5; /* Soft ivory background */
    font-family: "Playfair Display", serif;
}

/* Floral Background */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 500 500" preserveAspectRatio="none"><defs><pattern id="floral" patternUnits="userSpaceOnUse" width="500" height="500"><path d="M10,10 Q25,5 40,10 T70,10 T100,10" stroke="%23e8d5c4" stroke-width="1" fill="none" opacity="0.3"/></pattern></defs><rect width="100%" height="100%" fill="url(%23floral)"/></svg>');
    background-size: cover;
    z-index: -1;
}

/* Container Styles */
.edit-invitation-container,
.wedding-container {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #e8d5c4; /* Soft gold border */
}

.edit-invitation-container h1,
.wedding-container .wedding-header h1 {
    color: #8a6f58; /* Warm brown */
    font-family: "Playfair Display", serif;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 400;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    border: 1px solid #e8d5c4 !important;
    border-radius: 5px;
    padding: 10px;
    font-family: "Lora", serif;
    font-size: 1.1rem;
    background-color: rgba(255, 255, 255, 0.8);
}

.form-check-input {
    margin-top: 0.3rem;
    margin-right: 0.5rem;
}

.form-check-label {
    font-family: "Lora", serif;
    color: #5a5a5a;
}

.nowrap {
    white-space: nowrap;
}

/* Button Styles */
.btn-update {
    background-color: #a88d7a; /* Soft gold */
    border: none;
    color: white;
    padding: 10px 25px;
    font-family: "Playfair Display", serif;
    font-size: 1.2rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    display: block;
    margin: 2rem auto 0;
    width: fit-content;
}

.btn-update:hover {
    background-color: #8a6f58; /* Darker gold */
}

/* Non-interactive Styles */
.non-selectable {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    cursor: default;
}

.non-interactive {
    pointer-events: none;
    background-color: #f8f9fa !important;
    color: #6c757d !important;
    opacity: 0.8;
}

/* Footer Styles */
footer,
.wedding-container .rsvp-info {
    text-align: center;
    margin-top: 2rem;
    color: #8a6f58;
    font-family: "Lora", serif;
    font-style: italic;
}

.wedding-radio input:disabled + label {
    opacity: 0.5;
    cursor: not-allowed;
}

.fully-booked option {
    color: #999;
}

.fully-booked {
    opacity: 0.5;
    cursor: not-allowed;
}

.fully-booked input[type="radio"] {
    cursor: not-allowed;
}

/* Wedding-Specific Styles */
.wedding-header {
    margin-bottom: 2rem;
    padding: 0 2rem;
}

.wedding-header .wedding-date {
    font-family: "Lora", serif;
    font-size: 1.5rem;
    font-style: italic;
}

.wedding-section {
    margin: 3rem 0;
    text-align: left;
    padding: 0 2rem;
}

.wedding-section h2 {
    color: #a88d7a;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.wedding-details {
    line-height: 1.8;
    font-family: "Lora", serif;
}

.floral-divider {
    height: 2px;
    background: repeating-linear-gradient(
        to right,
        #e8d5c4 0%,
        #e8d5c4 5%,
        transparent 5%,
        transparent 10%
    );
    margin: 2rem auto;
    width: 200px;
}

.alert {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.flash-message {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: none;
}
