/* 
 * FKK Point Bruchsal - Contact Page Styles
 * Extends the main styles with contact-specific styling
 */

/* Contact Hero Section */
.contact-hero {
    height: 50vh;
    min-height: 400px;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../img/contact-hero.jpg') center/cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    margin-top: 80px; /* Accounts for fixed header */
}

.contact-hero-content {
    text-align: center;
    z-index: 2;
    max-width: 900px;
    padding: 0 30px;
}

.contact-hero h1 {
    font-size: 3.5rem;
    text-shadow: 0 3px 10px rgba(0,0,0,0.5);
    margin-bottom: 1rem;
    color: var(--white);
}

.contact-hero p {
    font-size: 1.5rem;
    color: var(--light-gold);
    max-width: 800px;
    margin: 0 auto;
}

/* Background circles for contact hero */
.contact-hero::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background-color: var(--primary-red);
    border-radius: 50%;
    opacity: 0.1;
    top: -100px;
    left: -100px;
    z-index: 1;
}

.contact-hero::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background-color: var(--gold);
    border-radius: 50%;
    opacity: 0.1;
    bottom: -100px;
    right: -50px;
    z-index: 1;
}

/* Contact Form Section */
.contact-form-section {
    background-color: var(--white);
    color: var(--black);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

/* Background circles for contact form */
.contact-form-section::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background-color: rgba(209, 10, 16, 0.05);
    border-radius: 50%;
    top: -200px;
    right: -200px;
    z-index: 1;
}

.contact-form-section::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background-color: rgba(212, 175, 55, 0.05);
    border-radius: 50%;
    bottom: -150px;
    left: -100px;
    z-index: 1;
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

/* Contact Info */
.contact-info {
    position: relative;
}

.contact-info h2,
.contact-form h2 {
    text-align: left;
}

.contact-info h2::after,
.contact-form h2::after {
    left: 0;
    transform: none;
}

.contact-details {
    margin-top: 40px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-red), var(--secondary-red));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    color: var(--white);
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.contact-text h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--primary-red);
}

.contact-text p,
.contact-text a {
    color: var(--gray);
    text-decoration: none;
    transition: all 0.3s ease;
    line-height: 1.5;
}

.contact-text a:hover {
    color: var(--primary-red);
}

/* Contact Form */
.contact-form {
    position: relative;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--gray);
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 10px rgba(209, 10, 16, 0.2);
    outline: none;
}

textarea {
    min-height: 150px;
    resize: vertical;
}

.checkbox-container {
    display: flex;
    align-items: center;
    font-weight: normal;
    color: var(--gray);
}

.checkbox-container input[type="checkbox"] {
    margin-right: 10px;
}

.submit-btn {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, var(--primary-red), var(--secondary-red));
    color: var(--white);
    text-decoration: none;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 600;
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.submit-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    background: linear-gradient(135deg, var(--secondary-red), var(--primary-red));
}

/* Contact Map */
.contact-map {
    position: relative;
    z-index: 2;
}

.contact-map h2 {
    margin-bottom: 30px;
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.map-container iframe {
    display: block;
}

/* Contact FAQ Section */
.contact-faq {
    background-color: var(--black);
    color: var(--white);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

/* Background circles for contact FAQ */
.contact-faq::before {
    content: '';
    position: absolute;
    width: 350px;
    height: 350px;
    background-color: rgba(209, 10, 16, 0.1);
    border-radius: 50%;
    top: -175px;
    left: -175px;
    z-index: 1;
}

.contact-faq::after {
    content: '';
    position: absolute;
    width: 250px;
    height: 250px;
    background-color: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    bottom: -125px;
    right: -125px;
    z-index: 1;
}

/* FAQ Accordion */
.faq-accordion {
    margin-top: 40px;
    position: relative;
    z-index: 2;
}

.card {
    margin-bottom: 15px;
    border: none;
    border-radius: 10px;
    overflow: hidden;
    background-color: rgba(255,255,255,0.05);
}

.card-header {
    padding: 0;
    background-color: rgba(255,255,255,0.05);
    border-bottom: none;
}

.card-header .btn-link {
    display: block;
    width: 100%;
    text-align: left;
    padding: 15px 20px;
    color: var(--white);
    font-weight: 600;
    text-decoration: none;
    position: relative;
}

.card-header .btn-link::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.card-header .btn-link[aria-expanded="true"]::after {
    content: '−';
}

.card-body {
    padding: 20px;
    background-color: rgba(0,0,0,0.5);
    color: var(--light-gray);
    line-height: 1.6;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.collapse {
    display: none;
}

.collapse.show {
    display: block;
}

/* Form Success and Error Messages */
.form-success-message,
.form-error-message {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.form-success-message {
    background-color: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.2);
    color: #28a745;
}

.form-error-message {
    background-color: rgba(209, 10, 16, 0.1);
    border: 1px solid rgba(209, 10, 16, 0.2);
    color: var(--primary-red);
}

.message-icon {
    margin-right: 10px;
    font-size: 1.2rem;
}

/* Loading state */
.loading {
    text-align: center;
    padding: 30px 0;
}

.loading::after {
    content: "";
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 3px solid rgba(209, 10, 16, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-red);
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Form validation states */
input.error,
textarea.error,
select.error {
    border-color: var(--primary-red);
}

.error-message {
    color: var(--primary-red);
    font-size: 0.85rem;
    margin-top: 5px;
}

/* Responsive styles */
@media (max-width: 1200px) {
    .contact-form-section,
    .contact-faq {
        padding: 80px 0;
    }
}

@media (max-width: 992px) {
    .contact-hero h1 {
        font-size: 3rem;
    }
    
    .contact-hero p {
        font-size: 1.3rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-form-section,
    .contact-faq {
        padding: 60px 0;
    }
    
    .contact-map {
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .contact-hero {
        min-height: 300px;
    }
    
    .contact-hero h1 {
        font-size: 2.5rem;
    }
    
    .contact-hero p {
        font-size: 1.1rem;
    }
    
    .contact-form-section,
    .contact-faq {
        padding: 50px 0;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .contact-text h4 {
        font-size: 1.1rem;
    }
    
    .card-header .btn-link {
        font-size: 1rem;
        padding: 12px 15px;
    }
}

@media (max-width: 576px) {
    .contact-hero h1 {
        font-size: 2rem;
    }
    
    .contact-item {
        flex-direction: column;
    }
    
    .contact-icon {
        margin-bottom: 10px;
    }
    
    .submit-btn {
        width: 100%;
    }
    
    .map-container iframe {
        height: 300px;
    }
}