/* Modern Elegant Wedding Design with Floral Background */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Inter:wght@300;400;500;600&family=Montserrat:wght@300;400;500;600&family=Great+Vibes:wght@400&family=Cormorant+Garamond:wght@300;400;500;600&display=swap');

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

/* Mobile touch improvements */
button, input, textarea, select {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* Improve scrolling on mobile */
html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

:root {
    /* Elegant Color Palette */
    --primary-dark: #2c3e50;
    --secondary-dark: #34495e;
    --accent-gold: #d4af37;
    --soft-gold: #f4e4bc;
    --warm-white: #fefefe;
    --pure-white: rgba(255, 255, 255, 0.95);
    --glass-white: rgba(255, 255, 255, 0.85);
    --light-cream: rgba(248, 245, 240, 0.9);
    --medium-gray: #7f8c8d;
    --text-dark: #2c3e50;
    --text-light: #5a6c7d;
    --border-light: rgba(255, 255, 255, 0.3);
    --border-gold: rgba(212, 175, 55, 0.4);

    /* Modern Shadows */
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    --card-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    --hover-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    --inner-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Body with Elegant Floral Background */
body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

/* Elegant Floral Background with Modern Effects */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background-image: url('/flowers.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Modern Glass Overlay */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 25%,
        rgba(212, 175, 55, 0.03) 50%,
        rgba(255, 255, 255, 0.05) 75%,
        rgba(255, 255, 255, 0.1) 100%
    );
    backdrop-filter: blur(1px);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

/* Modern Glass Header */
.header {
    text-align: center;
    padding: 80px 60px;
    margin-bottom: 50px;
    background: var(--glass-white);
    border-radius: 24px;
    box-shadow: var(--glass-shadow);
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Elegant Border Glow */
.header::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(45deg, 
        var(--accent-gold), 
        transparent, 
        var(--accent-gold), 
        transparent, 
        var(--accent-gold));
    border-radius: 25px;
    z-index: -1;
    opacity: 0.3;
}

/* Subtle Inner Glow */
.header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        ellipse at center,
        rgba(212, 175, 55, 0.05) 0%,
        transparent 70%
    );
    border-radius: 24px;
    z-index: 1;
    pointer-events: none;
}

.header-content {
    position: relative;
    z-index: 3;
}

.title {
    font-family: 'Great Vibes', cursive;
    font-size: 4.5rem;
    font-weight: 400;
    color: var(--primary-dark);
    margin-bottom: 30px;
    letter-spacing: 1px;
    line-height: 1.1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    color: var(--text-light);
    margin-bottom: 50px;
    font-weight: 400;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    font-style: italic;
}

.wedding-date-container {
    margin-bottom: 40px;
}

.wedding-date {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    color: var(--accent-gold);
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 25px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.date-decoration {
    display: flex;
    justify-content: center;
    gap: 20px;
    align-items: center;
}

.date-line {
    width: 50px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
    opacity: 0.8;
}

.date-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-gold);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* Countdown Timer Styles - Simple Version */
.countdown-container {
    margin: 20px 0;
}

.countdown-simple {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.countdown-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--accent-gold);
    background: rgba(255, 255, 255, 0.8);
    padding: 8px 16px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-gold);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.countdown-text:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.countdown-message {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    color: var(--text-light);
    text-align: center;
    font-style: italic;
    opacity: 0.9;
}

/* Main Content */
.main-content {
    max-width: 850px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Modern Glass Form Section */
.message-form-section {
    background: var(--glass-white);
    border-radius: 20px;
    padding: 70px 60px;
    margin-bottom: 50px;
    box-shadow: var(--glass-shadow);
    border: 1px solid var(--border-light);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

/* Subtle Pattern Overlay */
.message-form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        circle at 20% 80%,
        rgba(212, 175, 55, 0.03) 0%,
        transparent 50%
    ),
    radial-gradient(
        circle at 80% 20%,
        rgba(212, 175, 55, 0.03) 0%,
        transparent 50%
    );
    border-radius: 20px;
    z-index: 1;
    pointer-events: none;
}

