:root {
    --primary-color: #0d31bb; 
    --secondary-color: #051042; 
    --background-color: #ffffff; 
    --text-color: #051042; 
    --text-light-color: #5f6b8a; 
    --border-color: #dcdde1; 

    --metin-rengi: #ffffff; 
    --koyu-metin: #051042;  
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.contact-page {
    display: flex;
    width: 100%;
    max-width: 1400px;
    min-height: 100vh;
}

.home-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 40px; 
    transition: color 0.3s ease;
}

.home-link:hover { color: #0b2aa6; }

.contact-info-panel {
    width: 45%;
    max-width: 550px;
    padding: 50px;
    display: flex;
    flex-direction: column;
    background: var(--background-color);
}

.info-header .title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.info-header .breadcrumb {
    font-size: 0.9rem;
    color: var(--text-light-color);
    margin-bottom: 40px;
}

.tagline {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 30px;
}

.contact-details {
    display: flex;
    flex-direction: column;     
    align-items: flex-start;
    gap: 4px;                    
    margin-bottom: 20px;         
}

.section-label {
    font-size: 0.95rem;
    color: var(--text-light-color);
    font-weight: 600;
    margin-bottom: 4px;           
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #000;              
    font-weight: 700;         
    font-size: 1.6rem;       
    line-height: 1.3;
}

.contact-item i {
    font-size: 1.6rem;
    color: var(--primary-color);
}

.fab.fa-whatsapp {
    color: #25D366;
}

.address-details {
    margin-bottom: 16px; 
    line-height: 1.55;
}

.address-details p {
    font-size: 1.05rem;             
    color: #000;                    
    font-weight: 700;               
    margin-bottom: 4px;             
    max-width: 52ch;                
}

.address-details a {
    color: #000;                     
    text-decoration: none;
    font-weight: 700;
    font-size: 1.6rem;
    line-height: 1.35;
}

.address-details a,
.contact-item { transition: color .2s ease; }

.address-details a:hover,
.address-details a:focus,
.address-details a:active,
.contact-item:hover,
.contact-item:focus,
.contact-item:active {
    color: var(--primary-color); 
}


.contact-details:hover .contact-item {
    color: var(--primary-color);
}

.address-details:hover p,
.address-details:hover a {
    color: var(--primary-color);
}


.company-details,
.hours-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-bottom: 16px;
}

.company-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #000;
}

.hours-details .hours {
    font-size: 1.1rem;
    font-weight: 600;
    color: #000;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-bottom: 8px; 
}

.social-links a {
    color: var(--secondary-color);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
}


.form-container {
    border-top: 1px solid var(--border-color);
    padding-top: 8px; 
}

.form-toggle-button {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-size: 1.35rem; 
    font-weight: 700;
    color: var(--primary-color); 
    cursor: pointer;
    padding: 15px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-toggle-button i {
    transition: transform 0.3s ease;
}

.form-toggle-button.active i {
    transform: rotate(180deg);
}

.collapsible-form {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
}

.collapsible-form.active {
    max-height: 500px; 
}

.collapsible-form form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-top: 10px;
}

.collapsible-form input,
.collapsible-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
}

.submit-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-button:hover {
    
    background-color: #0b2aa6;
}


.map-panel {
    width: 55%;
    flex-grow: 1;
    position: relative;
    min-height: 520px; 
}

.map-panel iframe {
    filter: none;
    opacity: 1;
}


#map {
    position: absolute;
    inset: 0;
}

.leaflet-container {
    border-radius: 8px;
}


.map-marker {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 68px;
    display: none; 
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 24px rgba(0,0,0,.18);
    display: none;
    align-items: center;
    justify-content: center;
    pointer-events: none; 
}

.map-marker img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    display: block;
}


.marker-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(0,0,0,.18);
    display: grid;
    place-items: center;
}

.marker-card img {
    width: 34px;
    height: 34px;
}


.marker-card.marker-text {
    width: 140px;
    height: 48px;
    padding: 6px 12px;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: var(--secondary-color);
    text-transform: none; 
    letter-spacing: .2px;
}


.map-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 16px;
    background: #f3f4f6;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.map-skeleton {
    width: 92%;
    height: 70%;
    border-radius: 8px;
    background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 37%, #e5e7eb 63%);
    background-size: 400% 100%;
    animation: shimmer 1.2s ease-in-out infinite;
}

.map-load-btn {
    padding: 10px 16px;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,.08);
}

.map-load-btn:hover { background-color: #0b2aa6; }

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}


@media (max-width: 1024px) {
    .contact-page {
        flex-direction: column;
    }
    .contact-info-panel, .map-panel {
        width: 100%;
        max-width: none;
    }
    .map-panel { height: 420px; min-height: 420px; }
}



.popup-form-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup-form-container.active {
    opacity: 1;
    visibility: visible;
}

.contact-form {
    background: var(--metin-rengi);
    color: var(--koyu-metin);
    padding: 30px 40px;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 500px;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.popup-form-container.active .contact-form {
    transform: scale(1);
}

.contact-form .close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
}

.contact-form h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.contact-form p {
    margin-bottom: 20px;
    opacity: 0.7;
}

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

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
}

.contact-form .buton {
    width: 100%;
    border: none;
    cursor: pointer;
}


.contact-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    z-index: 9999;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transform: translateX(calc(100% + 20px));
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.contact-notification.show {
    transform: translateX(0);
}

.contact-notification-success {
    background-color: #2ecc71; 
    border-left: 5px solid #27ae60;
}

.contact-notification-error {
    background-color: #e74c3c; 
    border-left: 5px solid #c0392b;
}
