/* Modern Contact Page - KodLegal Design System */

/* Page Header - Enhanced */
.page-header {
    background: linear-gradient(135deg, var(--kodlegal-bg-light) 0%, var(--kodlegal-bg-gray) 100%);
    padding: 6rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(135deg, rgba(46, 16, 101, 0.02) 0%, rgba(46, 16, 101, 0.05) 100%);
    pointer-events: none;
}

.page-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 3.5rem;
    color: var(--kodlegal-dark);
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease-out;
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--kodlegal-primary), var(--kodlegal-secondary));
    border-radius: 2px;
    transition: all 0.4s ease;
}

.page-title:hover::after {
    width: 120px;
    background: linear-gradient(90deg, var(--kodlegal-primary), var(--kodlegal-secondary), var(--kodlegal-accent));
    height: 4px;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--kodlegal-primary), var(--kodlegal-secondary));
    border-radius: 2px;
}

.page-subtitle {
    font-size: 1.3rem;
    color: var(--kodlegal-primary);
    font-weight: 500;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Contact Section - Modern Background */
.contact-section {
    background: linear-gradient(135deg, var(--kodlegal-bg-lighter) 0%, var(--kodlegal-bg-medium) 100%);
    padding: 5rem 0;
    position: relative;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="contact-pattern" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="0.5" fill="%23000" opacity="0.02"/><circle cx="75" cy="75" r="0.5" fill="%23000" opacity="0.02"/><circle cx="50" cy="10" r="0.5" fill="%23000" opacity="0.02"/><circle cx="10" cy="60" r="0.5" fill="%23000" opacity="0.02"/></pattern></defs><rect width="100" height="100" fill="url(%23contact-pattern)"/></svg>');
    opacity: 0.4;
    pointer-events: none;
}

/* Contact Form - Glassmorphism Design */
.contact-form-wrapper {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 249, 250, 0.9));
    backdrop-filter: blur(15px);
    padding: 2rem 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    z-index: 2;
    display: flex;
    flex-direction: column;
}

.contact-form-wrapper.flex-fill {
    height: 100%;
}

.contact-form-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--kodlegal-primary), var(--kodlegal-secondary));
}

.form-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 1.5rem;
    color: var(--kodlegal-dark);
    margin-bottom: 1.5rem;
    position: relative;
}

.form-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--kodlegal-primary);
    opacity: 0.7;
}

/* Enhanced Form Elements */
.form-label {
    font-weight: 600;
    color: var(--kodlegal-dark);
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Required star: inherit label color (don't force red) */
.required-star {
    margin-left: 0.35rem;
    font-weight: 600;
    color: inherit;
    opacity: 0.9;
}

.form-control {
    border: 2px solid rgba(46, 16, 101, 0.2);
    border-radius: 12px;
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    color: var(--kodlegal-dark);
}

.form-control::placeholder {
    color: var(--kodlegal-gray);
    opacity: 0.7;
}

.form-control:focus {
    border-color: var(--kodlegal-primary);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 0.2rem rgba(46, 16, 101, 0.15);
    transform: translateY(-2px);
}

/* Disable hover fade on inputs: keep same look on hover as default */
.form-control:hover {
    border-color: rgba(46, 16, 101, 0.2);
    background: rgba(255, 255, 255, 0.8);
}

/* Make sure focused inputs show the primary color even while hovered
   (hover rule was declared after :focus, so :hover won when both matched) */
.contact-section .form-control:focus,
.contact-section .form-control:focus:hover {
    border-color: var(--kodlegal-primary) !important;
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 0 0 0.2rem rgba(46, 16, 101, 0.15) !important;
    outline: none;
}

/* Custom Checkbox */
.form-check-input {
    width: 1.2rem;
    height: 1.2rem;
    border: 2px solid var(--kodlegal-primary);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.form-check-input:checked {
    background: linear-gradient(135deg, var(--kodlegal-primary), var(--kodlegal-secondary));
    border-color: var(--kodlegal-primary);
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(46, 16, 101, 0.15);
}

.form-check-label {
    font-size: 0.9rem;
    color: var(--kodlegal-gray);
    margin-left: 0.5rem;
}

.privacy-link {
    color: var(--kodlegal-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.privacy-link:hover {
    color: var(--kodlegal-secondary);
    text-decoration: underline;
}

/* Enhanced Submit Button */
.btn-primary {
    background: linear-gradient(135deg, var(--kodlegal-primary), var(--kodlegal-secondary)) !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 1rem 3rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    font-size: 0.95rem !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 0 8px 25px rgba(46, 16, 101, 0.2) !important;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.btn-primary:hover::before,
.btn-primary:active::before {
    left: 100%;
}

.btn-primary:hover,
.btn-primary:active {
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 0 15px 35px rgba(46, 16, 101, 0.3) !important;
    color: white !important;
}

/* Contact Info - Modern Card */
.contact-info-wrapper {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 249, 250, 0.9));
    backdrop-filter: blur(15px);
    padding: 2rem 1.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    z-index: 2;
    display: flex;
    flex-direction: column;
}

.contact-info-wrapper.flex-fill {
    height: 100%;
}

.contact-info-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--kodlegal-secondary), var(--kodlegal-primary));
}

.info-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 1.4rem;
    color: var(--kodlegal-dark);
    margin-bottom: 1.5rem;
    position: relative;
}

