﻿/* -------------------------------------------------- */
/* payment.css - Temiz ve tamamlanmış versiyon        */
/* -------------------------------------------------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 90rem; /* 1440px */
    margin: 40px auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    padding: 60px 20px;
}

.title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 4px;
    color: #333;
}

.subtitle {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
}

.step-indicators {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
}

.step {
    flex: 1;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 3px solid #ccc;
    transition: 0.3s;
    font-weight: bold;
    color: #777;
}

    .step.active {
        border-color: #147ec3;
        color: #147ec3;
    }

.form-step {
    display: none;
    animation: fadeIn 0.4s ease;
}

    .form-step.active {
        display: block;
    }

.form-group {
    position: relative;
    margin-bottom: 20px;
}

    .form-group input,
    .form-group textarea {
        width: 95%;
        padding: 14px 12px;
        border: 1px solid #ccc;
        border-radius: 8px;
        font-size: 1rem;
        outline: none;
        background: #fff;
        transition: border 0.3s, box-shadow 0.3s;
    }

        .form-group input:focus,
        .form-group textarea:focus {
            border-color: #147ec3;
            box-shadow: 0 0 8px rgba(25, 135, 84, 0.2);
        }

    .form-group label {
        top: 14px;
        left: 14px;
        background: #fff;
        padding: 0 4px;
        color: #999;
        font-size: 0.9rem;
        pointer-events: none;
        transition: 0.2s;
    }

    .form-group input:focus + label,
    .form-group input:not(:placeholder-shown) + label,
    .form-group textarea:focus + label,
    .form-group textarea:not(:placeholder-shown) + label {
        top: -8px;
        left: 10px;
        font-size: 0.75rem;
        color: #147ec3;
    }

.buttons {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

button {
    padding: 12px 24px;
    background-color: #147ec3;
    border: none;
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s;
}

    button:hover {
        background-color: #045b95;
    }

iframe {
    width: 100%;
    height: 300px;
    border: 1px solid #ccc;
    border-radius: 8px;
    margin-bottom: 20px;
}

.result-success {
    text-align: center;
    padding: 30px;
    color: #147ec3;
    font-size: 1rem;
    border: 1px solid #d4edda;
    background: #f8fdf8;
    border-radius: 10px;
}

    .result-success i {
        font-size: 2rem;
        margin-bottom: 10px;
    }

/* Typewriter effect */
.typewrite {
    display: inline-block;
    font-size: 1.6rem;
    color: #147ec3;
    font-weight: 600;
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid #147ec3;
    animation: blink-caret 0.75s step-end infinite;
}

iframe#paymentIframe {
    width: 100%;
    height: 600px;
    border: none;
    display: block;
}
.wrap {
    display: inline;
}

@keyframes blink-caret {
    from, to {
        border-color: transparent
    }

    50% {
        border-color: #147ec3
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 600px) {
    .step-indicators {
        flex-direction: column;
    }

    .buttons {
        flex-direction: column;
    }

    button {
        width: 100%;
        margin-bottom: 10px;
    }
}
/* -------------------------------------------------- */
/* İlk Adım: Inputları 2’şer 2’şer yan yana gösterme  */
/* -------------------------------------------------- */
.form-step[data-step-index="0"] .form-row {
    display: flex;
    flex-wrap: wrap;
    margin: -0.5rem;
}

.form-step[data-step-index="0"] .form-group {
    width: 50%;
    padding: 0.5rem;
    box-sizing: border-box;
}

/* Mobilde tek sütuna geçiş */
@media (max-width: 768px) {
    .form-step[data-step-index="0"] .form-row {
        display: block;
        margin: 0;
    }

    .form-step[data-step-index="0"] .form-group {
        width: 100%;
        padding: 0;
    }
}

/* Header */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #147ec3;
    color: white;
    padding: 12px 30px;
    border-bottom: 3px solid #145c40;
    border-radius: 0 0 10px 10px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    height: 40px;
    width: 40px;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 600;
}

.badge {
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
}

    .badge i {
        margin-right: 6px;
    }

/* Step icon renklendirme */
.step i {
    margin-right: 6px;
    color: #147ec3;
}

/* Hover'lar */
.step:hover {
    background: #f1fdf4;
    border-color: #147ec3;
    cursor: pointer;
}


.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.8;
}

    .btn-loading .btn-text {
        visibility: hidden;
    }

    .btn-loading::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 20px;
        height: 20px;
        border: 3px solid #fff;
        border-top-color: transparent;
        border-radius: 50%;
        animation: spin 0.8s linear infinite;
        transform: translate(-50%, -50%);
    }

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}
