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

body {
    font-family: 'Crimson Text', serif;
    background: linear-gradient(135deg, #e8dcc6 0%, #d4c4a8 100%);
    color: #3c2414;
    overflow-x: hidden;
}

/* Main Container */
.main-container {
    position: relative;
    min-height: 100vh;
    padding: 0;
}

/* Audio Control Button */
.audio-control {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(60, 36, 20, 0.9);
    color: #f5f1eb;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 18px;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.audio-control:hover {
    background: rgba(60, 36, 20, 1);
    transform: scale(1.1);
}

.audio-control.muted {
    background: rgba(128, 128, 128, 0.9);
}

/* Typography */
.main-heading {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 600;
    color: #3c2414;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.subtitle {
    font-family: 'Crimson Text', serif;
    font-size: 1.3rem;
    color: #4a3429;
    font-weight: 400;
    margin-bottom: 2rem;
    opacity: 0.9;
    font-style: italic;
    letter-spacing: 0.02em;
}

/* Custom Button Styles */
.btn-custom {
    font-family: 'Playfair Display', serif;
    background: linear-gradient(135deg, #3c2414 0%, #2d1a0d 100%);
    color: #f5f1eb;
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(60, 36, 20, 0.3);
    text-transform: none;
    letter-spacing: 0.02em;
}

.btn-custom:hover {
    background: linear-gradient(135deg, #2d1a0d 0%, #3c2414 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(60, 36, 20, 0.4);
    color: #f5f1eb;
}

.btn-custom:active {
    transform: translateY(0);
    box-shadow: 0 6px 20px rgba(60, 36, 20, 0.3);
}

.btn-custom.btn-outline {
    background: transparent;
    border: 2px solid #3c2414;
    color: #3c2414;
}

.btn-custom.btn-outline:hover {
    background: #3c2414;
    color: #f5f1eb;
    border-color: #3c2414;
}

/* Email Form Styles */
.email-form-container {
    background: rgba(250, 247, 242, 0.9);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(232, 220, 198, 0.3);
    max-width: 500px;
    margin: 0 auto;
    animation: slideIn 0.5s ease-out;
}

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

.email-input {
    font-family: 'Crimson Text', serif;
    border: 2px solid #d4c4a8;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(250, 247, 242, 0.8);
    color: #3c2414;
    letter-spacing: 0.01em;
}

.email-input:focus {
    border-color: #3c2414;
    box-shadow: 0 0 0 0.2rem rgba(60, 36, 20, 0.25);
    background: #faf7f2;
}

.btn-submit {
    background: linear-gradient(135deg, #3c2414 0%, #2d1a0d 100%);
    padding: 12px 30px;
    font-size: 1rem;
}

.form-label {
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    color: #3c2414;
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}

/* Flash Messages */
.flash-messages {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1050;
    width: 90%;
    max-width: 600px;
}

.alert {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    font-weight: 500;
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-heading {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .btn-custom {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    .email-form-container {
        padding: 1.5rem;
        margin: 0 1rem;
    }
}

@media (max-width: 480px) {
    .main-heading {
        font-size: 2rem;
    }
    
    .audio-control {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .btn-custom {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
}

/* Animation for form elements */
.email-form input,
.email-form button {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(232, 220, 198, 0.5);
}

::-webkit-scrollbar-thumb {
    background: rgba(60, 36, 20, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(60, 36, 20, 0.5);
}
