/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #ffffff;
    color: #000000;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.header {
    text-align: center;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.main-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.decorative-line {
    width: 80px;
    height: 2px;
    background-color: #000000;
    margin: 0 auto;
    position: relative;
}

.decorative-line::before,
.decorative-line::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: #000000;
    border-radius: 50%;
    top: -3px;
}

.decorative-line::before {
    left: -15px;
}

.decorative-line::after {
    right: -15px;
}

/* Invitation Image Section */
.invitation-section {
    padding: 2rem 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    background-color: #f8f9fa;
}

.invitation-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.invitation-image:hover {
    transform: scale(1.02);
}

.image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    min-height: 400px;
    color: #666;
}

.image-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #ccc;
}

.image-placeholder p {
    font-size: 1.1rem;
    font-weight: 300;
}

/* Party Information Section */
.party-info {
    padding: 3rem 1rem;
    background-color: #ffffff;
}

.info-card {
    max-width: 800px;
    margin: 0 auto;
    background-color: #ffffff;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 2.5rem;
    color: #000000;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    padding: 1.5rem;
    background-color: #fafafa;
    border-radius: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.info-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.info-item i {
    font-size: 1.5rem;
    color: #000000;
    margin-right: 1rem;
    margin-top: 0.3rem;
    min-width: 30px;
    flex-shrink: 0; /* Prevent icon from shrinking */
}

.info-text {
    flex: 1; /* Take up remaining space */
}

.info-text h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #000000;
    line-height: 1.2;
}

.info-text p {
    font-size: 1rem;
    color: #333333;
    line-height: 1.5;
    margin: 0;
}

/* Calendar Section */
.calendar-section {
    text-align: center;
    position: relative;
    margin-bottom: 2rem;
}

.calendar-heading {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.calendar-buttons-row {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

.calendar-group {
    position: relative;
}

.calendar-btn {
    background-color: #000000;
    color: #ffffff;
    border: none;
    padding: 1rem 1.75rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 180px;
    justify-content: center;
}

.calendar-btn:hover {
    background-color: #333333;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.calendar-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 0.5rem;
    min-width: 220px;
    z-index: 100;
    display: none;
    margin-top: 0.5rem;
}

.calendar-dropdown.show {
    display: block;
    animation: fadeInUp 0.3s ease;
}

.calendar-option {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: #000000;
    border-radius: 8px;
    transition: background-color 0.2s ease;
    font-size: 0.95rem;
}

.calendar-option:hover {
    background-color: #f5f5f5;
}

.calendar-option i {
    margin-right: 0.75rem;
    font-size: 1.1rem;
    width: 20px;
}

/* RSVP Section */
/* RSVP Section */
.rsvp-section {
    padding: 3rem 1rem;
    text-align: center;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.rsvp-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 1rem;
}

.rsvp-note {
    margin-bottom: 2rem;
    font-size: 0.95rem;
    color: #666666;
    font-style: italic;
}

/* RSVP Form Styles */
.rsvp-form {
    max-width: 500px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #f0f0f0;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #000000;
    font-size: 0.95rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    background-color: #ffffff;
}

.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    background-color: #ffffff;
    resize: vertical;
    min-height: 100px;
    line-height: 1.5;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #000000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.form-group textarea:focus {
    outline: none;
    border-color: #000000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.form-group input::placeholder {
    color: #999;
}

.form-group textarea::placeholder {
    color: #999;
}

/* Dynamic Guest Name Fields */
.guests-container {
    margin-bottom: 1rem;
    animation: fadeInGuests 0.3s ease;
}

.guest-name-group {
    background-color: #fafafa;
    border: 1px solid #e1e5e9;
    border-radius: 10px;
    padding: 1rem 1.25rem 0.25rem;
    margin-bottom: 1rem;
}

.guest-name-group .form-row {
    margin-bottom: 0.5rem;
}

.guest-name-title {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 0.75rem;
    letter-spacing: 0.5px;
}

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

.rsvp-submit-btn {
    width: 100%;
    background-color: #000000;
    color: #ffffff;
    border: none;
    padding: 1.25rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.rsvp-submit-btn:hover {
    background-color: #333333;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

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

.rsvp-submit-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    transform: none;
}

.btn-loading {
    display: none;
}

/* Success and Error Messages */
.success-message,
.error-message {
    display: none;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    margin-top: 1rem;
    animation: fadeInUp 0.5s ease;
}

.success-message {
    background-color: #000000;
    color: #ffffff;
}

.error-message {
    background-color: #dc3545;
    color: #ffffff;
}

.success-message i,
.error-message i {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.success-message h3,
.error-message h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.success-message p,
.error-message p {
    font-size: 1rem;
    margin: 0;
}

/* Footer */
.footer {
    padding: 2rem 1rem;
    text-align: center;
    background-color: #ffffff;
    margin-top: auto;
}

.footer p {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: #666666;
    font-style: italic;
    margin-top: 1rem;
}

/* Sticky Scroll Indicator */
.scroll-indicator {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
    color: #ffffff;
    padding: 8px 0;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 500;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    border-top: 2px solid #4285f4;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: shakeOnce 1s ease-in-out 2s;
}

.scroll-indicator:hover {
    background: linear-gradient(135deg, #333333 0%, #555555 100%);
    transform: translateY(-2px);
}

.scroll-indicator i {
    margin-right: 6px;
    animation: bounce 2s infinite;
}

.scroll-indicator.hidden {
    transform: translateY(100%);
    opacity: 0;
}

/* Shake animation that runs once */
@keyframes shakeOnce {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-3px); }
    20%, 40%, 60%, 80% { transform: translateX(3px); }
}

/* Bouncing arrow animation */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-4px);
    }
    60% {
        transform: translateY(-2px);
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .main-title {
        font-size: 2rem;
    }
    
    .header {
        padding: 1.5rem 1rem;
    }
    
    .invitation-section {
        padding: 1.5rem 1rem;
    }
    
    .info-card {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
        border-radius: 15px;
    }
    
    .section-title {
        font-size: 1.7rem;
    }
    
    .info-item {
        padding: 1.25rem;
    }
    
    .info-item i {
        font-size: 1.3rem;
    }
    
    .calendar-btn,
    .rsvp-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .rsvp-btn {
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }
    
    .calendar-buttons-row {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .calendar-group {
        width: 100%;
        max-width: 300px;
    }
    
    .calendar-dropdown {
        left: 1rem;
        right: 1rem;
        transform: none;
        min-width: auto;
    }
    
    /* RSVP Form Mobile Styles */
    .rsvp-form {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .rsvp-title {
        font-size: 1.7rem;
    }
    
    .rsvp-submit-btn {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 1.8rem;
    }
    
    .info-card {
        margin: 0 0.5rem;
        padding: 1.5rem 1rem;
    }
    
    .info-item {
        padding: 1rem;
    }
    
    .info-item i {
        margin-right: 0.75rem;
        margin-top: 0.1rem;
        font-size: 1.3rem;
        min-width: 25px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .rsvp-btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .calendar-btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
}

/* Tablet and larger screens */
@media (min-width: 769px) {
    .info-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .container {
        padding: 0 2rem;
    }
    
    .image-placeholder {
        min-height: 500px;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 1200px;
        padding: 0 3rem;
    }
    
    .main-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
}

/* Location Link Styles */
.location-link {
    color: #4285f4;
    text-decoration: underline;
    transition: color 0.3s ease;
    display: block;
    line-height: 1.5;
}

.location-link:hover {
    color: #1a73e8;
    text-decoration: underline;
}

.location-link:active {
    color: #1557b8;
}
