/* ===================================================
   Contact Page - Pixel Perfect Styles
   =================================================== */

.contact-page-body { 
    background: #FFFFFF; 
    overflow-x: hidden; 
}

/*
 * İletişim sayfası (iletisim.css yalnızca Custom5): Banner Type1 + refs-hero-adjustment.
 * Kutunun tam genişliği kaplaması ve yan beyaz şeritleri önlemek için ortalı blok + cover.
 */
@media (min-width: 993px) {
    .services-hero-section.refs-hero-adjustment .services-hero-bg {
        box-sizing: border-box !important;
        width: calc(100% - 40px) !important;
        max-width: 1880px !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        background-size: cover !important;
        background-position: center center !important;
        overflow: hidden !important;
    }
}

/* Hero Senkron (200px) */
.contact-hero-adjustment {
    height: 320px !important;
    position: relative;
    width: 100%;
}

.contact-hero-bg {
    position: absolute;
    width: 1880px;
    max-width: calc(100% - 40px);
    height: 304px;
    left: 50%;
    transform: translateX(-50%);
    top: 70px;
    border-radius: 16px;
    background: url('/img/innocon/hakkimizda-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    box-sizing: border-box;
    pointer-events: none;
}

.contact-hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.67) 0%, rgba(0, 0, 0, 0) 130.05%);
    z-index: 1;
}

@media (max-width: 1880px) {
    .contact-hero-bg {
        width: calc(100% - 40px);
        max-width: 1880px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }
}

.contact-hero-title {
    font-family: 'Radio Canada Big', sans-serif;
    font-weight: 700;
    font-style: normal;
    font-size: 46px;
    line-height: 100%;
    letter-spacing: 0.5%;
    color: #FFFFFF;
    margin: 0;
    width: 1460px;
    max-width: calc(100% - 40px);
    padding: 0 20px;
    box-sizing: border-box;
}

@media (max-width: 1880px) {
    .hero-container .hero-social-frame {
        left: auto;
        right: 20px;
    }
}

/* Social Media Icons */
.hero-container .hero-social-frame {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0px;
    gap: 15px;
    position: absolute;
    width: 270px;
    height: 42px;
    left: 1420px;
    top: 201px;
    z-index: 10;
    pointer-events: auto;
}

.hero-container .hero-social-circle {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 10px;
    gap: 10px;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 57px;
    flex: none;
    order: 0;
    flex-grow: 0;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.3s ease;
    position: relative;
    z-index: 11;
    pointer-events: auto;
}

.hero-container .hero-social-circle:hover {
    background: #658004;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-container .hero-social-circle img {
    width: 22px;
    height: 22px;
    flex: none;
    order: 0;
    flex-grow: 0;
}

/* Main Content Area */
.contact-main-section {
    padding: clamp(16px, 2.5vw, 28px) 0 clamp(40px, 5vw, 72px);
    position: relative;
}

/* Ensure fixed widths include padding/border (prevents column drop) */
.container-1460,
.contact-flex-layout,
.contact-form-card,
.contact-info-column,
.info-card,
.form-field input,
.form-field textarea {
    box-sizing: border-box;
}

/* Arka Plan Görseli — diğer bannerlarla aynı genişlik; görsel + gradient katmanları tam kaplasın */
.contact-bg-image {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 1880px;
    height: auto;
    min-height: clamp(320px, 48vw, 600px);
    top: 0;
    margin-top: 0;
    box-sizing: border-box;
    overflow: hidden;
    border-radius: 16px;
    z-index: 0;
    /* Fallback (inline style banner görselini geçer); iki katman için ayrı cover */
    background-color: #2a2a2a;
    background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0.34)),
        url('/img/innocon/iletisim.webp');
    background-size: cover, cover;
    background-position: center center, center center;
    background-repeat: no-repeat, no-repeat;
}

.contact-bg-image[style] {
    background-size: cover, cover !important;
    background-position: center center, center center !important;
    background-repeat: no-repeat, no-repeat !important;
}

