@import url("nav.css");
@import url("footer.css");
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

* {
    margin: 0;
    padding: 0;
}

body {
    background-color: whitesmoke;
    font-family: Arial, Helvetica, sans-serif;
    color: #333;
}

.Container {
    max-width: 1800px;
    width: 100%;
    max-height: max-content;
    display: flex;
    flex: 1;
    align-items: start;
    margin: 50px auto;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
    border-radius: 25px;
}

.content {
    width: 100%;
    max-width: 1800px;
    margin: 15px;
    font-family: Roboto, sans-serif;
    gap: 15px;
}

.contTopBar {
    display: grid;
    justify-content: space-between;
    height: 60px;
    width: 100%;
    align-items: center;
    text-align: center;
    grid-template-columns: 1fr 2.5fr 1fr;
}

.back-home {
    background-color: #306992;
    align-self: flex-start;
    padding: 11px 20px;
    border-radius: 25px;
    width: fit-content;
}

.back-home a {
    text-decoration: none;
    font-size: 24px;
    font-weight: 500;
    color: #fff;
}

.form-content {
    background-color: #e8e8e8;
    padding: 20px;
    border-radius: 15px;
    margin-top: 20px;
    max-width: 100%;
}

@media (max-width: 1280px) {
    .form-content {
        max-width: 1190px;
    }
}

.form-section {
    margin-bottom: 25px;
}

.section-title {
    color: #3498db;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, #3498db, rgba(0, 0, 0, 0));
    border-radius: 2px;
}

/* DÜZELTME 1: max-height kısıtlaması kaldırıldı, elemanların dikey basılması engellendi */
.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    align-items: flex-end;
    max-width: 1730px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 200px;
}

/* DÜZELTME 2: padding-top kaldırıldı ki label ile input iç içe geçmesin */
.form-group label {
    font-weight: 600;
    color: #333;
    font-size: 18px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: 2px solid #ccc;
    border-radius: 25px;
    font-size: 16px;
    background-color: white;
    width: 100%;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #5a9bd4;
    box-shadow: 0 0 8px rgba(90, 155, 212, 0.4);
}

.radio-group {
    display: grid;
    max-width: 1730px;
    width: 100%;
    grid-template-columns: repeat(4, 1fr);
    flex-wrap: wrap;
    flex: 1 1 400px;
    justify-content: space-between;
    margin: 0 0 20px 0;
    gap: 10px;
    border: #ccc 2px solid;
    border-radius: 25px;
    background-color: #fff;
}

.radio-group label {
    letter-spacing: 1px;
    display: flex;
    text-wrap: nowrap;
    align-items: center;
    gap: 8px;
    color: #333;
    cursor: pointer;
    padding: 5px 0;
    font-weight: 400;
    font-size: 28px;
    justify-content: center;
}

.radio-group input[type="radio"] {
    width: 20px;
    height: 20px;
    margin: 0;
}

.form-row .check-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

/* Masaüstünde varsayılan: 4 Eşit Sütun */
.check-group {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    width: 100%;
}

/* KVKK Kutu ve Onay Alanı Stilleri */
.kvkk-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 12px 15px;
    margin: 15px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Açık renkli arka planlar için (Görüş Formu & İlan Formu) */
.kvkk-box-light {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
}

.kvkk-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.85rem;
    line-height: 1.4;
    color: inherit;
}

.kvkk-label input[type="checkbox"] {
    margin-top: 3px;
    width: 16px;
    height: 16px;
    accent-color: #007bff;
    cursor: pointer;
    flex-shrink: 0;
}

.kvkk-label a {
    color: #ffcc00;
    text-decoration: underline;
    font-weight: 500;
}

.kvkk-box-light .kvkk-label a {
    color: #007bff;
}

.required-star {
    color: #ff4d4d;
    font-weight: bold;
}

/* 1. KADEME: Ekran orta boyuta (Tablet/Katlanabilir cihaz) indiğinde SIMETRIK 2 SÜTUN yap */
@media (max-width: 920px) {
    .check-group {
        grid-template-columns: repeat(2, 1fr);
        /* 2x2 matris düzeni oluşturur */
    }
}

/* 2. KADEME: Ekran mobile indiğinde 1 SÜTUN yap */
@media (max-width: 480px) {
    .check-group {
        grid-template-columns: 1fr;
    }
}

/* Dış Buton Kutusu (Tam Yuvarlak / Kapsül) */
.cephe-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 20px;
    background-color: #f4f4f4;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    /* Tam yuvarlak kenarlar */
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 18px;
    color: #333;
}

.cephe-btn:hover {
    background-color: #e9e9e9;
    border-color: #ccc;
}

/* SVG Daire Boyutlandırma */
.checkboxer {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    flex-shrink: 0;
}

.checkboxer svg {
    width: 100%;
    height: 100%;
}

.checkboxer input[type="checkbox"] {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    margin: 0;
    opacity: 0;
    z-index: 2;
    cursor: pointer;
}

/* SVG Çizgi / Arka Plan Animasyonları */
.checkboxer .background {
    fill: #bbb;
    transition: ease all 0.3s;
}

