/* =========================================================
   GENEL RESET
========================================================= */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* =========================================================
   SAYFA ANA YAPI
========================================================= */
#main{
    min-height: 100vh;
    padding: 40px 20px;
}

.signup-wrapper{
    width: 100%;
    max-width: 760px;
    margin: 60px auto;
    padding: 40px;
    background: #ffffff;
    border: 1px solid #edf2f7;
    border-radius: 24px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.10);
}

/* =========================================================
   ÜYELİK TÜRÜ SEÇİM ALANI
========================================================= */
.choose-type{
    text-align: center;
}

.choose-type h2{
    margin-bottom: 30px;
    color: rgb(10, 32, 88);
    font-size: 32px;
    font-family: "Oswald", sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
}

.choose-type .butons{
    display: flex;
    justify-content: center;
    gap: 24px;
    width: 100%;
    flex-wrap: wrap;
}

.choose-type button{
    position: relative;
    overflow: hidden;
    width: 280px;
    height: 260px;
    padding: 20px;
    border: none;
    border-radius: 24px;
    cursor: pointer;
    color: rgb(10, 32, 88);
    font-size: 28px;
    font-family: "Oswald", sans-serif;
    font-weight: 800;
    letter-spacing: 1.5px;
    line-height: 1.3;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.10);
    transition: all 0.3s ease;
}

.choose-type button:hover{
    transform: translateY(-6px);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.15);
}

.choose-type button:active{
    transform: scale(0.98);
}

.choose-type #musteri{
    background-image:
        linear-gradient(rgba(255,255,255,0.68), rgba(255,255,255,0.68)),
        url(image/musteri.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.choose-type #isletme{
    background-image:
        linear-gradient(rgba(255,255,255,0.68), rgba(255,255,255,0.68)),
        url(image/isletme.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* =========================================================
   FORM GENEL YAPI
========================================================= */
.form{
    display: none;
    width: 100%;
}

.form.active{
    display: block;
}

.form h2{
    margin-bottom: 28px;
    text-align: center;
    color: rgb(10, 32, 88);
    font-size: 30px;
    font-family: "Oswald", sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
}

.form label{
    display: block;
    margin-top: 10px;
    margin-bottom: 8px;
    color: #334155;
    font-size: 15px;
    font-weight: 600;
}

/* =========================================================
   FORM ALANLARI
========================================================= */
.form input,
.form select{
    width: 100%;
    margin: 10px 0;
    padding: 14px 16px;
    border: 1px solid #d9e2ec;
    border-radius: 12px;
    outline: none;
    background: #ffffff;
    color: #0f172a;
    font-size: 15px;
    transition: all 0.25s ease;
}

.form input::placeholder{
    color: #94a3b8;
}

.form input:focus,
.form select:focus{
    border-color: #ff9800;
    box-shadow: 0 0 0 4px rgba(255, 152, 0, 0.15);
}

.form select{
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.form input[type="file"]{
    padding: 12px;
    background: #f8fafc;
    cursor: pointer;
}

.form input[type="hidden"]{
    display: none;
}

/* =========================================================
   FORM BUTONLARI
========================================================= */
.form button{
    width: 100%;
    margin-top: 12px;
    padding: 14px 16px;
    border: none;
    border-radius: 12px;
    background: #ff9800;
    color: #ffffff;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    transition: all 0.25s ease;
}

.form button:hover{
    background: #f57c00;
    transform: translateY(-2px);
}

.form button:active{
    transform: scale(0.99);
}

/* İşletme formundaki konum seçme butonu */
#businessForm button[type="button"]{
    margin-top: 8px;
    background: #0f172a;
}

#businessForm button[type="button"]:hover{
    background: #1e293b;
}

/* =========================================================
   KONUM BİLGİ ALANI
========================================================= */
#locationText{
    margin-top: 12px;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    color: #475569;
    font-size: 14px;
    line-height: 1.5;
}

/* =========================================================
   HATA / YARDIMCI ALANLAR
========================================================= */
.login-link{
    margin-top: 20px;
    text-align: center;
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}

.login-link a{
    color: #ff9800;
    text-decoration: none;
    font-weight: 700;
}

.login-link a:hover{
    text-decoration: underline;
}

/* =========================================================
   HARİTA MODAL
========================================================= */
.map-modal{
    position: fixed;
    inset: 0;
    z-index: 999;
    display: none;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
}