.info-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--kodlegal-primary);
    opacity: 0.7;
}

/* Contact Items - Enhanced Design */
.contact-item {
    display: flex;
    align-items: flex-start;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(46, 16, 101, 0.1);
    transition: all 0.3s ease;
    border-radius: 10px;
    margin-bottom: 0.5rem;
}

.contact-item:hover {
    background: rgba(46, 16, 101, 0.03);
    padding-left: 1rem;
    padding-right: 1rem;
}

.contact-item:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--kodlegal-primary), var(--kodlegal-secondary));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Iletisim ikonlari tek KodLegal tonu kullanir */

.contact-icon::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: all 0.6s ease;
    transform: rotate(-45deg) translateX(-100%);
}

.contact-item:hover .contact-icon::after {
    transform: rotate(-45deg) translateX(100%);
}

.contact-item:hover .contact-icon {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 8px 20px rgba(46, 16, 101, 0.2);
}

.contact-icon i {
    color: white;
    font-size: 1.3rem;
    z-index: 2;
    position: relative;
}

.contact-details h5 {
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--kodlegal-dark);
    margin-bottom: 0.8rem;
    transition: color 0.3s ease;
}

.contact-item:hover .contact-details h5 {
    color: var(--kodlegal-primary);
}

.contact-details p {
    color: var(--kodlegal-gray);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.contact-item:hover .contact-details p {
    opacity: 1;
}

.contact-details a {
    color: var(--kodlegal-gray);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.contact-details a:hover {
    color: var(--kodlegal-primary);
    text-decoration: underline;
}

/* Social Links - Enhanced */
.contact-social {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(46, 16, 101, 0.1);
}

.contact-social h5 {
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    color: var(--kodlegal-dark);
    margin-bottom: 1.5rem;
}

.contact-social .social-links {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.contact-social .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(46, 16, 101, 0.1), rgba(46, 16, 101, 0.05));
    border-radius: 12px;
    color: var(--kodlegal-primary);
    transition: all 0.4s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

/* Sosyal medya ikonları için farklı renkler */
.contact-social .social-links a:nth-child(1) {
    background: linear-gradient(135deg, rgba(0, 119, 181, 0.15), rgba(0, 119, 181, 0.1));
    color: var(--linkedin-color); /* LinkedIn */
}

.contact-social .social-links a:nth-child(2) {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.1));
    color: var(--twitter-color); /* X (formerly Twitter) */
}

.contact-social .social-links a:nth-child(3) {
    background: linear-gradient(135deg, rgba(225, 48, 108, 0.15), rgba(225, 48, 108, 0.1));
    color: var(--instagram-color); /* Instagram */
}

.contact-social .social-links a:nth-child(4) {
    background: linear-gradient(135deg, rgba(24, 119, 242, 0.15), rgba(24, 119, 242, 0.1));
    color: var(--facebook-color); /* Facebook */
}

.contact-social .social-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, var(--kodlegal-primary), var(--kodlegal-secondary));
    border-radius: 12px;
    transition: width 0.3s ease;
    z-index: 1;
}

