@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@200;300;400;500;600;700&display=swap");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Open Sans", sans-serif;
}

html, body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    width: 100%;
    padding: 0 10px;
    position: relative; /* ::before için gerekli */
}

    body::before {
        content: "";
        position: fixed; /* absolute yerine fixed */
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: url("/Models/hero-bg.jpg"), #000;
        background-position: center;
        background-size: cover;
        z-index: -1;
    }

.wrapper {
    width: 100%;
    max-width: 600px;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    background-color: #dc152e;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

form {
    display: flex;
    flex-direction: column;
}

h2 {
    font-size: 25px;
    margin-bottom: 10px;
    color: #fff;
}

.input-field {
    position: relative;
    border-bottom: 1px solid #fff;
    margin: 10px 0;
}

    .input-field label {
        position: absolute;
        top: 50%;
        left: 0;
        transform: translateY(-50%);
        color: #dc152e;
        font-size: 12px;
        pointer-events: none;
        transition: 0.15s ease;
    }

    .input-field input {
        width: 100%;
        height: 25px;
        background: transparent;
        border: none;
        outline: none;
        font-size: 12px;
        color: #fff;
    }

        .input-field input:focus ~ label,
        .input-field input:valid ~ label {
            font-size: 0.8rem;
            top: 10px;
            transform: translateY(-120%);
        }

.forget {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 25px 0 35px 0;
    color: #fff;
}

    .forget label {
        display: flex;
        align-items: center;
    }

        .forget label p {
            margin-left: 8px;
        }

.wrapper a {
    color: #efefef;
    text-decoration: none;
}

    .wrapper a:hover {
        text-decoration: underline;
    }

.btnform {
    background: #dc152e;
    color: #fff;
    font-weight: 600;
    border: none;
    padding: 6px 20px;
    cursor: pointer;
    border-radius: 3px;
    font-size: 12px;
    border: 2px solid transparent;
    transition: 0.3s ease;
    border: 1px solid #fff;
    display: block;
    width: 100%;
    text-align: center;
}

    .btnform:hover {
        color: #dc152e;
        border-color: #fff;
        background: #fff;
    }

.btnform2 {
    background: #565656;
    color: #fff;
    font-weight: 600;
    border: none;
    padding: 6px 20px;
    cursor: pointer;
    border-radius: 3px;
    font-size: 12px;
    border: 2px solid transparent;
    transition: 0.3s ease;
    border: 1px solid #fff;
    display: block;
    width: 100%;
    text-align: center;
}

    .btnform2:hover {
        color: black;
        border-color: #fff;
        background: #fff;
    }

.register {
    margin-top: 15px;
    color: #fff;
}

/* ========================
   Responsive Ayarlar
======================== */
@media (max-width: 480px) {
    h2 {
        font-size: 20px;
    }

    .btnform {
        padding: 10px 15px;
        font-size: 13px;
    }

    .forget {
        flex-direction: column;
        gap: 10px;
    }

    .wrapper {
        padding: 10px;
    }
}

@media (max-width: 320px) {
    h2 {
        font-size: 18px;
    }

    .input-field input {
        font-size: 11px;
    }

    .btnform {
        font-size: 12px;
        padding: 8px 12px;
    }
}

.header-box {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 10px;
    text-align: center;
    display: flex;
}

    .header-box .title h2 {
        margin: 0;
        font-size: 24px;
        color: #fff; /* arka planına göre değiştir */
    }

/* Mobil uyum */
@media (max-width: 480px) {
    .header-box {
        flex-direction: column; /* alt alta gelsin */
        text-align: center; /* ortala */
    }

        .header-box .logo img {
            width: 90px; /* mobilde biraz küçültülebilir */
        }

        .header-box .title h2 {
            font-size: 20px;
        }
}

.top-logo img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto; /* tam ortada */
}


.header-top {
    background: #dc152e;
    padding: 10px;
}

    .header-top img {
        max-width: 100%;
        height: auto;
    }


.hidden-input {
    display: none;
}

.custom-file-upload {
    display: inline-block;
    padding: 4px 10px;
    border: 1px solid #fff;
    border-radius: 5px;
    background-color: #dc152c;
    color: white;
    cursor: pointer;
    font-size: 12px;
    margin-bottom: 6px;
}

    .custom-file-upload:hover {
        background-color: #fff;
        color: #dc152c;
    }


.uyarii {
    position: absolute;
    background: black;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 5px;
    top: 50%;
    left: 105%; /* desktop için sağda */
    transform: translateY(-50%);
    white-space: nowrap;
    z-index: 10;
    animation: uyariAnim 1s ease-in-out infinite;
}

    /* Baloncuk oku */
    .uyarii::before {
        content: "";
        position: absolute;
        top: 50%;
        right: 100%;
        transform: translateY(-50%);
        border-width: 6px;
        border-style: solid;
        border-color: transparent black transparent transparent;
    }

/* Yanıp sönme animasyonu */
@keyframes uyariAnim {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }

    100% {
        opacity: 1;
    }
}

/* --- Mobil için özel görünüm --- */
@media (max-width: 450px) {
    .uyarii {
        position: relative;
        left: 0;
        top: auto;
        transform: none;
        margin-top: 2px;
        display: inline-block;
    }

        .uyarii::before {
            display: none; /* oku gizle mobilde */
        }
}



.uyarii2 {
    font-size: 12px;
    font-weight: bold;
    color: black;
    animation: hello 1s ease-in-out infinite;
}

@keyframes hello {
    0% {
        color: white;
    }

    50% {
        color: black;
    }

    100% {
        color: white;
    }
}

