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

body {
    font-family: 'EB Garamond', Georgia, serif;
    line-height: 1.7;
    color: #252020;
    background-color: #f9f9f9;
}

h1 {
    font-family: 'EB Garamond', Georgia, serif;
    font-weight: 500;
    font-style: italic;
}

/* Universal Header Styles */
h2 {
    font-family: 'EB Garamond', Georgia, serif;
    font-weight: 400;
    font-size: 1.6rem;
    margin-bottom: 10px;
}

h3 {
    font-family: 'EB Garamond', Georgia, serif;
    font-weight: 400;
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #fff;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.08);
}

/* Eyebrow Text */
.eyebrow-text {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 10px;
}

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    background-color: #fef7f3;
    padding: 60px 40px;
}

.hero-image {
    display: block;
    width: auto;
    height: 420px;
    max-width: 80%;
    margin: 0 auto 20px;
    object-fit: contain;
    position: relative;
    z-index: 1;
}

.hero-content {
    position: relative;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: #fef7f3;
    border: 1px solid #c8a882;
    box-shadow: 
        inset 0 0 0 4px #fef7f3,
        inset 0 0 0 5px #c8a882,
        inset 0 0 0 9px #fef7f3,
        inset 0 0 0 10px #c8a882;
}

/* Remove the old inner border */
.hero-content::before {
    display: none;
}

/* Corner decorations - base styles */
.corner-decoration {
    position: absolute;
    width: 50px;
    height: 50px;
    pointer-events: none;
}

/* Top-left corner */
.corner-tl {
    top: -10px;
    left: -10px;
    border-top: 3px solid #c8a882;
    border-left: 3px solid #c8a882;
}

.corner-tl::before {
    content: '';
    position: absolute;
    top: 15px;
    left: -3px;
    width: 20px;
    height: 3px;
    background-color: #c8a882;
}

.corner-tl::after {
    content: '';
    position: absolute;
    top: -3px;
    left: 15px;
    width: 3px;
    height: 20px;
    background-color: #c8a882;
}

/* Top-right corner */
.corner-tr {
    top: 0px;
    right: 0px;
    border-top: 3px solid #c8a882;
    border-right: 3px solid #c8a882;
}

.corner-tr::before {
    content: '';
    position: absolute;
    top: 15px;
    right: -3px;
    width: 20px;
    height: 3px;
    background-color: #c8a882;
}

.corner-tr::after {
    content: '';
    position: absolute;
    top: -3px;
    right: 15px;
    width: 3px;
    height: 20px;
    background-color: #c8a882;
}

/* Bottom-left corner */
.corner-bl {
    bottom: -10px;
    left: -10px;
    border-bottom: 3px solid #c8a882;
    border-left: 3px solid #c8a882;
}

.corner-bl::before {
    content: '';
    position: absolute;
    bottom: 15px;
    left: -3px;
    width: 20px;
    height: 3px;
    background-color: #c8a882;
}

.corner-bl::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 15px;
    width: 3px;
    height: 20px;
    background-color: #c8a882;
}

/* Bottom-right corner */
.corner-br {
    bottom: -10px;
    right: -10px;
    border-bottom: 3px solid #c8a882;
    border-right: 3px solid #c8a882;
}

.corner-br::before {
    content: '';
    position: absolute;
    bottom: 15px;
    right: -3px;
    width: 20px;
    height: 3px;
    background-color: #c8a882;
}

.corner-br::after {
    content: '';
    position: absolute;
    bottom: -3px;
    right: 15px;
    width: 3px;
    height: 20px;
    background-color: #c8a882;
}

.hero-content h1 {
    font-size: clamp(2.2rem, 6vw, 3.5rem);
    margin-bottom: 20px;
    line-height: 1.2;
    white-space: nowrap;
}

.hero-info {
    font-size: 1.2rem;
    margin: 30px 40px;
}



/* Service Details Section */
.service-details-section {
    padding: 80px 40px;
    background-color: #fafafa;
    border-bottom: 1px solid #e5e5e5;
}

.service-detail {
    text-align: center;
    margin-bottom: 60px;
}


.location-detail {
    text-align: center;
    margin: 50px 0 30px;
}


.location-detail .address {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.7;
}

.map-container {
    max-width: 900px;
    margin: 40px auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    display: block;
}

/* Reception Section */
.reception-section {
    padding: 80px 40px;
    background-color: #fff;
}

.reception-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.reception-text {
    font-size: 1.3rem;
    line-height: 1.8;
    margin-bottom: 50px;
    font-weight: 300;
}

.rsvp-prompt {
    font-size: 1.4rem;
    margin: 50px 0 30px;
    font-style: italic;
}

/* RSVP CTA Button */
.rsvp-cta-btn {
    margin: 30px;
    padding: 16px 45px;
    font-size: 1rem;
    font-weight: 400;
    background-color: #4a4a4a;
    color: #fff;
    border: 2px solid #4a4a4a;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-family: 'Lato', sans-serif;
}

.rsvp-cta-btn:hover {
    background-color: transparent;
    color: #4a4a4a;
}

