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

/* Responsive base styles */
html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #fdf9f5 0%, #f9f3ee 30%, #f6eff0 60%, #f4ebe8 100%);
    min-height: 100vh;
    padding: 0;
    margin: 0;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    width: 100%;
    overflow-x: hidden;
}

html {
    width: 100%;
    /* iOS Safari fix */
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

/* Floating Leaves Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath fill='%23E8B4B8' fill-opacity='0.1' d='M50 0C60 20 80 30 100 50C80 70 60 80 50 100C40 80 20 70 0 50C20 30 40 20 50 0Z'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath fill='%23A8C882' fill-opacity='0.08' d='M50 0C60 20 80 30 100 50C80 70 60 80 50 100C40 80 20 70 0 50C20 30 40 20 50 0Z'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath fill='%239BBF5A' fill-opacity='0.06' d='M50 0C60 20 80 30 100 50C80 70 60 80 50 100C40 80 20 70 0 50C20 30 40 20 50 0Z'/%3E%3C/svg%3E");
    background-size: 150px 150px, 200px 200px, 100px 100px;
    background-position: 
        10% 20%, 
        80% 60%, 
        50% 80%;
    animation: floatingLeaves 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes floatingLeaves {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(5deg); }
    50% { transform: translateY(-10px) rotate(-3deg); }
    75% { transform: translateY(-15px) rotate(2deg); }
}

/* Additional floating elements */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(232, 180, 184, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(168, 200, 130, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(155, 191, 90, 0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.container {
    width: 100%;
    min-height: 100vh;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    border-radius: 20px;
    box-sizing: border-box;
    overflow-x: hidden;
    max-width: 1200px;
    z-index: 2;
}

/* Mobile container override */
@media screen and (max-width: 768px) {
    .container {
        max-width: 100%;
        padding: 15px 5px;
        border-radius: 15px;
        margin: 10px;
    }
}

@media screen and (max-width: 480px) {
    .container {
        padding: 10px 3px;
        border-radius: 12px;
        margin: 5px;
    }
}

@media screen and (max-width: 375px) {
    .container {
        padding: 8px 2px;
        border-radius: 10px;
        margin: 3px;
    }
}

/* Main Content */
.main-content {
    text-align: center;
    padding: 60px 0 40px;
    position: relative;
    z-index: 5;
    width: 100%;
}

/* Decorative corner elements */
.main-content::before,
.main-content::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath fill='%23E8B4B8' fill-opacity='0.3' d='M0 0L100 0L100 100L0 100Z'/%3E%3Cpath fill='%23FFFFFF' d='M20 20L80 20L80 80L20 80Z'/%3E%3Cpath fill='%23E8B4B8' d='M30 30L70 30L70 70L30 70Z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.6;
    animation: cornerFloat 6s ease-in-out infinite;
}

.main-content::before {
    top: 20px;
    left: 20px;
    animation-delay: 0s;
}

.main-content::after {
    bottom: 20px;
    right: 20px;
    animation-delay: 3s;
}

@keyframes cornerFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

.names-section {
    margin-bottom: 60px;
    position: relative;
    padding: 30px;
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
    backdrop-filter: blur(15px);
    border: 2px solid rgba(232, 197, 209, 0.3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Decorative border pattern */
.names-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        #E8B4B8 20%, 
        #A8C882 40%, 
        #9BBF5A 60%, 
        #E8B4B8 80%, 
        transparent 100%);
    animation: borderFlow 4s linear infinite;
}

@keyframes borderFlow {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Leaf decorations around names */
.names-section::after {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath fill='%23A8C882' fill-opacity='0.4' d='M50 0C60 20 80 30 100 50C80 70 60 80 50 100C40 80 20 70 0 50C20 30 40 20 50 0Z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    animation: leafSpin 8s linear infinite;
}

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

.bride-groom {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(3rem, 8vw, 4.5rem);
    font-weight: 600;
    color: #A67C8A;
    margin: 10px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.15);
    position: relative;
    animation: nameGlow 3s ease-in-out infinite alternate;
}

@keyframes nameGlow {
    0% { text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.15), 0 0 20px rgba(166, 124, 138, 0.3); }
    100% { text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.15), 0 0 30px rgba(166, 124, 138, 0.5); }
}

.bride-groom::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #E8B4B8, transparent);
    opacity: 0.6;
    animation: underlinePulse 2s ease-in-out infinite;
}