.checkboxer .stroke {
    fill: none;
    stroke: #fff;
    stroke-miterlimit: 10;
    stroke-width: 2px;
    stroke-dashoffset: 100;
    stroke-dasharray: 100;
    transition: ease all 0.3s;
}

.checkboxer .check {
    fill: none;
    stroke: #fff;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.5px;
    stroke-dashoffset: 22;
    stroke-dasharray: 22;
    transition: ease all 0.3s;
}

/* --- TIKLANDIĞINDA / SEÇİLDİĞİNDE (:checked) --- */

/* 1. Dış Butonun Arka Planını #3284bc ve Yazıyı #fff Yapma */
.cephe-btn:has(input[type="checkbox"]:checked) {
    background-color: #3284bc;
    color: #ffffff;
    border-color: #3284bc;
    box-shadow: 0 4px 12px rgba(50, 132, 188, 0.3);
}

/* 2. Seçildiğinde SVG Arka Plan İkonunun Rengi (Beyaz Daire) */
.cephe-btn:has(input[type="checkbox"]:checked) .checkboxer .background {
    fill: #ffffff;
}

/* 3. Seçildiğinde Onay Tik İşaretinin Rengi (#3284bc Dikey Çizgi) */
.cephe-btn:has(input[type="checkbox"]:checked) .checkboxer .check {
    stroke: #3284bc;
    stroke-dashoffset: 0;
}

.cephe-btn:has(input[type="checkbox"]:checked) .checkboxer .stroke {
    stroke-dashoffset: 0;
}

.checkboxer input[type=checkbox] {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    margin: 0;
    opacity: 0;
    z-index: 2;
}

.checkboxer input[type=checkbox]:hover {
    cursor: pointer;
}

.checkboxer input[type=checkbox]:checked+svg .background {
    fill: #3498db;
}

.checkboxer input[type=checkbox]:checked+svg .stroke {
    stroke-dashoffset: 0;
}

.checkboxer input[type=checkbox]:checked+svg .check {
    stroke-dashoffset: 0;
}

.checked {
    color: #0066cc;
    font-weight: 600;
    border-color: #0066cc !important;
    background-color: #f0f8ff !important;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-row {
    display: flex;
    gap: 20px;
}

.contact-row .form-group {
    flex: 1;
}

.submit-btn {
    background-color: #4a90e2;
    color: white;
    padding: 14px 30px;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin-top: 15px;
}

.submit-btn:hover {
    background-color: #357abd;
}

.wide-input {
    width: 200px;
}

.medium-input {
    width: 150px;
}

.small-input {
    width: 120px;
}

@media (max-width: 1200px) {
    .grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .radio-group {
        flex-wrap: wrap;
    }

    .priceBox-group {
        flex-wrap: wrap;
    }

    .contact-row {
        flex-direction: column;
    }
}

@media (max-width: 480px) {

    .grid-4,
    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

/* Segmented Control Stili */
.switch-container {
    display: flex;
    background-color: #d1d5db;
    padding: 3px;
    border-radius: 25px;
    position: relative;
    width: 100%;
    min-width: 320px;
    height: 42px;
    box-sizing: border-box;
}

/* Radio butonları gizle */
.switch-container input[type="radio"] {
    display: none;
}

/* Seçenek Etiketleri (Satılık / Kiralık) */
.switch-container label {
    flex: 1;
    text-align: center;
    line-height: 36px;
    font-size: 15px;
    font-weight: 600;
    color: #4b5563;
    cursor: pointer;
    border-radius: 22px;
    transition: all 0.2s ease-in-out;
    user-select: none;
    z-index: 1;
}

/* Seçili Olan Seçeneğin Stili (Mavi Kapsül & Beyaz Yazı) */
.switch-container input[type="radio"]:checked+label {
    background-color: #3284bc;
    color: #fff;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
}

.form-group:has(.switch-container) {
    flex: auto 0 auto;
    width: auto;
}

#prog-re {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

@media (max-width: 770px) {
    .switch-container {
        max-width: 100%;
    }

    .form-group:has(.switch-container) {
        flex: 1 1 100%;
        width: 100%;
    }

    h1 {
        font-size: 1.5em;
    }

    .contTopBar {
        align-items: start;
    }
}

@media (max-width: 570px) {
    h1 {
        font-size: 1.4em;
    }

    .back-home {
        padding: 8px 15px;
    }

    .back-home a {
        font-size: 18px;
    }
}

@media (max-width: 405px) {
    .back-home {
        padding: 6px 10px;
    }

    .back-home a {
        font-size: 18px;
    }
}

/* **CAPTCHA VERIFY BY CLOUDFLARE** */

.form-group.captcha-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0 0 0;
}

.verify-box {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 20px;
    border: 1px solid #3284bc;
    border-radius: 25px;
    padding: 10px;
    width: calc(100% - 22px);
    font-size: 20px;
    font-weight: 600;
    color: #3284bc;
}

@media (max-width:600px) {
    .verify-box {
        flex-direction: column;
        padding: 5px;
        gap: 5px;
    }
}

[data-show-for][hidden] {
    display: none !important;
}

.category-hint {
    margin: 0 0 16px;
    padding: 12px 16px;
    border-radius: 8px;
    background: #fff8e6;
    border: 1px solid #f0d58c;
    color: #7a5d00;
    font-size: 14px;
}