/* 
* Coiffeure Vanity - Kontakt-Seite Stile
* Enthält alle spezifischen Stile für die Kontakt-Seite
*/

/* Banner-Bereich */
.page-banner {
    padding-top: 180px;
    padding-bottom: 80px;
    background-color: #4A266A;
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
}

.banner-content h1 {
    color: white;
    margin-bottom: 15px;
    font-weight: 700;
}

.banner-content p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.9);
}

/* Kontaktinformationen und Formular */
.contact-info-section {
    padding: 100px 0;
    background-color: var(--light-color);
    position: relative;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.section-header.left-align {
    text-align: left;
}

.section-header.left-align h2::after {
    left: 0;
    transform: none;
}

.info-blocks {
    margin-top: 40px;
}

.info-block {
    display: flex;
    margin-bottom: 35px;
    transition: all 0.3s ease;
    align-items: flex-start;
}

.info-block:hover .icon {
    transform: translateY(-5px);
    color: var(--primary-color);
    background-color: white;
}

.info-block .icon {
    position: relative;
    color: var(--primary-dark);
    margin-right: 20px;
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.info-block .icon i {
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    line-height: 1;
    font-size: 1.3rem;
}

.info-content h3 {
    margin-bottom: 12px;
    font-size: 1.3rem;
    color: var(--dark-color);
}

.info-content p {
    margin-bottom: 5px;
    line-height: 1.6;
    color: var(--text-color);
}

.info-content p.small {
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.8;
}

.opening-hours-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 10px 25px;
    align-items: center;
    margin-top: 30px;
    padding: 30px;
    background-color: white;
    border-radius: 15px;
    box-shadow: var(--box-shadow);
    position: relative;
    border-left: 4px solid var(--primary-color);
}

.opening-hours-grid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(138, 43, 226, 0.03), transparent);
    border-radius: 0 15px 15px 0;
    pointer-events: none;
}

.opening-hours-title {
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--primary-dark);
    font-size: 1.3rem;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
    grid-column: span 2;
}

.opening-hours-title i {
    color: var(--primary-color);
    margin-right: 8px;
    font-size: 1.2rem;
}

.opening-hours-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-light), var(--primary-color));
    border-radius: 3px;
}

.opening-hours-grid .day {
    font-weight: 600;
    color: var(--primary-color);
    position: relative;
    padding-left: 5px;
}

.opening-hours-grid .day::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: rgba(138, 43, 226, 0.1);
}

/* Stil für die Öffnungszeiten (rechte Spalte) */
.opening-hours-grid div:nth-child(even):not(.day):not(.opening-hours-title) {
    font-weight: 500;
    transition: all 0.3s ease;
}

/* Stil für geschlossene Tage (Dienstag und Sonntag) */
.opening-hours-grid div:nth-child(3),
.opening-hours-grid div:nth-child(15) {
    color: #e74c3c;
    font-weight: 600;
}

.contact-social {
    margin-top: 50px;
}

.contact-social h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.contact-social .social-links {
    display: flex;
    gap: 15px;
}

.contact-social .social-links a {
    position: relative;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--box-shadow);
}

.contact-social .social-links a i {
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    line-height: 1;
    font-size: 1.3rem;
}

.contact-social .social-links a:hover {
    transform: translateY(-5px) rotate(5deg);
    box-shadow: var(--box-shadow-hover);
}

/* Formular-Stile */
.contact-form-container {
    background-color: white;
    padding: 50px 40px;
    border-radius: 15px;
    box-shadow: var(--box-shadow);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.contact-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-light), var(--primary-color));
    z-index: 2;
}

.form-header {
    margin-bottom: 35px;
    text-align: center;
}

.form-header h2 {
    margin-bottom: 15px;
    color: var(--dark-color);
    font-weight: 700;
}

.contact-form .form-group {
    margin-bottom: 25px;
}

.contact-form label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--secondary-color);
    font-size: 0.95rem;
}

.contact-form .required {
    color: #e74c3c;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-family: var(--body-font);
    font-size: 1rem;
    color: var(--text-color);
    transition: all 0.3s ease;
    background-color: rgba(245, 243, 248, 0.5);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(153, 50, 204, 0.15);
    background-color: white;
}

.contact-form textarea {
    resize: vertical;
    min-height: 140px;
}

.form-submit {
    margin-top: 35px;
    text-align: center;
}

.form-submit button {
    padding: 14px 40px;
    font-size: 1rem;
    letter-spacing: 1px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    box-shadow: 0 4px 12px rgba(122, 44, 191, 0.2);
    transition: all 0.4s ease;
}