/* Sosyal medya hover efektleri için farklı renkler */
.contact-social .social-links a:nth-child(1)::before {
    background: linear-gradient(135deg, #0077b5, #005885); /* LinkedIn */
}

.contact-social .social-links a:nth-child(2)::before {
    background: linear-gradient(135deg, #000000, #333333); /* X */
}

.contact-social .social-links a:nth-child(3)::before {
    background: linear-gradient(135deg, #e1306c, #c13584); /* Instagram */
}

.contact-social .social-links a:nth-child(4)::before {
    background: linear-gradient(135deg, #1877f2, #166fe5); /* Facebook */
}

.contact-social .social-links a:hover::before {
    width: 100%;
}

.contact-social .social-links a i {
    position: relative;
    z-index: 2;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.contact-social .social-links a:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(46, 16, 101, 0.2);
}

/* Sosyal medya hover shadow'ları */
.contact-social .social-links a:nth-child(1):hover {
    box-shadow: 0 8px 20px rgba(0, 119, 181, 0.3); /* LinkedIn */
}

.contact-social .social-links a:nth-child(2):hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); /* X */
}

.contact-social .social-links a:nth-child(3):hover {
    box-shadow: 0 8px 20px rgba(225, 48, 108, 0.3); /* Instagram */
}

.contact-social .social-links a:nth-child(4):hover {
    box-shadow: 0 8px 20px rgba(24, 119, 242, 0.3); /* Facebook */
}

.contact-social .social-links a:hover i {
    color: white;
}

/* Map Section - Enhanced */
.map-section {
    position: relative;
    overflow: hidden;
}

.map-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--kodlegal-primary), var(--kodlegal-secondary));
    z-index: 2;
}

.map-container {
    position: relative;
}

.map-container iframe {
    filter: grayscale(30%) contrast(1.1);
    transition: all 0.4s ease;
}

.map-container:hover iframe {
    filter: grayscale(0%) contrast(1.2);
}

/* Alert Messages */
.alert {
    border: none;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.alert-success {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1), rgba(40, 167, 69, 0.05));
    border-left: 4px solid #28a745;
    color: #155724;
}

.alert-danger {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1), rgba(220, 53, 69, 0.05));
    border-left: 4px solid #dc3545;
    color: #721c24;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 991px) {
    .page-title {
        font-size: 2.8rem;
    }
    
    .contact-form-wrapper,
    .contact-info-wrapper {
        padding: 2.5rem 2rem;
        margin-bottom: 2rem;
    }
    
    .form-title,
    .info-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 576px) {
    .page-title {
        font-size: 2.2rem;
    }
    
    .page-header {
        padding: 4rem 0 3rem;
    }
    
    .contact-form-wrapper,
    .contact-info-wrapper {
        padding: 2rem 1.5rem;
        border-radius: 15px;
    }
    
    .form-title,
    .info-title {
        font-size: 1.4rem;
    }
    
    .contact-icon {
        width: 50px;
        height: 50px;
        border-radius: 12px;
        margin-right: 1rem;
    }
    
    .contact-icon i {
        font-size: 1.1rem;
    }
    
    .btn-primary {
        padding: 0.8rem 2.5rem !important;
        font-size: 0.9rem !important;
    }
    
    .contact-social .social-links a {
        width: 45px;
        height: 45px;
    }
}

/* X Twitter Icon Override for Contact Page */
.contact-social .social-links a .fa-brands.fa-x-twitter:before,
.contact-social .social-links a .fa-x-twitter:before {
    content: "\e61b" !important;
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400 !important;
}

/* Fallback X icon using SVG */
.contact-social .social-links a .fa-x-twitter.force-svg:before {
    content: "" !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='currentColor' d='M389.2 48h70.6L305.6 224.2 487 464H345L233.7 318.6 106.5 464H35.8L200.7 275.5 26.8 48H172.4L272.9 180.9 389.2 48zM364.4 421.8h39.1L151.1 88h-42L364.4 421.8z'/%3E%3C/svg%3E") !important;
    background-size: 1em 1em !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    display: inline-block !important;
    width: 1em !important;
    height: 1em !important;
}