.message-form-section h2 {
    font-family: 'Great Vibes', cursive;
    font-size: 3rem;
    color: var(--primary-dark);
    text-align: center;
    margin-bottom: 60px;
    font-weight: 400;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.message-form {
    max-width: 650px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

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

.form-group label {
    display: block;
    margin-bottom: 15px;
    font-weight: 500;
    color: var(--text-dark);
    font-size: 1rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 20px 25px;
    border: 1px solid var(--border-gold);
    border-radius: 12px;
    font-size: 1.1rem;
    font-family: 'Inter', sans-serif;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-dark);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15), var(--inner-shadow);
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
    line-height: 1.7;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
    opacity: 0.8;
    font-style: italic;
}

.form-group small {
    display: block;
    margin-top: 10px;
    color: var(--text-light);
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Elegant File Upload Section */
.file-upload-container {
    position: relative;
    background: rgba(255, 255, 255, 0.6);
    border: 2px dashed var(--border-gold);
    border-radius: 16px;
    padding: 60px 40px;
    text-align: center;
    cursor: pointer;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.file-upload-container:hover {
    border-color: var(--accent-gold);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: var(--hover-shadow);
    transform: translateY(-3px);
}

.file-upload-container.drag-over {
    border-color: var(--accent-gold);
    background: rgba(255, 255, 255, 0.9);
    border-style: solid;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
    transform: scale(1.02);
}

.file-upload-container input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 25px auto;
    background: linear-gradient(135deg, var(--accent-gold), var(--soft-gold));
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.upload-icon::before {
    content: '';
    position: absolute;
    width: 24px;
    height: 20px;
    background: var(--pure-white);
    border-radius: 3px;
}

.upload-icon::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--pure-white);
    border-radius: 50%;
    margin-top: -8px;
}

.upload-text {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-weight: 500;
    font-family: 'Cormorant Garamond', serif;
}

.upload-subtext {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 15px;
}

.upload-hint {
    font-size: 0.9rem;
    color: var(--text-light);
    opacity: 0.8;
    font-style: italic;
}

.selected-files {
    margin-top: 30px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    border: 1px solid var(--border-light);
    display: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.selected-files.show {
    display: block;
}

.selected-files h4 {
    margin: 0 0 20px 0;
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: 500;
    font-family: 'Montserrat', sans-serif;
}

.file-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-light);
}

.file-item:last-child {
    border-bottom: none;
}

.file-name {
    color: var(--text-dark);
    font-size: 0.95rem;
    flex: 1;
}

.file-size {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-left: 20px;
}

.remove-file {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 1.3rem;
    padding: 6px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.remove-file:hover {
    color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
}

/* Elegant Submit Button */
.submit-btn {
    width: 100%;
    padding: 22px;
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary-dark));
    color: var(--warm-white);
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: all 0.3s ease;
    min-height: 48px;
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.submit-btn:hover {
    background: linear-gradient(135deg, var(--secondary-dark), var(--primary-dark));
    transform: translateY(-3px);
    box-shadow: var(--hover-shadow);
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:active {
    transform: translateY(-1px);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Privacy Section with Glass Effect */
.private-info-section {
    background: var(--glass-white);
    border-radius: 20px;
    padding: 50px 40px;
    text-align: center;
    box-shadow: var(--glass-shadow);
    border: 1px solid var(--border-light);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.private-info h3 {
    font-family: 'Great Vibes', cursive;
    color: var(--primary-dark);
    font-size: 2.8rem;
    margin-bottom: 25px;
    font-weight: 400;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.private-info p {
    color: var(--text-light);
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 30px;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
}

.privacy-decoration {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 15px;
    align-items: center;
}

.privacy-decoration .decoration-line {
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
    opacity: 0.8;
}

.privacy-decoration .decoration-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-gold);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* Elegant Footer */
.simple-footer {
    text-align: center;
    padding: 40px 20px;
    margin-top: 50px;
}

.simple-footer p {
    color: var(--text-light);
    font-size: 1rem;
    margin: 0 0 8px 0;
    opacity: 0.8;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
}

.simple-footer p:last-child {
    margin-bottom: 0;
}

.admin-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 20px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    color: var(--accent-gold);
    text-decoration: none;
    font-size: 0.85rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.admin-btn:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--accent-gold);
    color: var(--soft-gold);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}



/* Modal with Glass Effect */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal-content {
    background: var(--glass-white);
    margin: 10% auto;
    padding: 50px;
    border-radius: 20px;
    width: 90%;
    max-width: 550px;
    box-shadow: var(--card-shadow);
    text-align: center;
    position: relative;
    border: 1px solid var(--border-light);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.modal-content .close {
    color: var(--text-light);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 25px;
    right: 25px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.modal-content .close:hover {
    color: var(--text-dark);
    background: rgba(0, 0, 0, 0.1);
}

.modal-header {
    text-align: center;
    margin-bottom: 25px;
}

.modal-title {
    font-family: 'Great Vibes', cursive;
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
    font-weight: 400;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.modal-message {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.6;
    font-family: 'Cormorant Garamond', serif;
}

/* Mobile Photo Options */
.mobile-photo-options {
    margin-bottom: 20px;
}

.photo-option-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.photo-option-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--border-gold);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    min-width: 120px;
}

.photo-option-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--accent-gold);
    transform: translateY(-2px);
    box-shadow: var(--card-shadow);
}