.form-submit button:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(122, 44, 191, 0.3);
}

/* Formular-Validierung */
.contact-form input:invalid,
.contact-form select:invalid,
.contact-form textarea:invalid {
    border-color: var(--border-color);
    box-shadow: none;
}

.contact-form input:focus:invalid,
.contact-form select:focus:invalid,
.contact-form textarea:focus:invalid {
    border-color: #e74c3c;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.2);
}

/* Map-Bereich */
.map-section {
    padding: 80px 0;
    background-color: white;
}

.map-container {
    margin-top: 40px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

/* FAQ-Bereich */
.contact-faq {
    padding: 100px 0;
    background-color: var(--light-color);
}

.faq-grid {
    max-width: 900px;
    margin: 0 auto;
    margin-top: 50px;
}

.faq-item {
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    background-color: white;
}

.faq-question {
    padding: 20px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background-color: rgba(138, 43, 226, 0.05);
}

.faq-question h3 {
    margin-bottom: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.toggle-icon {
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.faq-item.active .toggle-icon {
    transform: rotate(45deg);
}

.faq-answer {
    background-color: white;
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 30px 20px;
    max-height: 500px;
}

.faq-answer p {
    margin-bottom: 0;
    line-height: 1.8;
}

/* Formular-Erfolgs-/Fehlermeldung */
.form-message {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    display: none;
    position: relative;
    padding-left: 45px;
    animation: fadeIn 0.5s ease;
}

.form-message.success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.form-message.error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.form-message::before {
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
}

.form-message.success::before {
    content: '\f00c'; /* check icon */
    color: #155724;
}

.form-message.error::before {
    content: '\f06a'; /* exclamation icon */
    color: #721c24;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Ladeindikator für Formular */
.btn-primary .fa-spinner {
    margin-left: 8px;
    animation: spin 1s infinite linear;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Stile für ungültige Formularfelder */
.contact-form input.invalid,
.contact-form select.invalid,
.contact-form textarea.invalid {
    border-color: #e74c3c;
    background-color: rgba(231, 76, 60, 0.05);
}

.contact-form input.invalid:focus,
.contact-form select.invalid:focus,
.contact-form textarea.invalid:focus {
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.2);
}

/* Responsive Anpassungen */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-info {
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .page-banner {
        padding-top: 150px;
        padding-bottom: 60px;
    }
    
    .contact-info-section {
        padding: 70px 0;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-form-container {
        padding: 30px 20px;
    }
    
    .map-section,
    .contact-faq {
        padding: 70px 0;
    }
    
    .info-block .icon {
        width: 50px;
        height: 50px;
        margin-right: 15px;
    }
    
    .info-block .icon i {
        font-size: 1.2rem;
    }
    
    .opening-hours-grid {
        padding: 25px 20px;
        gap: 8px 15px;
        margin-top: 25px;
    }
    
    .opening-hours-title {
        font-size: 1.2rem;
        padding-bottom: 12px;
        margin-bottom: 15px;
    }
}

@media (max-width: 576px) {
    .info-block {
        flex-direction: row;
        align-items: flex-start;
    }
    
    .info-block .icon {
        margin-bottom: 0;
        margin-right: 15px;
        width: 45px;
        height: 45px;
    }
    
    .contact-form input,
    .contact-form select,
    .contact-form textarea {
        padding: 10px 12px;
    }
    
    .faq-question {
        padding: 15px 20px;
    }
    
    .faq-item.active .faq-answer {
        padding: 0 20px 15px;
    }
    
    .opening-hours-grid {
        padding: 25px 20px;
        gap: 8px 15px;
    }
    
    .opening-hours-title {
        font-size: 1.2rem;
    }
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-top: 15px;
}

.checkbox-group input {
    width: auto;
    margin-right: 12px;
    margin-top: 5px;
    accent-color: var(--primary-color);
}

.checkbox-group label {
    font-weight: 400;
    margin-bottom: 0;
    line-height: 1.5;
}

.checkbox-group a {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 500;
    transition: all 0.3s ease;
}

.checkbox-group a:hover {
    color: var(--primary-dark);
}

/* Anpassungen für Datums- und Zeitfelder */
input[name="date"], 
input[name="time"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

input[name="date"]:focus, 
input[name="time"]:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(138, 43, 226, 0.1);
    outline: none;
}

input[name="date"]::placeholder, 
input[name="time"]::placeholder {
    color: #aaa;
    font-style: italic;
}

.form-group .date-hint,
.form-group .time-hint {
    display: block;
    font-size: 0.75rem;
    color: #666;
    margin-top: 2px;
    margin-bottom: 10px;
} 