.rsvp-cta-btn:active {
    transform: scale(0.98);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.modal-content {
    background-color: #fff;
    margin: 20px;
    border-radius: 4px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 35px;
    border-bottom: 1px solid #e5e5e5;
    background-color: #fafafa;
}

.modal-header h2 {
    margin: 0;
}

.close-modal {
    background: none;
    border: none;
    font-size: 2.5rem;
    font-weight: 300;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
    opacity: 0.7;
}

.close-modal:hover {
    background-color: #f0f0f0;
    opacity: 1;
}

.modal-body {
    padding: 35px;
}

/* RSVP Section - Removed as form is now in modal */

/* Form Styles */
.rsvp-form {
    max-width: 600px;
    margin: 0 auto;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #d5d5d5;
    border-radius: 3px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
    background-color: #fafafa;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #6b6b6b;
    background-color: #fff;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background-color: #4a4a4a;
    color: white;
    border: 2px solid #4a4a4a;
    border-radius: 3px;
    font-size: 1rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.submit-btn:hover {
    background-color: transparent;
    color: #4a4a4a;
}

.submit-btn:active {
    transform: scale(0.98);
}

/* Messages */
.success-message,
.error-message {
    max-width: 600px;
    margin: 20px auto;
    padding: 18px;
    border-radius: 3px;
    text-align: center;
    font-size: 1rem;
}

.success-message {
    background-color: #f0f7f0;
    color: #2d5016;
    border: 1px solid #c3e6c3;
}

.error-message {
    background-color: #fef0f0;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Admin Section */
.admin-section {
    padding: 40px;
    background-color: #f8f9fa;
    border-top: 2px solid #e0e0e0;
    text-align: center;
}

.admin-toggle-btn {
    display: inline-block;
    margin: 0 auto;
    padding: 10px 30px;
    background-color: #6c757d;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background-color 0.3s;
}

.admin-toggle-btn:hover {
    background-color: #5a6268;
}

.dashboard-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.logout-btn {
    padding: 8px 20px;
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}

.logout-btn:hover {
    background-color: #c82333;
}

/* Summary Cards */
.rsvp-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.summary-card {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 2px solid #e0e0e0;
}

.summary-card h3 {
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.7;
    font-size: 0.9rem;
}

.summary-number {
    font-size: 2rem;
    font-weight: bold;
}

/* Filters */
.rsvp-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    align-items: center;
}

.rsvp-filters label {
    font-weight: 600;
}

.rsvp-filters select {
    padding: 8px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.95rem;
}

.export-btn {
    padding: 8px 20px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s;
    margin-left: auto;
}

.export-btn:hover {
    background-color: #218838;
}

/* RSVP List */
.rsvp-list {
    display: grid;
    gap: 15px;
}

.rsvp-item {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.rsvp-item.attending {
    border-left-color: #28a745;
}

.rsvp-item.not-attending {
    border-left-color: #dc3545;
}

.rsvp-item.maybe {
    border-left-color: #ffc107;
}

.rsvp-item p {
    margin: 5px 0;
    opacity: 0.7;
}

.rsvp-item strong {
    opacity: 1;
}

/* Responsive Design */

/* Tablet */
@media (max-width: 768px) {
    .hero-section {
        padding: 50px 30px;
    }

    .hero-image {
        height: 250px;
        max-width: 85%;
        margin-bottom: 35px;
    }

    .hero-content .date-text {
        font-size: 1.3rem;
    }

    .hero-content .location-text {
        font-size: 1.1rem;
    }

    .service-details-section {
        padding: 60px 30px;
    }

    .reception-section {
        padding: 60px 30px;
    }

    .reception-text {
        font-size: 1.2rem;
    }

    .modal-content {
        margin: 10px;
    }

    .modal-header {
        padding: 25px 30px;
    }

    .modal-body {
        padding: 30px;
    }

    .admin-section {
        padding: 30px 20px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .hero-section {
        padding: 40px 20px;
    }

    .hero-image {
        height: 200px;
        max-width: 90%;
        margin-bottom: 30px;
    }

    .hero-content .date-text {
        font-size: 1.1rem;
    }

    .hero-content .location-text {
        font-size: 1rem;
    }

    .service-details-section {
        padding: 50px 20px;
    }

    .service-detail {
        margin-bottom: 50px;
    }

    .location-detail .address {
        font-size: 1rem;
    }

    .map-container {
        margin: 30px auto;
    }

    .map-container iframe {
        height: 300px;
    }

    .reception-section {
        padding: 50px 20px;
    }

    .reception-text {
        font-size: 1.1rem;
    }

    .rsvp-prompt {
        font-size: 1rem;
    }

    .rsvp-cta-btn {
        padding: 14px 35px;
        font-size: 0.95rem;
    }

    .modal-content {
        margin: 5px;
        max-height: 95vh;
    }

    .modal-header {
        padding: 20px 25px;
    }

    .modal-body {
        padding: 25px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 11px;
    }

    .submit-btn {
        padding: 13px;
        font-size: 0.95rem;
    }

    .admin-section {
        padding: 20px 15px;
    }

    #adminDashboard {
        padding: 20px;
    }

    .rsvp-summary {
        grid-template-columns: 1fr;
    }

    .summary-card {
        padding: 15px;
    }

    .rsvp-item {
        padding: 15px;
    }
}

/* Print Styles */
@media print {
    .admin-toggle-btn,
    .logout-btn,
    .export-btn,
    .rsvp-filters,
    .rsvp-cta-btn,
    .modal,
    .dashboard-actions {
        display: none;
    }

    .rsvp-item {
        page-break-inside: avoid;
    }
}
