/* 
* Contact Page Stylesheet for Yemen Union in Turkey - Kayseri Branch Website
* Author: Cascade
* Date: May 2025
*/

/* ===== CONTACT SECTION ===== */
.contact-section {
    padding: 60px 0;
    background-color: var(--white);
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 30px;
}

.contact-info {
    flex: 1;
    min-width: 300px;
    background-color: var(--gray-light);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-md);
}

.contact-info h3 {
    color: var(--primary);
    margin-bottom: 25px;
    font-size: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

.contact-info h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary);
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    transition: transform var(--transition-normal);
}

.info-item:hover {
    transform: translateY(-5px);
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-left: 15px;
    width: 40px;
    height: 40px;
    background-color: rgba(206, 17, 38, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-item h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--gray-dark);
}

.info-item p {
    color: var(--text-light);
    line-height: 1.5;
}

.social-media-contact {
    margin-top: 30px;
}

.social-media-contact h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--gray-dark);
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.social-icon:hover {
    background-color: var(--red-dark);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

/* ===== CONTACT FORM ===== */
.contact-form {
    flex: 1.5;
    min-width: 300px;
    background-color: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-medium);
}

.contact-form h3 {
    color: var(--primary);
    margin-bottom: 25px;
    font-size: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

.contact-form h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--gray-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--gray-medium);
    border-radius: var(--radius-md);
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    transition: all var(--transition-fast);
    background-color: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(206, 17, 38, 0.2);
    outline: none;
}

/* Add touch feedback for mobile */
.form-group input:active,
.form-group select:active,
.form-group textarea:active {
    background-color: rgba(206, 17, 38, 0.05);
}

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

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23333' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 15px center;
    padding-left: 35px;
}

.modern-btn {
    display: inline-block;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    padding: 14px 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-align: center;
    box-shadow: 0 4px 15px rgba(206, 17, 38, 0.3);
}

.modern-btn::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0%;
    height: 100%;
    background-color: var(--red-dark);
    transition: all 0.4s cubic-bezier(0.42, 0, 0.58, 1);
    z-index: -1;
}

.modern-btn:hover {
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(206, 17, 38, 0.4);
}

.modern-btn:hover::before {
    right: auto;
    left: 0;
    width: 100%;
}

.modern-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(206, 17, 38, 0.3);
}

.modern-btn i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.modern-btn:hover i {
    transform: translateX(-5px);
}

/* Form feedback messages */
.form-message {
    padding: 15px;
    margin: 20px 0;
    border-radius: var(--radius-md);
    display: none;
}

.form-message.success {
    background-color: rgba(46, 204, 113, 0.1);
    border: 1px solid #2ecc71;
    color: #27ae60;
}

.form-message.error {
    background-color: rgba(231, 76, 60, 0.1);
    border: 1px solid #e74c3c;
    color: #c0392b;
}

/* ===== MAP SECTION ===== */
.map-section {
    padding: 50px 0;
    background-color: var(--gray-light);
}

.map-section .section-title {
    color: var(--primary);
    margin-bottom: 25px;
    font-size: 1.8rem;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.map-section .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary);
}

.map-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin: 20px auto;
    max-width: 1000px;
}

/* OpenStreetMap custom styling */
.leaflet-popup-content-wrapper {
    border-radius: 10px;
    padding: 5px;
}

.leaflet-popup-content {
    margin: 10px 12px;
    font-family: 'Cairo', sans-serif;
}

.leaflet-container a.leaflet-popup-close-button {
    top: 8px;
    right: 8px;
}

/* ===== FAQ SECTION ===== */
.faq-section {
    padding: 60px 0;
    background-color: var(--white);
}

.faq-container {
    max-width: 800px;
    margin: 30px auto 0;
}

.faq-item {
    margin-bottom: 20px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.faq-question {
    padding: 18px 20px;
    background-color: var(--primary);
    color: var(--white);
    cursor: pointer;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.faq-question i {
    transition: transform var(--transition-normal);
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0 10px; /* horizontal padding remains */
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    transition: max-height 0.5s ease-out, opacity 0.5s ease-out, padding 0.5s ease-out;
}

.faq-answer.active {
    max-height: 500px; /* adjust as needed */
    opacity: 1;
    padding: 10px;
}

.faq-answer p {
    padding: 20px;
    line-height: 1.6;
    color: var(--text);
}

.faq-item.active .faq-answer {
    padding: 0;
    max-height: 300px;
}

/* Form submission animations */

/* Form submission state */
.submitting .form-group input,
.submitting .form-group select,
.submitting .form-group textarea {
    opacity: 0.7;
    pointer-events: none;
}

/* Success message animation */
@keyframes successFadeIn {
    0% { opacity: 0; transform: translateY(-20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes successPulse {
    0% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(76, 175, 80, 0); }
    100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
}

.success-message {
    display: none;
    margin-top: 20px;
    padding: 15px 20px;
    background-color: #e8f5e9;
    border-left: 4px solid #4caf50;
    border-radius: 4px;
    color: #2e7d32;
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.success-message.animate {
    display: block;
    animation: successFadeIn 0.6s ease forwards, successPulse 1.5s infinite;
}

.success-message p {
    display: flex;
    align-items: center;
}

.success-message p::before {
    content: '✓';
    display: inline-block;
    margin-right: 10px;
    font-size: 1.2em;
    font-weight: bold;
}

/* Responsive styles - optimized for mobile */
@media (max-width: 768px) {
    .contact-section {
        padding: 40px 0;
    }
    
    .contact-container {
        flex-direction: column;
        margin-top: 20px;
        gap: 20px;
    }
    
    .contact-info, .contact-form {
        min-width: 100%;
        padding: 20px;
    }
    
    .info-item {
        margin-bottom: 15px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 0.95rem;
    }
    
    .modern-btn {
        width: 100%;
        padding: 12px 20px;
    }
    
    /* Optimize animations for mobile */
    .info-item:hover {
        transform: none;
    }
    
    .social-icon:hover {
        transform: none;
    }
}

/* Optimize for touch devices */
@media (hover: none) {
    .info-item:hover,
    .social-icon:hover,
    .faq-item:hover {
        transform: none;
    }
}
