@font-face {
    font-family: 'Magazine';
    src: url('../assets/fonts/magazine.otf') format('opentype');
}

.contact-section {
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
    margin-top: calc(4rem + 1.5rem); /* Account for header height */
    background-color: #f8f9fa;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section-title {
    font-family: 'Magazine', serif;
    font-size: 3rem;
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-description {
    font-family: 'Magazine', serif;
    text-align: center;
    color: #666;
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.contact-form {
    background: #fff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    max-width: 600px;
}

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

.form-group label {
    display: block;
    font-family: 'Magazine', serif;
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Magazine', serif;
    background: #fff;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-group.error input,
.form-group.error textarea {
    border-color: #ff4444;
}

.error-message {
    color: #ff4444;
    font-size: 0.9rem;
    margin-top: 0.3rem;
    font-family: 'Magazine', serif;
}

.submit-button {
    background: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 25px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    font-family: 'Magazine', serif;
    width: 100%;
    margin-top: 1rem;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal-content {
    background: #fff;
    padding: 2rem;
    border-radius: 15px;
    position: relative;
    margin: 15% auto;
    width: 90%;
    max-width: 500px;
}

.close-modal {
    position: absolute;
    right: 1rem;
    top: 0.5rem;
    font-size: 2rem;
    cursor: pointer;
    color: #666;
}

.success-message {
    text-align: center;
}

.success-message i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.success-message h2 {
    font-family: 'Magazine', serif;
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.success-message p {
    font-family: 'Magazine', serif;
    color: #666;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.modal-button {
    background: var(--primary-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.3s;
    font-family: 'Magazine', serif;
}

.modal-button:hover {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .contact-section {
        padding: 1rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }

    .section-description {
        font-size: 1.2rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 20% auto;
        padding: 1.5rem;
    }
}