/* Contact Section */
.contact-section {
    padding: 70px 0;
    position: relative;
    background: #0f1118;
    background: linear-gradient(180deg, #131722 5%, #0f1118 95%);
    font-family: "Montserrat", sans-serif;
}

.contact-section .container {
    max-width: 1200px;
}

/* Contact Info Wrapper */
.contact-info-wrapper {
    background: rgba(15, 17, 24, 0.6);
    backdrop-filter: blur(10px);
    padding: 35px 30px;
    border-radius: 14px;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.contact-info-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, hsl(220, 55%, 40%) 0%, rgba(37, 99, 235, 0.3) 100%, transparent 100%);
    opacity: 1;
}

/* Section Header */
.section-header {
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 26px;
    font-weight: 700;
    color: #eaeaea;
    margin-bottom: 10px;
    position: relative;
    padding-left: 16px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 28px;
    background: linear-gradient(180deg, hsl(220, 55%, 40%) 0%, rgba(37, 99, 235, 0.6) 100%);
    border-radius: 2px;
}

.section-subtitle {
    color: #cfcfcf;
    font-size: 15px;
    margin-bottom: 0;
    line-height: 1.6;
}

/* Contact Info Items */
.contact-info-items {
    margin-top: 30px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    margin-bottom: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.contact-info-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(37, 99, 235, 0.4);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.15);
    transform: translateY(-2px);
}

.contact-info-icon {
    width: 50px;
    height: 50px;
    background: rgba(37, 99, 235, 0.15);
    border: 1px solid rgba(37, 99, 235, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.4s ease;
}

.contact-info-item:hover .contact-info-icon {
    background: rgba(37, 99, 235, 0.25);
    border-color: rgba(37, 99, 235, 0.5);
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.3);
}

.contact-info-icon i {
    font-size: 24px;
    color: hsl(220, 55%, 45%);
    transition: all 0.3s ease;
}

.contact-info-item:hover .contact-info-icon i {
    color: hsl(220, 55%, 50%);
    transform: scale(1.1);
}

.contact-info-content h5 {
    font-size: 11px;
    font-weight: 600;
    color: hsl(220, 55%, 45%);
    margin-bottom: 8px;
    text-transform: capitalize;
    letter-spacing: 1.2px;
}

.contact-info-content p {
    color: #cfcfcf;
    margin-bottom: 0;
    font-size: 15px;
    line-height: 1.7;
    word-break: break-all;
    overflow-wrap: anywhere;
}

.contact-info-content a {
    color: #eaeaea;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
    word-break: break-all;
    overflow-wrap: anywhere;
}

.contact-info-content a:hover {
    color: hsl(220, 55%, 50%);
    border-bottom-color: rgba(37, 99, 235, 0.4);
}

/* Contact Form Wrapper */
.contact-form-wrapper {
    background: rgba(15, 17, 24, 0.6);
    backdrop-filter: blur(10px);
    padding: 35px 30px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1)
}

.contact-form-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, hsl(220, 55%, 40%) 0%, rgba(37, 99, 235, 0.3) 50%, transparent 100%);
    opacity: 1;
}

.contact-form-header {
    margin-bottom: 25px;
}

.contact-form-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: #eaeaea;
    margin-bottom: 8px;
    position: relative;
    padding-left: 16px;
}

.contact-form-header h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: linear-gradient(180deg, hsl(220, 55%, 40%) 0%, rgba(37, 99, 235, 0.6) 100%);
    border-radius: 2px;
}

.contact-form-header p {
    color: #cfcfcf;
    font-size: 15px;
    margin-bottom: 0;
}

/* Form Styles */
.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form .form-label {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 10px;
    display: block;
    text-transform: capitalize;
    letter-spacing: 0.5px;
}

/* Sol kenar çizgisini oluşturan kod */
.contact-info-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, hsl(220, 55%, 40%) 0%, rgba(37, 99, 235, 0.6) 100%);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px 0 0 12px;
}

/* Mouse ile üstüne gelince çizgiyi gösteren kod */
.contact-info-item:hover::before {
    transform: scaleY(1);
}

.contact-form .form-label i {
    font-size: 18px;
    color: hsl(var(--base-l-200));
}

.input-wrapper {
    position: relative;
}

.input-wrapper i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.4);
    font-size: 18px;
    z-index: 2;
    transition: all 0.3s ease;
}

.input-wrapper textarea+i {
    top: 20px;
    transform: none;
}

.input-wrapper:focus-within i {
    color: hsl(var(--base-l-200));
}

.contact-form .form-control {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 12px 18px 12px 50px;
    color: #ffffff;
    font-size: 15px;
    transition: all 0.3s ease;
    width: 100%;
}

.contact-form .form-control:focus {
    outline: none;
    border-color: hsl(220, 55%, 40%);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
    background-color: rgba(255, 255, 255, 0.06);
}

.contact-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.contact-form textarea.form-control {
    resize: vertical;
    min-height: 150px;
    padding-top: 14px;
}