.container-1460 {
    width: 1460px;
    max-width: calc(100% - 40px);
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.contact-flex-layout {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 104px; /* Figma koordinat farkı */
    position: relative;
    z-index: 2;
    top: 0;
    padding-top: clamp(48px, 7vw, 120px);
    margin-bottom: clamp(48px, 10vw, 120px);
}

/* Form Tasarımı (Figma: 863px) */
.contact-form-card {
    width: 863px;
    height: auto;
    background: #FFFFFF;
    border: 1.2px solid #C5C5C5;
    border-radius: 24px;
    padding: 50px 48px;
    flex-shrink: 0;
}

.form-header {
    text-align: center;
    margin-bottom: 50px;
}

.form-header h2 {
    font-family: 'Inter';
    font-weight: 700;
    font-size: 33.5px;
    margin-bottom: 10px;
    color: #000000;
}

.form-header p {
    font-family: 'Inter';
    color: #5D5D5D;
    font-size: 16.7px;
    margin: 0;
}

.contact-form-pixel {
    display: flex;
    flex-direction: column;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 30px;
}

.form-field label {
    font-family: 'Inter';
    font-size: 16.7px;
    color: #5D5D5D;
    font-weight: 500;
}

.form-field input {
    border: none;
    border-bottom: 1.2px solid #ECEDF2;
    padding: 15px 0;
    font-family: 'Inter';
    font-weight: 600;
    font-size: 16.7px;
    outline: none;
    background: transparent;
}

.form-field input:focus {
    border-bottom-color: #658004;
}

.form-field textarea {
    background: #F6F7F9;
    border: 1.2px solid #ECEDF2;
    border-radius: 19px;
    padding: 24px 28px;
    min-height: 281px;
    height: auto;
    font-family: 'Inter';
    font-size: 16.7px;
    outline: none;
    resize: vertical;
}

.form-field textarea:focus {
    border-color: #658004;
}

.btn-send-form {
    width: 372.7px;
    height: 58.7px;
    background: #658004;
    border-radius: 58px;
    border: none;
    color: #FFFFFF;
    font-family: 'Inter';
    font-weight: 600;
    font-size: 16.7px;
    margin: 30px auto 0;
    display: block;
    cursor: pointer;
    transition: opacity 0.3s;
}

.btn-send-form:hover {
    opacity: 0.9;
}

/* Bilgi Kutuları (Figma: 492.7px) */
.contact-info-column {
    width: 492px;
    display: flex;
    flex-direction: column;
    gap: 34px; /* Figma koordinat farkı */
    flex-shrink: 0;
}

.info-card {
    background: #FFFFFF;
    border: 1px solid #C5C5C5;
    border-radius: 16px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
}

.info-icon-box {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-icon-box img {
    width: 100%;
    height: auto;
}

.info-text-box h4 {
    font-family: 'Inter';
    font-weight: 600;
    font-size: 30px;
    margin-bottom: 10px;
    color: #000000;
}

.info-text-box p {
    font-family: 'Inter';
    font-size: 21px;
    color: #5D5D5D;
    margin: 0;
    line-height: 1.5;
}

.info-text-box p a {
    color: #5D5D5D;
    text-decoration: none;
    transition: color 0.3s;
}

.info-text-box p a:hover {
    color: #658004;
    text-decoration: underline;
}

/* ===================================================
   1900px BREAKPOINT - Geniş ekranlar için hizalama
   =================================================== */

@media (max-width: 1900px) and (min-width: 1501px) {
    .contact-bg-image {
        width: calc(100% - 40px) !important;
        max-width: 1880px !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        min-height: clamp(300px, 46vw, 580px) !important;
    }

    .contact-hero-bg {
        width: calc(100% - 40px) !important;
        max-width: 1880px !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
    }

    .hero-container .hero-social-frame {
        left: auto !important;
        right: 40px !important;
    }

    .contact-flex-layout {
        gap: 80px !important;
    }
}

/* ===================================================
   1500px BREAKPOINT - Ana sayfa ile hizalama
   =================================================== */

@media (max-width: 1500px) and (min-width: 993px) {
    .container-1460 {
        width: 100% !important;
        max-width: 1460px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
        box-sizing: border-box !important;
    }

    .contact-bg-image {
        width: calc(100% - 40px) !important;
        max-width: 1880px !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        min-height: clamp(280px, 50vw, 560px) !important;
    }

    .contact-hero-bg {
        width: calc(100% - 40px) !important;
        max-width: 1880px !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
    }

    .hero-container .hero-social-frame {
        left: auto !important;
        right: 40px !important;
    }

    .contact-flex-layout {
        /* Keep 2 columns; let them shrink instead of stacking */
        flex-wrap: nowrap !important;
        gap: clamp(24px, 4vw, 60px) !important;
        padding-top: clamp(40px, 6vw, 100px) !important;
    }

    .contact-form-card {
        width: auto !important;
        max-width: none !important;
        flex: 1 1 auto !important;
        flex-shrink: 1 !important;
        min-width: 0 !important;
    }

    .contact-info-column {
        width: auto !important;
        max-width: 492px !important;
        flex: 0 1 492px !important;
        flex-shrink: 1 !important;
    }
}

/* ===================================================
   MOBİL RESPONSIVE
   =================================================== */

@media (max-width: 992px) {
    /* Header top değerini kaldır (diğer sayfalarla uyum için) */
    .contact-page-body .figma-header {
        top: 0 !important;
    }

    /*
     * Bu stylesheet yalnızca İletişim (Custom5) yüklendiğinde gelir.
     * Banner alt boşluğu: style.css GLOBAL MOBILE BANNER. İkon sırası ince ayarı:
     */
    .services-hero-section.refs-hero-adjustment .services-hero-container > .hero-social-frame {
        column-gap: clamp(12px, 3.5vw, 18px) !important;
        gap: clamp(12px, 3.5vw, 18px) !important;
        padding: 0 12px !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
    }

    .services-hero-section.refs-hero-adjustment .services-hero-container > .hero-social-circle {
        flex-shrink: 0 !important;
    }

    /* Hero Hizalaması (Hakkimizda ile aynı) */
    .hero-section.contact-hero-adjustment {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: auto !important;
        padding-top: 40px !important;
        padding-bottom: 0 !important;
        margin: 0 !important;
        margin-bottom: 0 !important;
    }

    /* Hero Arka Planı (Hakkimizda ile aynı) */
    .contact-hero-bg { 
        position: relative !important;
        width: 100% !important;
        height: 200px !important;
        left: 0 !important;
        right: 0 !important;
        top: -50px !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding-left: 0 !important;
        padding-bottom: 0 !important;
        border-radius: 0 !important;
        transform: none !important;
        background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.67) 0%, rgba(0, 0, 0, 0) 130.05%), 
                    url('/img/innocon/hakkimizda-bg.jpg') !important;
        background-size: cover !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
        background-color: transparent !important;
    }
    
    .contact-hero-title { 
        font-family: 'Radio Canada Big' !important;
        font-weight: 700 !important;
        font-size: 32px !important;
        text-align: center;
        width: 100% !important;
        max-width: 100% !important;
        left: 0 !important;
        position: relative !important;
        z-index: 2;
        margin: 0 !important;
        padding: 0 20px !important;
        top: 0 !important;
    }

    .hero-container .hero-social-frame {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        right: auto;
        top: 100px;
        width: auto;
        margin: 0;
        justify-content: center;
        gap: 12px;
        z-index: 10;
    }

    .hero-container .hero-social-circle {
        width: 40px;
        height: 40px;
    }

    .hero-container .hero-social-circle img {
        width: 20px;
        height: 20px;
    }

    .contact-main-section {
        padding-top: clamp(12px, 3vw, 20px) !important;
        padding-bottom: 20px !important;
        position: relative;
        min-height: auto !important;
    }

    .contact-bg-image {
        position: absolute !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: calc(100% - 32px) !important;
        max-width: 100% !important;
        min-height: clamp(200px, 42vw, 360px) !important;
        height: auto !important;
        right: auto !important;
        top: clamp(10px, 2.5vw, 16px) !important;
        border-radius: 12px !important;
        z-index: 0 !important;
        margin-top: 0 !important;
        background-position: center center, center center !important;
        background-size: cover, cover !important;
    }

    .container-1460 {
        padding: 0 20px;
        width: 100% !important;
        max-width: 100% !important;
        position: relative;
        z-index: 2 !important;
    }

    .contact-flex-layout {
        flex-direction: column;
        gap: 25px;
        top: 0 !important;
        position: relative;
        margin-bottom: 0 !important;
    }

    .contact-form-card {
        width: 100% !important;
        max-width: 100% !important;
        padding: 25px 20px !important;
        margin-top: clamp(28px, 9vw, 64px);
    }

    .contact-info-column {
        width: 100% !important;
        max-width: 100% !important;
    }

    .btn-send-form { 
        width: 100% !important;
        max-width: 100% !important;
    }

    .info-text-box h4 { 
        font-size: 24px; 
    }

    .info-text-box p {
        font-size: 18px;
    }

    .contact-page-body .mobile-sidebar.active {
        transform: translateX(0) !important;
        visibility: visible !important;
        margin: 0 !important;
        padding: 0 !important;
        top: 0 !important;
        left: auto !important;
        right: 0 !important;
    }
    
    /* Overlay Fix */
    .sidebar-overlay {
        top: -50px !important;
    }
}