@keyframes underlinePulse {
    0%, 100% { opacity: 0.6; transform: translateX(-50%) scaleX(1); }
    50% { opacity: 1; transform: translateX(-50%) scaleX(1.1); }
}

.ampersand {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(2rem, 6vw, 3rem);
    color: #9BBF5A;
    margin: 20px 0;
    font-weight: 500;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
    animation: ampersandFloat 4s ease-in-out infinite;
}

@keyframes ampersandFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(2deg); }
}

/* Memory section enhancement */
.memory-section {
    position: relative;
    padding: 20px;
}

.memory-title {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    color: #8B4B6B;
    margin-bottom: 15px;
    font-weight: 600;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
}

.memory-title::before {
    content: '🌸';
    position: absolute;
    left: -30px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    animation: flowerSpin 6s linear infinite;
}

.memory-title::after {
    content: '🌸';
    position: absolute;
    right: -30px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    animation: flowerSpin 6s linear infinite reverse;
}

@keyframes flowerSpin {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}

.memory-subtitle {
    font-size: clamp(1rem, 3vw, 1.2rem);
    color: #6B5B73;
    margin-bottom: 30px;
    font-weight: 400;
    opacity: 0.8;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    position: relative;
}

/* Decorative background for buttons */
.action-buttons::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: radial-gradient(ellipse at center, rgba(232, 180, 184, 0.1) 0%, transparent 70%);
    border-radius: 40px;
    z-index: -1;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 40px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    min-width: 240px;
    max-width: 100%;
    position: relative;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    overflow: hidden;
}

/* Button shine effect */
.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

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

.photo-btn {
    background: linear-gradient(135deg, #E8B4B8, #F4C2C2);
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(232, 180, 184, 0.3);
}

.photo-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(232, 180, 184, 0.4);
    border-color: rgba(232, 180, 184, 0.6);
}

.audio-btn {
    background: linear-gradient(135deg, #A8C882, #B5D48A);
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(168, 200, 130, 0.3);
}

.audio-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(168, 200, 130, 0.4);
    border-color: rgba(168, 200, 130, 0.6);
}

.action-btn i {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.action-btn:hover i {
    transform: scale(1.1);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(139, 75, 107, 0.3));
    backdrop-filter: blur(10px);
    animation: modalFadeIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow-y: auto;
}

@keyframes modalFadeIn {
    from { 
        opacity: 0; 
        transform: scale(0.9) translateY(-20px);
    }
    to { 
        opacity: 1; 
        transform: scale(1) translateY(0);
    }
}

/* Modal entrance animation */
.modal.show {
    animation: modalSlideIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
    margin: 8% auto;
    padding: 25px;
    border-radius: 25px;
    width: 90%;
    max-width: 400px;
    position: relative;
    animation: slideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    max-height: 70vh;
    overflow-y: auto;
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

/* Decorative corner elements for modal */
.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, 
        #E8B4B8 0%, 
        #A8C882 25%, 
        #9BBF5A 50%, 
        #A8C882 75%, 
        #E8B4B8 100%);
    animation: borderFlow 3s linear infinite;
}

.modal-content::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 60px;
    height: 60px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath fill='%23A8C882' fill-opacity='0.3' d='M50 0C60 20 80 30 100 50C80 70 60 80 50 100C40 80 20 70 0 50C20 30 40 20 50 0Z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    animation: leafSpin 6s linear infinite;
}

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

.close {
    color: #8B4B6B;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    position: absolute;
    top: 15px;
    right: 20px;
    z-index: 10;
}

