﻿.loading-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4B22F4;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading-text {
    font-size: 18px;
    color: #555;
    font-style: italic;
}





.card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    padding: 24px;
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 6px 16px rgba(0,0,0,0.12);
    }

    .card h2 {
        font-size: 22px;
        font-weight: 700;
        margin-bottom: 20px;
        color: #4B22F4;
    }

/* Ortak teminat stilleri */
.teminat {
    padding: 18px 20px;
    margin-bottom: 16px;
    border-radius: 12px;
    border: 1px solid transparent;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

    .teminat h3 {
        font-size: 17px;
        font-weight: 600;
        margin-bottom: 6px;
        color: #2c2c54;
    }

    .teminat p {
        font-size: 14px;
        color: #333;
        margin: 0;
        line-height: 1.5;
    }

.teminat-icon {
    font-size: 18px;
    background: #fff;
    border-radius: 50%;
    padding: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.teminat-header {
    display: flex;
    align-items: center; /* dikey ortalama */
    gap: 10px; /* ikon ile yazı arası boşluk */
    margin-bottom: 8px; /* paragraftan biraz boşluk */
}
/* Pastel arka planlar */
.teminat.kapsamli {
    background: linear-gradient(135deg, #eef4ff, #f8fbff); /* pastel mavi */
    border-color: #cfdcff;
}

    .teminat.kapsamli .teminat-icon {
        color: #3d5af1;
    }

.teminat.genis {
    background: linear-gradient(135deg, #ecfff3, #f9fffb); /* pastel yeşil */
    border-color: #c8f0d8;
}

    .teminat.genis .teminat-icon {
        color: #2b9348;
    }

.teminat.yas {
    background: linear-gradient(135deg, #fff8e6, #fffdf7); /* pastel sarı/turuncu */
    border-color: #ffe1a8;
}

    .teminat.yas .teminat-icon {
        color: #f77f00;
    }

.teminat.tamir {
    background: linear-gradient(135deg, #f7ecff, #fcfaff); /* pastel mor */
    border-color: #e0c3fc;
}

    .teminat.tamir .teminat-icon {
        color: #9d4edd;
    }

/* Hover efekti: biraz koyulaşsın */
.teminat:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    filter: brightness(0.98);
}





.card-footer {
    margin-top: 50px;
    display: flex;
    flex-direction: column; /* satır yerine sütun yap */
    align-items: center; /* ortala */
    justify-content: center;
    border-top: 1px solid #eee;
    padding-top: 20px;
    text-align: center; /* yazılar ortalansın */
}

.price-value {
    display: block;
    font-size: 42px;
    font-weight: 800;
    color: #4B22F4;
    margin-bottom: 20px; /* butondan biraz boşluk */
    text-align: center;
}

.price-label {
    display: block;
    font-size: 20px;
    font-weight: 600;
    color: #555;
    margin-bottom: 10px; /* aralık biraz daha küçük */
    text-align: center;
}

.btn-satin-al {
    background: #2cbc63;
    color: #fff;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: block;
    width: 100%;
    max-width: 220px; /* daha geniş ve ortalanmış */
    text-align: center;
    transition: 0.2s;
    margin: 0 auto; /* ortala */
}

    .btn-satin-al:hover {
        background: #249d50;
    }







/* Başta gizli olacak */
#resultContainer {
    display: none;
    opacity: 0;
}

/* Slide-Fade animasyonu */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Gösterileceği zaman */
#resultContainer.show {
    display: block;
    animation: fadeUp 0.6s ease forwards;
}















* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa; /* çok açık gri */
    color: #111;
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 30px 10px 30px;
    border-bottom: 1px solid #eee;
}

.logo img {
    height: 50px;
    display: block;
}

.back-btn {
    border: 1px solid #ccc;
    padding: 6px 14px;
    border-radius: 24px;
    background-color: #fff;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

    .back-btn:hover {
        background-color: #f5f5f5;
        border-color: #999;
    }

.container {
    max-width: 500px;
    margin: 40px auto;
    padding: 0 24px;
}

h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.3;
}

.form-group {
    margin-bottom: 20px;
}

.field-label {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 8px;
    display: block;
    color: #333;
}

.input-box {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    border-radius: 10px;
    border: 1px solid #ccc;
    background-color: #f9f9f9;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

    .input-box:focus {
        border-color: #4B22F4;
        background-color: #fff;
        outline: none;
        box-shadow: 0 0 0 3px rgba(75, 34, 244, 0.1);
    }

.submit-btn {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    background-color: #4B22F4;
    border: none;
    border-radius: 25px;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s ease;
}

    .submit-btn:hover {
        background-color: #3717d1;
    }

.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.error-text {
    font-size: 13px;
    color: red;
    margin-top: 5px;
    display: none;
}

.hidden {
    display: none;
}

@media (max-width: 600px) {
    h1 {
        font-size: 24px;
    }

    .container {
        margin-top: 30px;
    }
}

#resultContainer .card {
    width: 120%; /* ekranın %90’ı kadar */
    max-width: 1100px; /* ama çok fazla da taşmasın */
    margin: 0 auto;
    transform: scale(0.9);
}

#resultContainer {
    transform: scale(0.9);
    max-width: 100%; /* container’ın kısıtlamasını kaldır */
    padding: 0; /* istersen kenar boşluklarını sıfırla */
}


/* Modal arka planı */
.otp-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Modal kutusu */
.otp-box {
    background: #fff;
    padding: 30px 25px;
    border-radius: 16px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    animation: fadeInScale 0.3s ease;
}

    .otp-box h2 {
        font-size: 22px;
        margin-bottom: 10px;
        color: #2c2c54;
        font-weight: 700;
    }

.otp-desc {
    font-size: 15px;
    margin-bottom: 20px;
    color: #555;
}

/* Input */
.otp-input {
    width: 100%;
    padding: 14px;
    font-size: 20px;
    text-align: center;
    border: 2px solid #ddd;
    border-radius: 10px;
    letter-spacing: 6px;
    font-weight: bold;
    outline: none;
    transition: border-color 0.2s ease;
}

    .otp-input:focus {
        border-color: #4B22F4;
        box-shadow: 0 0 0 3px rgba(75, 34, 244, 0.15);
    }

/* Hata mesajı */
.otp-error {
    font-size: 13px;
    color: #d9534f;
    margin-top: 8px;
    display: none;
}

/* Butonlar */
.otp-actions {
    display: flex;
    gap: 12px;
    margin-top: 25px;
    justify-content: center;
}

.otp-btn {
    flex: 1;
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    border: none;
}

    .otp-btn.primary {
        background: #4B22F4;
        color: #fff;
    }

        .otp-btn.primary:hover {
            background: #3717d1;
        }

    .otp-btn.secondary {
        background: #f1f1f1;
        color: #333;
    }

        .otp-btn.secondary:hover {
            background: #e2e2e2;
        }

/* Animasyon */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hidden {
    display: none !important;
}


.otp-error {
    display: none;
    margin-top: 15px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    background: #f8d7da;
    color: #842029;
    border: 1px solid #f5c2c7;
    animation: shake 0.3s ease;
}

/* Küçük sarsma animasyonu */
@keyframes shake {
    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    50% {
        transform: translateX(5px);
    }

    75% {
        transform: translateX(-5px);
    }

    100% {
        transform: translateX(0);
    }
}