.map-modal.active{
    display: flex;
}

.map-box{
    width: 90%;
    max-width: 700px;
    overflow: hidden;
    background: #ffffff;
    border-radius: 15px;
}

.map-header{
    display: flex;
    justify-content: space-between;
    padding: 15px;
    background: #0f172a;
    color: #ffffff;
}

.map-actions{
    display: flex;
    gap: 10px;
}

.map-actions button{
    padding: 6px 10px;
    border: none;
    border-radius: 8px;
    background: #ffffff;
    color: #0f172a;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
}

.map-actions button:hover{
    background: #e2e8f0;
}

#map{
    width: 100%;
    height: 400px;
}

.map-confirm{
    width: 100%;
    padding: 15px;
    border: none;
    background: #ff9800;
    color: #ffffff;
    cursor: pointer;
    font-weight: bold;
}

/* =========================================================
   HARİTA ARAMA ALANI
========================================================= */
.map-search{
    display: flex;
    gap: 10px;
    padding: 10px;
}

.map-search input{
    flex: 1;
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    outline: none;
    font-size: 14px;
}

.map-search input:focus{
    border-color: #ff9800;
    box-shadow: 0 0 0 4px rgba(255, 152, 0, 0.15);
}

.map-search button{
    padding: 10px 14px;
    border: none;
    border-radius: 8px;
    background: #ff9800;
    color: #ffffff;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s ease;
}

.map-search button:hover{
    background: #f57c00;
}

.map-search-results{
    display: none;
    max-height: 220px;
    overflow-y: auto;
    border-top: 1px solid #e2e8f0;
    background: #ffffff;
}

.map-search-results.active{
    display: block;
}

.map-search-item{
    padding: 12px 14px;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: 0.2s ease;
}

.map-search-item:hover{
    background: #f8fafc;
}

.map-search-title{
    margin-bottom: 4px;
    color: #0f172a;
    font-size: 14px;
    font-weight: 700;
}

.map-search-subtitle{
    color: #64748b;
    font-size: 12px;
    line-height: 1.4;
}

.map-search-empty{
    padding: 14px;
    text-align: center;
    color: #64748b;
    font-size: 14px;
}

/* =========================================================
   FOTOĞRAF ÖNİZLEME ALANI
========================================================= */
.image-preview{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.preview-item{
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #f8fafc;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.preview-item img{
    display: block;
    width: 100%;
    height: 110px;
    margin-bottom: 8px;
    border-radius: 10px;
    object-fit: cover;
}

.preview-item span{
    display: block;
    color: #475569;
    font-size: 12px;
    line-height: 1.4;
    word-break: break-word;
}

.preview-empty{
    grid-column: 1 / -1;
    padding: 14px;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    text-align: center;
    color: #64748b;
    font-size: 14px;
}

/* =========================================================
   TABLET
========================================================= */
@media (max-width: 768px){
    .signup-wrapper{
        max-width: 95%;
        padding: 28px 22px;
        border-radius: 20px;
    }

    .choose-type h2{
        font-size: 28px;
    }

    .choose-type .butons{
        gap: 18px;
    }

    .choose-type button{
        width: 230px;
        height: 220px;
        font-size: 23px;
    }

    .form h2{
        font-size: 27px;
    }
}

/* =========================================================
   MOBİL
========================================================= */
@media (max-width: 600px){
    #main{
        padding: 24px 14px;
    }

    .signup-wrapper{
        margin: 30px auto;
        padding: 22px 16px;
    }

    .choose-type .butons{
        flex-direction: column;
        align-items: center;
    }

    .choose-type button{
        width: 100%;
        max-width: 280px;
        height: 220px;
        font-size: 22px;
    }

    .form input,
    .form select{
        padding: 13px 14px;
        font-size: 14px;
    }

    .form button{
        padding: 13px 14px;
        font-size: 15px;
    }

    #locationText{
        font-size: 13px;
    }
}

/* =========================================================
   KÜÇÜK EKRANLAR
========================================================= */
@media (max-width: 400px){
    .signup-wrapper{
        padding: 18px 12px;
    }

    .choose-type h2{
        font-size: 24px;
    }

    .choose-type button{
        height: 190px;
        border-radius: 18px;
        font-size: 20px;
    }

    .form h2{
        font-size: 24px;
    }
}