/* Submit Button */
.btn-submit {
    width: 100%;
    padding: 14px 30px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    opacity: 1;
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit i {
    font-size: 18px;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 2;
}

.btn-submit:hover i {
    transform: translateX(3px);
}

/* Map Section */
.map-section {
    padding: 60px 0;
    position: relative;
    background: #0f1118;
    background: linear-gradient(180deg, #0f1118 5%, #131722 95%);
    font-family: "Montserrat", sans-serif;
}

.map-section .container {
    max-width: 1200px;
}

/* Map Wrapper */
.map-wrapper {
    background: rgba(15, 17, 24, 0.6);
    backdrop-filter: blur(10px);
    padding: 35px 30px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.map-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, hsl(220, 55%, 40%) 0%, rgba(37, 99, 235, 0.3) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.map-wrapper:hover {
    border-color: rgba(37, 99, 235, 0.4);
    box-shadow: 0 12px 40px rgba(37, 99, 235, 0.2),
        0 0 0 1px rgba(37, 99, 235, 0.15),
        inset 0 0 30px rgba(37, 99, 235, 0.08);
    background: rgba(15, 17, 24, 0.75);
}

.map-wrapper:hover::before {
    opacity: 1;
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    height: 500px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: border-color 0.3s ease;
    position: relative;
    margin-top: 20px;
}

.map-container:hover {
    border-color: rgba(37, 99, 235, 0.4);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.15);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    pointer-events: auto;
}

/* Loading Animation */
.btn-submit.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-submit.loading .btn-text::after {
    content: '';
    display: inline-block;
    animation: dots 1.5s infinite;
}

@keyframes dots {

    0%,
    20% {
        content: '';
    }

    40% {
        content: '.';
    }

    60% {
        content: '..';
    }

    80%,
    100% {
        content: '...';
    }
}

/* Success/Error Messages */
.form-message {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
    display: none;
    animation: contactSlideDown 0.3s ease;
}

@keyframes contactSlideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-message.success {
    background: rgba(40, 167, 69, 0.2);
    border: 1px solid rgba(40, 167, 69, 0.4);
    color: #28a745;
    display: block;
}

.form-message.error {
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid rgba(220, 53, 69, 0.4);
    color: #dc3545;
    display: block;
}

/* Select Boxes - Contact Page Specific Styles */
.contact-section select,
.contact-section .form-select,
.contact-section .custom-select,
.contact-section .select2-container--default .select2-selection--single {
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 12px 18px 12px 50px;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: none;
}

.contact-section select:focus,
.contact-section .form-select:focus,
.contact-section .custom-select:focus,
.contact-section .select2-container--open .select2-selection--single {
    outline: none;
    border-color: hsl(220, 55%, 40%);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2),
        0 0 15px rgba(37, 99, 235, 0.4);
    background-color: rgba(255, 255, 255, 0.06);
}

.contact-section select:hover:not(:focus),
.contact-section .form-select:hover:not(:focus),
.contact-section .custom-select:hover:not(:focus),
.contact-section .select2-container--default .select2-selection--single:hover {
    border-color: rgba(37, 99, 235, 0.3);
}

/* Select2 specific styles for contact page */
.contact-section .select2-container--default .select2-selection--single {
    height: auto;
    padding: 0;
}

.contact-section .select2-container--default .select2-selection--single .select2-selection__rendered {
    padding: 12px 18px 12px 50px;
    line-height: 1.5;
}

.contact-section .select2-container--open .select2-selection.select2-selection--single {
    border-color: hsl(220, 55%, 40%) !important;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2),
        0 0 15px rgba(37, 99, 235, 0.4) !important;
}

/* Form alignment fixes */
.contact-section .row {
    align-items: flex-start;
}

.contact-section .col-lg-4,
.contact-section .col-lg-8 {
    display: flex;
    flex-direction: column;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .contact-info-wrapper {
        margin-bottom: 25px;
    }

    .section-title {
        font-size: 24px;
    }

    .contact-form-header h3 {
        font-size: 20px;
    }

    .contact-form-wrapper {
        padding: 25px 20px;
    }

    .map-container {
        height: 400px;
    }

    .map-section {
        padding: 50px 0;
    }

    .map-wrapper {
        padding: 25px 20px;
    }
}

@media (max-width: 767px) {
    .contact-section {
        padding: 50px 0;
    }

    .contact-info-wrapper,
    .contact-form-wrapper {
        padding: 20px 18px;
    }

    .section-title {
        font-size: 22px;
    }

    .contact-form-header h3 {
        font-size: 20px;
    }

    .contact-info-item {
        padding: 18px;
        gap: 15px;
    }

    .contact-info-icon {
        width: 48px;
        height: 48px;
    }

    .contact-info-icon i {
        font-size: 22px;
    }

    .contact-form .form-control {
        padding: 11px 16px 11px 45px;
        font-size: 14px;
    }

    .map-container {
        height: 350px;
    }

    .map-section {
        padding: 40px 0;
    }

    .map-wrapper {
        padding: 20px 18px;
    }
}

@media (max-width: 575px) {
    .contact-section {
        padding: 40px 0;
    }

    .section-title {
        font-size: 20px;
    }

    .section-subtitle,
    .contact-form-header p {
        font-size: 13px;
    }

    .contact-info-content h5 {
        font-size: 13px;
    }

    .contact-info-content p {
        font-size: 13px;
    }

    .map-container {
        height: 300px;
    }

    .map-section {
        padding: 30px 0;
    }

    .contact-info-wrapper,
    .contact-form-wrapper {
        padding: 18px 15px;
    }

    .map-wrapper {
        padding: 20px 18px;
    }
}

/* Accessibility */
.contact-section button:focus-visible,
.contact-section a:focus-visible {
    outline: 2px solid hsl(var(--base));
    outline-offset: 2px;
}

/* Print Styles */
@media print {

    .contact-form-wrapper,
    .btn-submit {
        display: none;
    }

    .contact-info-wrapper,
    .map-wrapper {
        border: 1px solid #000;
        background: #fff;
        color: #000;
    }

    .map-section {
        padding: 40px 0;
    }
}