@media (max-width: 480px) {
    .contact-hero-title {
        font-family: 'Radio Canada Big' !important;
        font-weight: 700 !important;
        font-size: 26px !important;
    }

    .hero-container .hero-social-frame {
        top: 100px;
        gap: 10px;
    }

    .hero-container .hero-social-circle {
        width: 36px;
        height: 36px;
        padding: 8px;
    }

    .hero-container .hero-social-circle img {
        width: 18px;
        height: 18px;
    }

    .contact-bg-image {
        width: calc(100% - 24px) !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        min-height: clamp(180px, 40vw, 300px) !important;
    }

    .contact-form-card {
        padding: 20px 18px !important;
    }

    .form-header {
        margin-bottom: 25px !important;
    }

    .form-header h2 {
        font-size: 22px !important;
    }

    .form-header p {
        font-size: 12px !important;
    }

    .form-field {
        margin-bottom: 18px !important;
    }

    .form-field label {
        font-size: 12px !important;
    }

    .form-field input,
    .form-field textarea {
        font-size: 12px !important;
    }

    .form-field input {
        padding: 10px 0 !important;
    }

    .form-field textarea {
        min-height: 130px !important;
        padding: 12px !important;
        border-radius: 12px !important;
    }

    .btn-send-form {
        height: 42px !important;
        font-size: 12px !important;
        margin-top: 15px !important;
    }

    .info-card {
        padding: 30px 20px;
    }

    .info-text-box h4 {
        font-size: 20px;
    }

    .info-text-box p {
        font-size: 16px;
    }
}

