/* 
 * EKAS BURSA - PREMIUM CONTACT STYLES
 * Concept: Dark Elegance & Neon Accents
 */

:root {
    --c-red: #de1f26;
    --c-dark: #0a0a0a;
    --c-grey: #1a1a1a;
    --c-text: #b0b0b0;
    --c-white: #ffffff;
}

/* --- HERO SECTION --- */
.contact-hero {
    padding: 140px 0 100px;
    background: var(--c-dark);
    color: var(--c-white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.3;
    z-index: 0;
    animation: bgScroll 60s linear infinite;
}

@keyframes bgScroll {
    0% { background-position: 0 0; }
    100% { background-position: 40px 40px; }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--c-red);
    border: 1px solid rgba(222, 31, 38, 0.4);
    padding: 8px 20px;
    border-radius: 50px;
    margin-bottom: 25px;
    letter-spacing: 2px;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(5px);
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 25px;
    letter-spacing: -2px;
}

.hero-title span {
    color: transparent;
    -webkit-text-stroke: 2px var(--c-white);
    position: relative;
}

.hero-title span::after {
    content: 'ULAŞIN';
    position: absolute;
    left: 0; top: 0;
    color: var(--c-red);
    width: 0%;
    overflow: hidden;
    transition: width 1s cubic-bezier(0.19, 1, 0.22, 1);
    -webkit-text-stroke: 0;
    white-space: nowrap;
}

.contact-hero:hover .hero-title span::after {
    width: 100%;
}

.hero-desc {
    font-size: 1.2rem;
    color: #888;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* --- INFO GRID --- */
.contact-info-section {
    padding: 0 0 80px;
    margin-top: -50px; /* Hero içine girsin */
    position: relative;
    z-index: 10;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); /* Otomatik sığdır (4 kart için ideal) */
    gap: 30px;
}

.info-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    text-decoration: none;
    color: var(--c-dark);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border: 1px solid rgba(0,0,0,0.05);
}

.info-card:hover {
    transform: translateY(-10px);
    color: #fff;
    border-color: transparent;
}

.card-bg-hover {
    position: absolute;
    inset: 0;
    background: var(--c-red);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 0;
}

.info-card:hover .card-bg-hover {
    transform: scaleY(1);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: var(--c-red);
    position: relative;
    z-index: 2;
    transition: all 0.4s ease;
}

.info-card:hover .card-icon {
    background: #fff;
    color: var(--c-red);
    transform: scale(1.1) rotate(-10deg);
}

.card-content {
    position: relative;
    z-index: 2;
}

.card-content h3 {
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 10px;
    opacity: 0.6;
}

.card-content p {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    line-height: 1.4;
}

.card-content p.highlight {
    font-size: 1.4rem;
    font-weight: 800;
}

.link-text {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s ease;
}

.info-card:hover .link-text {
    gap: 10px;
}

/* --- FORM & MAP SECTION --- */
.form-map-section {
    padding: 80px 0 120px;
    background: #fcfcfc;
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: stretch;
}

/* Form Styles */
.form-header { margin-bottom: 40px; }
.form-header h2 { font-size: 2.5rem; font-weight: 900; color: var(--c-dark); margin-bottom: 15px; }
.form-header h2 span { color: var(--c-red); }
.form-header p { color: #666; font-size: 1rem; line-height: 1.6; }

.premium-form { display: flex; flex-direction: column; gap: 25px; }

.form-group { position: relative; }

.form-group input, .form-group textarea {
    width: 100%;
    padding: 15px 0;
    border: none;
    border-bottom: 2px solid #eee;
    background: transparent;
    font-size: 1rem;
    font-weight: 600;
    color: var(--c-dark);
    outline: none;
    transition: border-color 0.3s ease;
    resize: none;
}

.form-group label {
    position: absolute;
    top: 15px; left: 0;
    color: #999;
    font-size: 1rem;
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus,
.form-group input:not(:placeholder-shown), .form-group textarea:not(:placeholder-shown) {
    border-bottom-color: var(--c-red);
}

.form-group input:focus + label, .form-group textarea:focus + label,
.form-group input:not(:placeholder-shown) + label, .form-group textarea:not(:placeholder-shown) + label {
    top: -10px;
    font-size: 0.75rem;
    color: var(--c-red);
    font-weight: 700;
}

.btn-submit {
    background: var(--c-dark);
    color: #fff;
    border: none;
    padding: 18px 40px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    align-self: flex-start;
    margin-top: 10px;
}

.btn-submit:hover {
    background: var(--c-red);
    gap: 15px;
    box-shadow: 0 10px 25px rgba(222, 31, 38, 0.3);
}

/* Map Styles */
.map-wrapper {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    min-height: 500px;
    background: #000;
}

.map-wrapper iframe {
    filter: grayscale(100%) invert(92%) contrast(85%); /* Dark Mode Map Effect */
    transition: filter 0.5s ease;
}

.map-wrapper:hover iframe {
    filter: grayscale(0%) invert(0%); /* Hoverda renkli */
}

.map-overlay-text {
    position: absolute;
    top: 30px; left: 30px;
    background: #fff;
    padding: 10px 20px;
    font-weight: 900;
    color: var(--c-dark);
    border-radius: 8px;
    z-index: 5;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    pointer-events: none;
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .info-grid { grid-template-columns: 1fr; gap: 20px; }
    .split-layout { grid-template-columns: 1fr; gap: 50px; }
    .hero-title { font-size: 3rem; }
    .map-wrapper { min-height: 400px; }
}

/* --- SUCCESS MODAL STYLES --- */
.success-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8); backdrop-filter: blur(10px);
    z-index: 99999; display: flex; justify-content: center; align-items: center;
    animation: fadeIn 0.5s ease;
}

.success-modal {
    background: #fff; padding: 50px; border-radius: 24px; text-align: center;
    max-width: 500px; width: 90%; position: relative; z-index: 2;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: scaleUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.success-icon {
    width: 80px; height: 80px; background: #2ecc71; color: #fff;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    margin: 0 auto 25px; box-shadow: 0 10px 20px rgba(46, 204, 113, 0.3);
}
.success-icon svg { width: 40px; height: 40px; }

.success-modal h3 { font-size: 1.8rem; font-weight: 900; color: var(--c-dark); margin-bottom: 15px; }
.success-modal p { font-size: 1rem; color: #666; line-height: 1.6; margin-bottom: 30px; }

.btn-modal-close {
    background: var(--c-dark); color: #fff; border: none; padding: 15px 40px;
    border-radius: 50px; font-weight: 800; cursor: pointer; transition: 0.3s;
}
.btn-modal-close:hover { background: var(--c-red); transform: translateY(-3px); }

.confetti-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; pointer-events: none; }
.confetti {
    position: absolute; width: 10px; height: 10px; top: -10px;
    animation: fall linear forwards;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scaleUp { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes fall { to { transform: translateY(100vh) rotate(720deg); } }