.uyariBaloncuk {
    position: absolute;
    left: 50%; /* Yatay ortalama */
    top: 50%; /* Dikey ortalama */
    transform: translate(-50%, -50%); /* tam ortalama */
    background: black;
    color: white;
    font-size: 11px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 5px;
    white-space: nowrap;
    z-index: 10;
    animation: uyariAnim 1s ease-in-out infinite;
}

@keyframes uyariAnim {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }

    100% {
        opacity: 1;
    }
}

/* Mobil uyumlu */
@media (max-width: 600px) {
    .uyariBaloncuk {
        position: relative;
        left: 0;
        top: auto;
        transform: none;
        margin-top: 5px;
    }
}



/* Genel Kapsayıcı ve Başlık */
.input-field-container {
    text-align: center; /* Başlığı ve butonları ortalamak için */
    margin-bottom: 15px;
}

.input-title {
    font-size: 12px; /* Görseldeki gibi biraz daha belirgin yaptık */
    color: white;
    font-weight: bold;
}

/* Flexbox Grubu */
.radio-group {
    display: flex;
    justify-content: center; /* Buton grubunu sayfaya ortalar */
    gap: 25px; /* İki radio butonu arasındaki nefes alma mesafesi */
    align-items: center;
}

    /* ASP.NET'in ürettiği her bir radio+label ikilisinin kendi iç düzeni */
    .radio-group span {
        display: inline-flex;
        align-items: center;
    }

    /* Yuvarlak butonun stili */
    .radio-group input[type="radio"] {
        margin: 0;
        cursor: pointer;
        transform: scale(1.2); /* Buton yuvarlağı küçük kalırsa hafifçe büyütür */
    }

    /* Yanındaki yazıların stili */
    .radio-group label {
        color: white !important; /* Yazı rengini beyaz yapar */
        font-size: 10px;
        font-weight: 500;
        margin-left: 8px; /* Yuvarlak ile yazı arasındaki boşluk */
        cursor: pointer;
    }

.form-dropdown {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 0px solid #fff;
    color: rgba(255, 255, 255, 0.5); /* başlangıçta soluk */
    font-size: 13px;

    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

    .form-dropdown option {
        color: white;
        background-color: #dc152e;
    }

    .form-dropdown.selected {
        color: white; /* il seçilince normal */
    }

.input-row {
    display: flex;
    gap: 10px;
    align-items: center;
    height:35px;
}

    .input-row .input-field:first-child {
        flex: 1;
    }

    .input-row .input-field:last-child {
        flex: 1;
    }

@media (max-width: 576px) {
    .input-row {
        flex-direction: column;
    }

        .input-row .input-field:first-child,
        .input-row .input-field:last-child {
            flex: unset; /* flex oranlarını sıfırla */
            width: 100%; /* tam genişlik */
        }
}

.input-row-2 {
    display: flex;
    gap: 10px;
    align-items: center;
    height:35px;
}

    .input-row-2 .input-field:first-child {
        flex: 2;
    }

    .input-row-2 .input-field:last-child {
        flex: 1;
    }

@media (max-width: 576px) {
    .input-row-2 {
        flex-direction: column;
    }

        .input-row-2 .input-field:first-child,
        .input-row-2 .input-field:last-child {
            flex: unset; /* flex oranlarını sıfırla */
            width: 100%; /* tam genişlik */
        }
}


input[type="date"] {
    background-color: transparent;
    color: #ffffff;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.5);
    width: 100%;
}

    input[type="date"]::-webkit-calendar-picker-indicator {
        filter: invert(1); /* takvim ikonu beyaz olsun */
        cursor: pointer;
    }



.grid-stil {
    color: white;
    border-collapse: collapse;
    font-size: 11px;
    background-color: rgba(255, 255, 255, 0.1);
}

    .grid-stil th {
        background-color: rgba(0, 0, 0, 0.4);
        padding: 8px;
        text-align: left;
    }

    .grid-stil td {
        padding: 8px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

.btn-sil {
    background-color: white;
    color: black;
    border: none;
    padding: 3px 8px;
    cursor: pointer;
    border-radius: 3px;
}



/* Sayfa İçi Geniş Hediye Alanı */
.hediye-grup-blok {
    background: rgba(255, 255, 255, 0.95);
    color: #222;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    border: 2px solid #ccc;
}

.grup-baslik-etiket {
    background: #000;
    color: white;
    font-size: 13px;
    padding: 6px 12px;
    font-weight: bold;
    border-radius: 4px;
    margin-bottom: 15px;
    display: inline-block;
    text-transform: uppercase;
}
/* Hediye Seçim Listesi (Grid Yapısı) */
.hediye-galeri {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: flex-start;
}

.hediye-secim-kart {
    background: #fff;
    border: 2px solid #eee;
    border-radius: 6px;
    padding: 10px;
    width: 160px;
    text-align: center;
    transition: all 0.2s ease;
    position: relative;
}
    /* Seçilen Hediyenin Stili */
    .hediye-secim-kart.secili {
        border-color: #28a745;
        background-color: #f1f9f3;
        box-shadow: 0 0 8px rgba(40, 167, 69, 0.5);
    }

    .hediye-secim-kart img {
        width: 100%;
        height: 90px;
        object-fit: contain;
        margin-bottom: 8px;
    }

.hediye-urun-adi {
    font-size: 9px;
    font-weight: bold;
    color: #333;
    height: 32px;
    display: block;
    overflow: hidden;
    margin-bottom: 8px;
}

.btn-hediye-sec {
    background-color: #333;
    color: #fff;
    border: none;
    padding: 5px 10px;
    font-size: 11px;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
}

    .btn-hediye-sec.aktif-secim {
        background-color: #28a745;
    }


.kilitli-alan {
    background-color: #565656 !important;
    color: #6c757d !important;
    cursor: not-allowed;
}