/* 320px için ekstra düzenlemeler */
@media (max-width: 320px) {
    .contact-main-section {
        padding-bottom: 15px !important;
    }

    .contact-bg-image {
        width: calc(100% - 24px) !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        min-height: clamp(160px, 38vw, 280px) !important;
    }

    .container-1460 {
        padding: 0 15px !important;
    }

    .hero-container .hero-social-frame {
        top: 100px;
        gap: 8px;
    }

    .hero-container .hero-social-circle {
        width: 32px;
        height: 32px;
        padding: 6px;
    }

    .hero-container .hero-social-circle img {
        width: 14px;
        height: 14px;
    }

    .contact-form-card {
        padding: 15px 12px !important;
    }

    .form-header {
        margin-bottom: 18px !important;
    }

    .form-header h2 {
        font-size: 18px !important;
    }

    .form-header p {
        font-size: 10px !important;
    }

    .form-field {
        margin-bottom: 12px !important;
    }

    .form-field label {
        font-size: 10px !important;
    }

    .form-field input,
    .form-field textarea {
        font-size: 10px !important;
    }

    .form-field input {
        padding: 6px 0 !important;
    }

    .form-field textarea {
        min-height: 90px !important;
        padding: 8px !important;
    }

    .btn-send-form {
        height: 38px !important;
        font-size: 10px !important;
    }

    .info-card {
        padding: 25px 15px !important;
    }

    .info-text-box h4 {
        font-size: 18px !important;
    }

    .info-text-box p {
        font-size: 14px !important;
    }
}