.option-icon {
    font-size: 2rem;
}

.option-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
    font-family: 'Montserrat', sans-serif;
}

#modalMessage {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-top: 20px;
    font-family: 'Inter', sans-serif;
}

#modalMessage.success {
    color: #28a745;
}

#modalMessage.error {
    color: #dc3545;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .header {
        padding: 40px 24px;
        margin-bottom: 24px;
        border-radius: 12px;
    }

    .title {
        font-size: 2.8rem;
        line-height: 1.2;
        margin-bottom: 16px;
    }

    .subtitle {
        font-size: 1.1rem;
        line-height: 1.5;
        margin-bottom: 32px;
    }

    .wedding-date {
        font-size: 1.1rem;
    }

    /* Countdown responsive styles for tablets */
    .countdown-text {
        font-size: 1rem;
        padding: 6px 14px;
    }

    .message-form-section {
        padding: 32px 24px;
        border-radius: 12px;
        margin-bottom: 20px;
    }

    .message-form-section h2 {
        font-size: 1.8rem;
        margin-bottom: 24px;
    }

    .private-info-section {
        padding: 32px 24px;
        border-radius: 12px;
        margin-bottom: 20px;
    }

    .private-info h3 {
        font-size: 1.7rem;
    }

    /* Form improvements for tablets */
    .form-group {
        margin-bottom: 28px;
    }

    .form-group input,
    .form-group textarea {
        padding: 16px 18px;
        font-size: 16px; /* Prevents zoom on iOS */
        border-radius: 10px;
    }

    .form-group textarea {
        min-height: 140px;
    }

    .submit-btn {
        padding: 18px;
        font-size: 1.1rem;
        border-radius: 10px;
    }

    .modal-content {
        margin: 15% auto;
        padding: 30px;
        border-radius: 12px;
        max-width: 90%;
    }
}

