/* Loader Styles */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.loader-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s linear infinite;
}

.loader-text {
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Modal Styles */
.payment-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    pointer-events: none;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    max-width: 800px;
    width: 90%;
    animation: slideIn 0.3s ease-out;
    position: relative;
    padding-top: 3rem;
    pointer-events: auto;
}

.modal-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    position: relative;
}

.modal-icon.success {
    background: var(--success-color);
}

.modal-icon.error {
    background: var(--error-color);
}

.modal-icon.success::after {
    content: '';
    width: 24px;
    height: 12px;
    border: 4px solid white;
    border-top: 0;
    border-right: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%) rotate(-45deg);
}

.modal-icon.error::before,
.modal-icon.error::after {
    content: '';
    position: absolute;
    width: 32px;
    height: 4px;
    background: white;
    border-radius: 2px;
    top: 50%;
    left: 50%;
}

.modal-icon.error::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.modal-icon.error::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.modal-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.modal-message {
    color: #666;
    margin-bottom: 1.5rem;
}

.modal-button {
    padding: 0.75rem 2rem;
    border-radius: 8px;
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s;
}

.modal-button.success {
    background: var(--success-color);
    color: white;
}

.modal-button.primary {
    background: var(--primary-color);
    color: white;
}

.modal-button:hover {
    transform: translateY(-2px);
}

@keyframes slideIn {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f1f2f6;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 100;
}

.modal-close:hover {
    background: #e4e6eb;
    transform: rotate(90deg);
}

/* 3D Secure iframe için stil */
.modal-body iframe {
    width: 100%;
    min-height: 400px;
    border: none;
    border-radius: 8px;
}

/* Modal tipleri için renkler */
.modal-content.info .modal-icon {
    background: var(--primary-color);
}

.modal-content.info .modal-button {
    background: var(--primary-color);
    color: white;
}

/* Diğer tipler için mevcut stiller kullanılacak */

/* Modal içindeki iframe için stil */
.secure-iframe {
    width: 100%;
    height: 600px;
    border: none;
    border-radius: 8px;
    background: #f5f6fa;
}

/* Modal genişliğini iframe için artır */
.modal-content {
    max-width: 800px;
}

/* Kapatılamaz modal için stil */
.payment-modal[data-closable="false"] .modal-content {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* 3D Secure iframe container stilleri */
.secure-frame-container {
    background: #f8fafc;
    border-radius: 12px;
    overflow: hidden;
}

.secure-frame-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: #fff;
    border-bottom: 1px solid var(--border-color);
}

.secure-frame-icon {
    font-size: 1.25rem;
}

.secure-frame-title {
    font-weight: 500;
    color: var(--text-color);
}

/* Responsive iyileştirmeler */
@media (max-width: 480px) {
    .modal-content {
        width: 95%;
        padding: 1.25rem;
    }
    
    .secure-iframe {
        height: 450px; /* Mobil için daha uygun yükseklik */
    }
} 


:root {
    --primary-color: #2563eb;
    --text-color: #2d3436;
    --bg-color: #f5f6fa;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.payment-form {
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    width: 90%;
    max-width: 480px;
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.input-group {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
}

.card-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

.submit-button {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.secure-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    color: #64748b;
    font-size: 0.9rem;
}

.secure-badge svg {
    width: 16px;
    height: 16px;
}

@media (max-width: 480px) {
    .payment-form {
        padding: 1.5rem;
    }
}

.currency-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.7rem center;
    background-size: 1em;
    padding-right: 2.5rem;
}

.amount-group {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.section-divider {
    border-top: 1px solid var(--border-color);
    margin: 2rem 0;
    padding-top: 1rem;
}

.section-title {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}