.close:hover {
    color: #E8B4B8;
}

.modal-content h3 {
    font-family: 'Dancing Script', cursive;
    font-size: 2rem;
    color: #6B5B73;
    text-align: center;
    margin-bottom: 20px;
    margin-top: 5px;
}

/* Photo Upload Container */
.photo-upload-container {
    margin-bottom: 20px;
}

/* Upload Area */
.upload-area {
    border: 3px dashed #E8B4B8;
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: linear-gradient(135deg, rgba(232, 180, 184, 0.05), rgba(232, 180, 184, 0.1));
    margin-bottom: 15px;
    position: relative;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 8px 25px rgba(232, 180, 184, 0.1);
    overflow: hidden;
}

/* Upload area decorative elements */
.upload-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(232, 180, 184, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.upload-area:hover::before {
    opacity: 1;
}

.upload-area::after {
    content: '🍃';
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    opacity: 0.3;
    animation: leafFloat 4s ease-in-out infinite;
}

@keyframes leafFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-5px) rotate(5deg); }
}

/* Hide file input but keep it accessible */
#photoInput {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.upload-area:hover {
    border-color: #A8C882;
    background: rgba(168, 200, 130, 0.05);
    transform: translateY(-2px);
}

.upload-area i {
    font-size: 2.5rem;
    color: #E8B4B8;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.upload-area:hover i {
    color: #A8C882;
}

.upload-area p {
    color: #8B7B8B;
    font-size: 0.9rem;
    margin: 0 0 6px 0;
    font-weight: 500;
}

/* Photo Counter */
.photo-counter {
    text-align: center;
    margin-bottom: 15px;
    padding: 8px;
    background: rgba(155, 191, 90, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(155, 191, 90, 0.2);
}

.photo-counter span {
    font-weight: 600;
    color: #9BBF5A;
    font-size: 1rem;
}

/* Photo Preview Container */
.photo-preview-container {
    background: rgba(255, 255, 255, 0.6);
    padding: 15px;
    border-radius: 15px;
    border: 1px solid rgba(221, 181, 199, 0.2);
    margin-bottom: 15px;
}

.photo-preview-container h4 {
    color: #A67C8A;
    margin-bottom: 12px;
    font-size: 1rem;
    font-weight: 600;
}

/* Photo Preview Grid */
.photo-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 8px;
    margin-bottom: 12px;
    max-height: 150px;
    padding: 5px;
    overflow-y: auto;
}

.photo-preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
    border: 2px solid rgba(221, 181, 199, 0.3);
    transition: all 0.3s ease;
}

.photo-preview-item:hover {
    border-color: #E8C5D1;
    transform: scale(1.05);
}