@media (max-width: 480px) {
    /* Simple consistent widths */
    .header,
    .message-form-section,
    .private-info-section {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }



    /* Reduce container padding for more screen space */
    .container {
        padding: 0 12px;
    }

    .header {
        padding: 32px 20px 24px 20px;
        margin-bottom: 20px;
        border-radius: 12px;
    }

    .title {
        font-size: 2.4rem;
        line-height: 1.1;
        margin-bottom: 12px;
    }

    .subtitle {
        font-size: 1rem;
        line-height: 1.4;
        margin-bottom: 24px;
    }

    .wedding-date {
        font-size: 1rem;
    }

    /* Countdown mobile styles */
    .countdown-text {
        font-size: 0.9rem;
        padding: 6px 12px;
    }

    .countdown-message {
        font-size: 1rem;
    }

    .message-form-section,
    .private-info-section {
        padding: 32px 20px;
        border-radius: 12px;
        margin-bottom: 20px;
    }

    .message-form-section h2 {
        font-size: 1.6rem;
        margin-bottom: 20px;
        text-align: center;
    }

    .private-info h3 {
        font-size: 1.5rem;
        text-align: center;
    }



    /* Enhanced form styles for mobile */
    .form-group {
        margin-bottom: 24px;
    }

    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }

    .form-group input,
    .form-group textarea {
        padding: 16px;
        font-size: 16px; /* Prevents zoom on iOS */
        border-radius: 12px;
        border: 2px solid var(--border-gray);
        transition: all 0.3s ease;
    }

    .form-group input:focus,
    .form-group textarea:focus {
        border-color: var(--accent-gold);
        box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.15);
        transform: translateY(-2px);
    }

    .form-group textarea {
        min-height: 120px;
        line-height: 1.5;
    }

    /* Enhanced submit button for mobile */
    .submit-btn {
        padding: 20px;
        font-size: 1.1rem;
        border-radius: 12px;
        font-weight: 600;
        letter-spacing: 0.3px;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }

    .submit-btn:active {
        transform: translateY(2px);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }

    /* Mobile photo option buttons for mobile screens */
    .mobile-photo-options {
        margin-bottom: 16px;
        width: 100%;
    }

    .photo-option-buttons {
        gap: 10px;
        width: 100%;
    }

    .photo-option-btn {
        padding: 18px 16px;
        min-height: 60px;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        width: 100%;
    }

    .photo-option-btn:active {
        transform: scale(0.95);
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    }

    .option-icon {
        font-size: 1.8rem;
    }

    .option-text {
        font-size: 0.95rem;
        font-weight: 600;
    }

    /* Mobile-friendly file upload */
    .file-upload-container {
        padding: 32px 16px;
        min-height: 140px;
        touch-action: manipulation;
        border-radius: 12px;
        border: 2px dashed var(--border-gray);
        transition: all 0.3s ease;
    }

    .file-upload-container:active {
        border-color: var(--accent-gold);
        background: var(--pure-white);
        transform: scale(0.98);
    }

    .file-upload-container input[type="file"] {
        z-index: 10;
    }

    .upload-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 16px;
    }

    .upload-text {
        font-size: 1.1rem;
        font-weight: 500;
        margin-bottom: 6px;
    }

    .upload-subtext {
        font-size: 0.95rem;
        margin-bottom: 8px;
    }

    .upload-hint {
        font-size: 0.85rem;
    }

    /* Enhanced file list for mobile */
    .selected-files {
        margin-top: 16px;
        padding: 16px;
        background: var(--light-gray);
        border-radius: 12px;
    }

    .selected-files h4 {
        font-size: 0.9rem;
        margin-bottom: 12px;
        color: var(--text-gray);
    }

    .file-item {
        padding: 16px 0;
        min-height: 44px; /* iOS recommended minimum touch target */
        border-bottom: 1px solid var(--medium-gray);
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .file-item:last-child {
        border-bottom: none;
    }

    .file-name {
        font-size: 0.9rem;
        font-weight: 500;
        flex: 1;
        margin-right: 8px;
        word-break: break-word;
    }

    .file-size {
        font-size: 0.8rem;
        color: var(--text-gray);
        margin-right: 12px;
    }

    .remove-file {
        min-width: 44px;
        min-height: 44px;
        font-size: 1.4rem;
        border-radius: 50%;
        background: rgba(220, 53, 69, 0.1);
        color: #dc3545;
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .remove-file:active {
        background: rgba(220, 53, 69, 0.2);
        transform: scale(0.95);
    }

    /* Enhanced modal for mobile */
    .modal-content {
        margin: 10% auto;
        padding: 24px;
        border-radius: 16px;
        max-width: 95%;
        max-height: 80vh;
        overflow-y: auto;
    }

    .modal-title {
        font-size: 1.4rem;
        margin-bottom: 16px;
    }

    #modalMessage {
        font-size: 1rem;
        line-height: 1.5;
    }

    .close {
        font-size: 2rem;
        top: 16px;
        right: 20px;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Simple footer adjustments */
    .simple-footer {
        margin-top: 24px;
        padding: 20px 16px;
    }

    .simple-footer p {
        font-size: 0.85rem;
    }
}

/* Mobile Photo Upload Options */
.mobile-photo-options {
    margin-bottom: 20px;
    width: 100%;
}

.photo-option-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    width: 100%;
}

.photo-option-btn {
    width: 100%;
    padding: 16px 20px;
    background: var(--pure-white);
    border: 2px solid var(--border-gray);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.photo-option-btn:hover {
    border-color: var(--accent-gold);
    background: var(--light-gray);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.photo-option-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.option-icon {
    font-size: 2rem;
    line-height: 1;
}

.option-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary-black);
    text-align: center;
}

