/**
 * Modern Contact Page Enhancements
 * İletişim sayfası için modern tasarım geliştirmeleri
 */

/* Contact Hero Section - Modern gradient background */
.contact-hero {
    position: relative;
    overflow: hidden;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><defs><radialGradient id="grain" cx="50%" cy="50%" r="50%"><stop offset="0%" style="stop-color:%23ffffff;stop-opacity:0.05"/><stop offset="100%" style="stop-color:%23ffffff;stop-opacity:0"/></radialGradient></defs><rect width="100" height="20" fill="url(%23grain)"/></svg>') repeat;
    opacity: 1;
    z-index: 1;
}

.contact-hero .container {
    position: relative;
    z-index: 2;
}

/* Quick contact info cards hover effects */
.contact-quick-info {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.contact-quick-info:hover {
    transform: translateY(-8px) !important;
    background: rgba(255,255,255,0.25) !important;
    border-color: rgba(255,255,255,0.4) !important;
}

/* Modern contact button */
.btn-modern-contact {
    transition: all 0.3s ease !important;
}

.btn-modern-contact:hover {
    background: #f8f9ff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3) !important;
}

/* Office cards modern styling */
.xb-contact-info {
    transition: all 0.3s ease !important;
}

.xb-contact-info:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15) !important;
}

.xb-contact-info .xb-item--flag {
    transition: transform 0.3s ease;
}

.xb-contact-info:hover .xb-item--flag {
    transform: scale(1.1);
}

/* Contact form modern styling */
#contact-form {
    background: #f8f9fa;
}

.xb-contact {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}

.xb-item--form {
    background: transparent;
}

.xb-item--field {
    position: relative;
    margin-bottom: 20px;
}

.xb-item--field span {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.xb-item--field input,
.xb-item--field select,
.xb-item--field textarea {
    width: 100%;
    padding: 16px 16px 16px 50px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 15px;
    background: #fff;
    transition: all 0.3s ease;
    color: #333;
}

.xb-item--field input:focus,
.xb-item--field select:focus,
.xb-item--field textarea:focus {
    border-color: #667eea;
    outline: none;
    background: #f8f9ff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.xb-item--field input:focus + span,
.xb-item--field select:focus + span,
.xb-item--field textarea:focus + span {
    opacity: 1;
    color: #667eea;
}

.xb-item--field textarea {
    resize: vertical;
    min-height: 120px;
    padding-top: 16px;
}

/* Submit button modern styling */
.thm-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50px;
    color: #ffffff;
    font-weight: 600;
    font-size: 16px;
    padding: 16px 32px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-transform: none;
    letter-spacing: 0;
}

.thm-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    color: #ffffff;
}

/* Newsletter section modern styling */
.newsletter {
    background: #667eea;
}

.xb-newsletter {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    padding: 50px;
}

.newsletter-from {
    display: flex;
    gap: 16px;
    margin-top: 30px;
}

.newsletter-from input {
    flex: 1;
    padding: 16px 24px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50px;
    background: rgba(255,255,255,0.15);
    color: #ffffff;
    font-size: 15px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.newsletter-from input::placeholder {
    color: rgba(255,255,255,0.7);
}

.newsletter-from input:focus {
    outline: none;
    border-color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.2);
}

.newsletter-from .thm-btn {
    background: #ffffff;
    color: #667eea;
    white-space: nowrap;
    border-radius: 50px;
}

.newsletter-from .thm-btn:hover {
    background: #f8f9ff;
    color: #5a6fd8;
}

/* Google Map modern styling */
.google-map {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

.google-map iframe {
    border-radius: 16px;
}

/* Responsive improvements */
@media (max-width: 992px) {
    .contact-hero h2 {
        font-size: 28px !important;
    }
    
    .contact-hero p {
        font-size: 16px !important;
    }
    
    .xb-newsletter {
        padding: 40px 30px;
    }
    
    .newsletter-from {
        flex-direction: column;
    }
    
    .newsletter-from .thm-btn {
        align-self: flex-start;
    }
}

@media (max-width: 768px) {
    .contact-hero {
        padding-top: 80px !important;
        padding-bottom: 40px !important;
    }
    
    .contact-hero h2 {
        font-size: 24px !important;
        margin-bottom: 16px !important;
    }
    
    .contact-hero p {
        font-size: 15px !important;
        margin-bottom: 32px !important;
    }
    
    .contact-quick-info {
        padding: 24px 16px !important;
    }
    
    .xb-contact-info {
        padding: 30px 20px !important;
    }
    
    .xb-newsletter {
        padding: 30px 20px;
        margin: 0 16px;
    }
    
    .xb-item--form .col-lg-6 {
        margin-bottom: 16px;
    }
}

@media (max-width: 480px) {
    .contact-quick-info div:first-child {
        width: 50px !important;
        height: 50px !important;
        margin-bottom: 16px !important;
    }
    
    .contact-quick-info h4 {
        font-size: 16px !important;
    }
    
    .contact-quick-info div:last-child {
        font-size: 14px !important;
    }
    
    .btn-modern-contact {
        font-size: 14px !important;
        padding: 14px 28px !important;
    }
}

/* Smooth scrolling for anchor link */
html {
    scroll-behavior: smooth;
}

/* Loading states */
.xb-item--form.loading {
    opacity: 0.7;
    pointer-events: none;
}

.xb-item--form.loading .thm-btn::after {
    content: '';
    width: 16px;
    height: 16px;
    margin-left: 10px;
    border: 2px solid transparent;
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success message styling */
.contact-success {
    background: #d4edda;
    color: #155724;
    padding: 16px 20px;
    border-radius: 12px;
    border: 1px solid #c3e6cb;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-success i {
    color: #28a745;
    font-size: 18px;
}

/* Error message styling */
.contact-error {
    background: #f8d7da;
    color: #721c24;
    padding: 16px 20px;
    border-radius: 12px;
    border: 1px solid #f5c6cb;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-error i {
    color: #dc3545;
    font-size: 18px;
}

/* Print styles */
@media print {
    .contact-hero,
    .newsletter {
        background: #fff !important;
        color: #000 !important;
    }
    
    .xb-newsletter {
        border: 1px solid #ddd !important;
    }
    
    .google-map {
        display: none;
    }
}