.photo-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-remove-btn {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #E8B4B8, #F4C2C2);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 0.7rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.photo-remove-btn:hover {
    background: linear-gradient(135deg, #D49BA0, #E8B4B8);
    transform: scale(1.1);
}

/* Clear Photos Button */
.clear-photos-btn {
    background: linear-gradient(135deg, #E8B4B8, #F4C2C2);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 auto;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(232, 180, 184, 0.3);
}

.clear-photos-btn:hover {
    background: linear-gradient(135deg, #D49BA0, #E8B4B8);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(232, 180, 184, 0.4);
}

.clear-photos-btn i {
    font-size: 0.7rem;
}

/* Recording Area */
.recording-area {
    text-align: center;
    margin-bottom: 25px;
}

.record-btn {
    background: linear-gradient(135deg, #A8C882, #B5D48A);
    border: 2px solid rgba(168, 200, 130, 0.3);
    border-radius: 50px;
    padding: 20px 30px;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 auto 20px;
    box-shadow: 0 8px 20px rgba(168, 200, 130, 0.3);
    position: relative;
    overflow: hidden;
}

/* Record button shine effect */
.record-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

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

.record-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(168, 200, 130, 0.4);
}

.record-btn.recording {
    background: linear-gradient(135deg, #E8B4B8, #F4C2C2);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.recording-status {
    display: none;
    margin-top: 15px;
}

.recording-time {
    font-size: 1.2rem;
    color: #8B4B6B;
    font-weight: 600;
    font-family: monospace;
    margin-bottom: 10px;
}

/* Progress Bar Styles */
.recording-progress {
    width: 100%;
    height: 8px;
    background: rgba(139, 75, 107, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 10px;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: #4caf50;
    border-radius: 4px;
    transition: width 0.1s ease, background 0.3s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #6B5B73, #8B4B6B);
    color: white;
    border: 2px solid rgba(107, 91, 115, 0.3);
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 20px rgba(107, 91, 115, 0.3);
    position: sticky;
    bottom: 0;
    z-index: 5;
    position: relative;
    overflow: hidden;
}

/* Submit button shine effect */
.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.submit-btn:hover:not(:disabled)::before {
    left: 100%;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(107, 91, 115, 0.4);
}

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

/* Mobile Responsiveness */
@media screen and (max-width: 768px) {
    .modal-content {
        margin: 3% auto;
        padding: 20px 15px;
        width: 95%;
        max-height: 85vh;
    }
    
    .modal-content h3 {
        font-size: 1.6rem;
        margin-bottom: 15px;
    }
    
    .close {
        top: 8px;
        right: 12px;
        font-size: 22px;
    }
    
    .submit-btn {
        position: sticky;
        bottom: 0;
        z-index: 10;
    }
}

@media screen and (max-width: 480px) {
    .modal-content {
        margin: 1% auto;
        padding: 15px 12px;
        width: 98%;
        max-height: 90vh;
    }
    
    .modal-content h3 {
        font-size: 1.4rem;
        margin-bottom: 12px;
    }
    
    .close {
        top: 5px;
        right: 8px;
        font-size: 20px;
    }
    
    .upload-area {
        padding: 15px 10px;
        min-height: 70px;
    }
    
    .photo-preview-grid {
        grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
        gap: 5px;
        max-height: 100px;
    }
    
    .submit-btn {
        position: sticky;
        bottom: 0;
        z-index: 10;
        padding: 10px;
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 375px) {
    .modal-content {
        width: 100%;
        height: 100vh;
        margin: 0;
        border-radius: 0;
        padding: 12px;
        max-height: 100vh;
    }
    
    .modal-content h3 {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }
    
    .close {
        top: 3px;
        right: 5px;
        font-size: 18px;
    }
    
    .upload-area {
        padding: 12px 8px;
        min-height: 60px;
    }
    
    .photo-preview-grid {
        grid-template-columns: repeat(auto-fill, minmax(45px, 1fr));
        gap: 4px;
        max-height: 80px;
    }
    
    .submit-btn {
        position: sticky;
        bottom: 0;
        z-index: 10;
        padding: 8px;
        font-size: 0.85rem;
    }
}

/* Animation for page load */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.container {
    animation: slideUp 0.8s ease-out;
}

.names-section {
    animation: slideUp 1s ease-out 0.2s both;
}

/* Success Message Styles */
.success-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    padding: 15px 20px;
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.3);
    z-index: 10000;
    transform: translateX(400px);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.success-message.show {
    transform: translateX(0);
}

.success-content {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.success-content i {
    font-size: 1.2rem;
    animation: successPulse 2s ease-in-out infinite;
}

@keyframes successPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Mobile responsive for success message */
@media screen and (max-width: 768px) {
    .success-message {
        top: 15px;
        right: 15px;
        left: 15px;
        max-width: none;
        transform: translateY(-100px);
    }
    
    .success-message.show {
        transform: translateY(0);
    }
    
    .success-content {
        padding: 14px 18px;
        font-size: 13px;
    }
    
    .success-content i {
        font-size: 18px;
    }
}

@media screen and (max-width: 480px) {
    .success-message {
        top: 10px;
        right: 10px;
        left: 10px;
    }
    
    .success-content {
        padding: 12px 16px;
        font-size: 12px;
    }
} 