/* Google Font */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&display=swap');

:root {
    --primary: #1e3a8a;
    --accent: #e11d48;
    --soft-bg: #f1f5f9;
    --glass: rgba(255, 255, 255, 0.75);
}

/* BODY */
body {
    background: linear-gradient(135deg, #e0e7ff, #f8fafc);
    font-family: 'Montserrat', sans-serif;
    color: #1f2937;
    margin: 0;
    padding: 20px;
}

/* ANA FORM KART */
.col-md-10 {
    background: var(--glass);
    padding: 45px;
    border-radius: 28px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.12);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.4);
    margin: 40px auto; /* Sayfada ortalar */
    position: relative;
    overflow: hidden;
    max-width: 900px; /* Çok genişlememesi için sınır */
    z-index: 1;
}

    /* ÜST PARLAK EFEKT (DÜZELTİLDİ) */
    .col-md-10::before {
        content: "";
        position: absolute;
        top: -50%;
        left: -20%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, transparent 60%);
        transform: rotate(25deg);
        pointer-events: none; /* Tıklamayı engellemesini çözen satır */
        z-index: -1; /* İçeriğin arkasında kalmasını garantiler */
    }

/* FIELDSET */
fieldset {
    border: none !important;
    margin-bottom: 35px;
    padding: 0 !important;
    width: 100%;
}

/* BAŞLIK */
legend {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    border-left: 6px solid var(--accent);
    padding-left: 15px;
    margin-bottom: 25px;
    letter-spacing: 0.5px;
    float: none; /* Bootstrap legend kaymasını engeller */
    width: auto;
}

/* INPUT VE FORM ELEMANLARI */
.form-control {
    border: 2px solid transparent !important;
    border-radius: 14px !important;
    padding: 14px 18px !important;
    background: #ffffff !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease !important;
    font-weight: 500;
    width: 100%; /* Hizalama için tam genişlik */
}

    .form-control:focus {
        border-color: var(--primary) !important;
        transform: scale(1.01);
        box-shadow: 0 10px 25px rgba(30,58,138,0.15);
        outline: none;
    }

/* TABLO SPACING VE HİZALAMA */
.AlseinTable {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
}

    .AlseinTable td {
        padding: 8px;
        vertical-align: middle;
    }

/* RADIO GROUP - MODERNIZE HİZALAMA */
.radio-modern {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    border: none !important;
    width: 100%;
}

    .radio-modern td {
        display: block;
        padding: 0 !important;
    }

    /* RADIO KART */
    .radio-modern label {
        display: flex;
        align-items: center;
        justify-content: center;
        background: white;
        border: 2px solid #e5e7eb;
        padding: 15px;
        border-radius: 16px;
        cursor: pointer;
        transition: all 0.25s ease;
        font-weight: 600;
        margin-bottom: 0;
        min-height: 55px;
    }

        .radio-modern label:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(0,0,0,0.08);
            border-color: var(--primary);
        }

    .radio-modern input[type="radio"] {
        display: none;
    }

        .radio-modern input[type="radio"]:checked + label {
            background: linear-gradient(135deg, var(--primary), #3b82f6);
            color: white;
            border-color: transparent;
            box-shadow: 0 10px 25px rgba(30,58,138,0.3);
        }



.kvkk-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 25px;
    padding: 15px;
}

/* ASP.NET checkbox gizle */
.kvkk-switch input {
    display: none;
}

.kvkk-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 25px;
}

    /* ASP.NET checkbox container */
    .kvkk-wrapper input[type="checkbox"] {
        appearance: none;
        -webkit-appearance: none;
        width: 52px;
        height: 28px;
        background: #e5e7eb;
        border-radius: 50px;
        position: relative;
        cursor: pointer;
        transition: 0.3s;
        outline: none;
    }

        /* knob */
        .kvkk-wrapper input[type="checkbox"]::before {
            content: "";
            position: absolute;
            width: 22px;
            height: 22px;
            border-radius: 50%;
            top: 3px;
            left: 3px;
            background: white;
            box-shadow: 0 2px 6px rgba(0,0,0,0.2);
            transition: 0.3s;
        }

        /* checked */
        .kvkk-wrapper input[type="checkbox"]:checked {
            background: linear-gradient(135deg, #1e3a8a, #3b82f6);
        }

            .kvkk-wrapper input[type="checkbox"]:checked::before {
                transform: translateX(24px);
            }

/* TEXT */
.kvkk-text {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    cursor: pointer;
    user-select: none;
}


.radio-modern input[type="checkbox"] {
    display: none;
}

/* her item */
.radio-modern label {
    display: inline-block;
    padding: 12px 18px;
    margin: 6px;
    border: 2px solid #d0d7e2;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.25s ease;
    background: #fff;
    color: #333;
    font-weight: 500;
}

/* seçili olan */
.radio-modern input[type="checkbox"]:checked + label {
    background: #1E3A8A;
    color: #fff;
    border-color: #1E3A8A;
    box-shadow: 0 6px 15px rgba(47, 111, 237, 0.25);
}

/* hover */
.radio-modern label:hover {
    border-color: #1E3A8A;
}



/* BUTON - MERKEZİ VE ŞIK */
.btn-success {
    background: linear-gradient(135deg, var(--accent), #fb7185) !important;
    border: none !important;
    padding: 10px 22px !important; /* küçültüldü */
    border-radius: 10px !important; /* daha normal form hissi */

    font-size: 15px !important;
    font-weight: 600 !important;
    display: inline-block !important; /* BLOCK kaldırıldı */
    margin: 20px auto !important;
    cursor: pointer;
    box-shadow: 0 6px 15px rgba(225,29,72,0.25) !important;
    transition: all 0.25s ease !important;
}

    .btn-success:hover {
        transform: translateY(-3px) scale(1.03);
        box-shadow: 0 15px 35px rgba(225,29,72,0.5) !important;
    }

/* GİRİŞ ANİMASYON */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.container {
    animation: fadeUp 0.6s ease-out forwards;
}





/* Radio Group Konteynırı ve Tabloyu Ortala */
.form-group {
    display: flex;
    flex-direction: column;
    align-items: center; /* Başlığı ve listeyi dikey eksende ortalar */
    text-align: center;
    width: 100%;
}

/* ASP.NET'in oluşturduğu tabloyu ortala */
.radio-modern {
    margin-left: auto !important;
    margin-right: auto !important;
    border-collapse: separate;
    display: table; /* Grid yapısını bozmamak için gerekebilir */
}

/* Eğer seçeneklerin kendi içinde de metinleri ortalansın istersen */
.radio-modern label {
    justify-content: center; /* İçindeki metni yatayda ortalar */
    margin: 0 auto;
}




/* MOBİL UYUMLULUK */
@media (max-width: 768px) {
    .col-md-10 {
        padding: 25px;
    }

    .radio-modern {
        grid-template-columns: 1fr; /* Mobilde alt alta */
    }
}