/* Extra small screens (iPhone SE, etc.) */
@media (max-width: 375px) {
    /* Simple consistent widths */
    .header,
    .message-form-section,
    .private-info-section {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }



    .container {
        padding: 0 8px;
    }

    .header {
        padding: 24px 16px 20px 16px;
        margin-bottom: 16px;
    }

    .title {
        font-size: 2rem;
        margin-bottom: 8px;
    }

    .subtitle {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    .message-form-section,
    .private-info-section {
        padding: 24px 16px;
        margin-bottom: 16px;
    }

    .message-form-section h2 {
        font-size: 1.4rem;
        margin-bottom: 16px;
    }

    .private-info h3 {
        font-size: 1.3rem;
    }



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

    .form-group input,
    .form-group textarea {
        padding: 14px;
        font-size: 16px;
    }

    .file-upload-container {
        padding: 24px 12px;
        min-height: 120px;
    }

    .upload-text {
        font-size: 1rem;
    }

    .upload-subtext {
        font-size: 0.9rem;
    }

    /* Mobile photo options for small screens */
    .photo-option-buttons {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }

    .photo-option-btn {
        min-width: auto;
        padding: 14px 16px;
        flex-direction: row;
        justify-content: center;
        width: 100%;
    }

    .option-icon {
        font-size: 1.5rem;
        margin-right: 8px;
    }

    .option-text {
        font-size: 0.85rem;
    }

    .modal-content {
        margin: 5% auto;
        padding: 20px;
        max-width: 98%;
    }
}

/* Landscape orientation improvements */
@media (max-height: 500px) and (orientation: landscape) {
    .header {
        padding: 20px;
        margin-bottom: 16px;
    }

    .title {
        font-size: 1.8rem;
        margin-bottom: 8px;
    }

    .subtitle {
        font-size: 0.9rem;
        margin-bottom: 16px;
    }

    .wedding-date-container {
        margin-bottom: 20px;
    }

    .message-form-section,
    .private-info-section {
        padding: 20px;
        margin-bottom: 12px;
    }

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

    .form-group textarea {
        min-height: 80px;
    }

    .modal-content {
        margin: 2% auto;
        max-height: 95vh;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    body::before {
        background-attachment: scroll;
    }
    
    .container {
        padding: 20px 15px;
    }
    
    .header {
        padding: 50px 30px;
        margin-bottom: 30px;
    }
    
    .title {
        font-size: 3rem;
        margin-bottom: 20px;
    }
    
    .subtitle {
        font-size: 1.2rem;
        margin-bottom: 35px;
    }
    
    .wedding-date {
        font-size: 1rem;
        letter-spacing: 2px;
    }
    
    .message-form-section {
        padding: 40px 25px;
        margin-bottom: 30px;
    }
    
    .message-form-section h2 {
        font-size: 2.2rem;
        margin-bottom: 40px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 16px 20px;
        font-size: 1rem;
    }
    
    .file-upload-container {
        padding: 40px 25px;
        min-height: 150px;
    }
    
    .upload-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 20px;
    }
    
    .upload-text {
        font-size: 1.1rem;
    }
    
    .submit-btn {
        padding: 18px;
        font-size: 1rem;
    }
    
    .private-info-section {
        padding: 35px 25px;
    }
    
    .private-info h3 {
        font-size: 2.2rem;
        margin-bottom: 20px;
    }
    
    .private-info p {
        font-size: 1.1rem;
    }
    
    .modal-content {
        padding: 35px 25px;
        margin: 15% auto;
    }
    
    .modal-title {
        font-size: 2rem;
    }
    
    #mobilePhotoOptions {
        display: block !important;
    }
    
    .file-upload-container {
        display: none;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .message-form-section h2 {
        font-size: 1.8rem;
    }
    
    .wedding-date {
        font-size: 0.9rem;
        letter-spacing: 1.5px;
    }
    
    .date-line {
        width: 30px;
    }
    
    .private-info h3 {
        font-size: 1.8rem;
    }
    
    .modal-title {
        font-size: 1.8rem;
    }
}

/* Loading States */
.btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    body::before {
        background-attachment: scroll;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --glass-white: rgba(255, 255, 255, 0.98);
        --border-light: rgba(0, 0, 0, 0.3);
        --text-light: #333333;
    }
}

/* Focus indicators for keyboard navigation */
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--accent-gold);
    outline-offset: 2px;
}
