@import url('https://api.fontshare.com/v2/css?f[]=yellix@400,500,600,700&display=swap');

:root {
    --primary-color: #023032;
    --primary-dark: #011a1b;
    --primary-light: #0a4547;
    --accent-color: #c2eb89;
    --accent-dark: #a6cf6e;
    --accent-light: #d5f4ac;
    --text-light: #f8f9fa;
    --text-dark: #212529;
    --text-muted: #6c757d;
    --error-color: #dc3545;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --border-radius: 8px;
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Yellix', sans-serif;
    background: white;
    color: var(--text-dark);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.payment-container {
    width: 100%;
    min-height: 100vh;
    background: #f8f9fa;
    padding: 40px 20px;
}

.payment-content {
    display: flex;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.payment-form {
    flex: 1;
    max-width: 700px;
}

.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.form-logo {
    height: 45px;
    width: auto;
    transition: transform var(--transition-speed) ease;
}

.form-logo:hover {
    transform: scale(1.05);
}

.logo-separator {
    color: var(--primary-color);
    font-size: 24px;
    font-weight: 300;
    opacity: 0.5;
}

.e-tahsilat {
    color: var(--primary-color);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.contact-button {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid var(--primary-color);
    padding: 12px 20px;
    border-radius: 12px;
    color: var(--primary-color);
    font-weight: 500;
    cursor: pointer;
    font-family: 'Yellix', sans-serif;
    transition: all var(--transition-speed) ease;
}

.contact-button:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(2, 48, 50, 0.15);
}

.contact-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.popup-content {
    background: white;
    padding: 35px;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.popup-content h3 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    color: var(--primary-color);
    font-weight: 600;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 25px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-dark);
    padding: 12px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all var(--transition-speed) ease;
}

.contact-item:hover {
    transform: translateX(5px);
    background: #f0f2f5;
}

.close-button {
    width: 100%;
    padding: 14px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-family: 'Yellix', sans-serif;
    font-weight: 500;
    transition: all var(--transition-speed) ease;
}

.close-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(2, 48, 50, 0.15);
}

h2 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: 600;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.form-col {
    flex: 1;
}

input[type="text"],
input[type="email"],
input[type="tel"] {
    width: 100%;
    padding: 14px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Yellix', sans-serif;
    margin-bottom: 15px;
    transition: all var(--transition-speed) ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(2, 48, 50, 0.1);
    outline: none;
}

.amount-input {
    position: relative;
    margin-bottom: 20px;
}

.currency {
    position: absolute;
    left: 14px;
    top: 39%;
    transform: translateY(-50%);
    color: var(--text-dark);
    font-weight: 500;
}

.amount-input input {
    padding-left: 35px;
}

.payment-method {
    margin-bottom: 25px;
}

.method-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    border: 2px solid #e0e0e0;
    border-radius: 16px;
    cursor: pointer;
    background: white;
    transition: all var(--transition-speed) ease;
}

.method-option.selected {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(2, 48, 50, 0.1);
}

.method-info h3 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-weight: 600;
}

.method-info p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.payment-logos {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.payment-logos-band {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.preview-section {
    flex: 1;
    padding: 35px;
    background: var(--primary-color);
    border-radius: 20px;
    position: sticky;
    top: 40px;
    height: fit-content;
    max-width: 500px;
    color: white;
    box-shadow: 0 4px 20px rgba(2, 48, 50, 0.15);
}

.preview-header {
    margin-bottom: 35px;
    text-align: center;
}

.preview-header h2 {
    color: white;
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.preview-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.preview-item {
    padding: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.preview-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.preview-value {
    color: white;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.preview-value.empty {
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

.bank-transfer-section {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.bank-transfer-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.bank-transfer-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
}

.bank-account-info {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
}

.bank-detail {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.bank-detail:last-child {
    margin-bottom: 0;
}

.detail-label {
    color: rgba(255, 255, 255, 0.7);
}

.detail-value {
    color: white;
    font-weight: 500;
}

.iban-value {
    display: flex;
    align-items: center;
    gap: 8px;
}

.copy-button {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    width: 24px;
    height: 24px;
}

.copy-button svg {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease, opacity 0.2s ease;
}

.copy-button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.copy-button:active {
    transform: scale(0.95);
}

.copy-button svg.check-icon {
    color: var(--success-color);
    animation: checkmark 0.4s ease-out forwards;
}

@keyframes checkmark {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.payment-button-container {
    max-width: 1400px;
    margin: 20px auto 0;
    padding: 0 40px;
}

.submit-button {
    width: 100%;
    padding: 16px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Yellix', sans-serif;
    transition: all var(--transition-speed) ease;
}

.submit-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(2, 48, 50, 0.2);
}

.submit-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.error {
    border-color: var(--error-color) !important;
}

.error-message {
    color: var(--error-color);
    font-size: 0.9rem;
    margin-top: -10px;
    margin-bottom: 15px;
}

@media (max-width: 1024px) {
    .payment-content {
        flex-direction: column;
        padding: 25px;
    }

    .preview-section {
        position: static;
        max-width: 100%;
    }

    .payment-button-container {
        padding: 0 25px;
    }
}

@media (max-width: 768px) {
    .payment-container {
        padding: 20px 15px;
    }

    .form-header {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .method-option {
        padding: 20px;
    }

    .payment-logos-band {
        height: 28px;
    
    }

    input[type="text"],
    input[type="email"],
    input[type="tel"] {
        padding: 12px;
        font-size: 0.95rem;
    }

    .header-left {
        gap: 10px;
    }

    .form-logo {
        height: 35px;
    }

    .logo-separator {
        font-size: 20px;
    }

    .e-tahsilat {
        font-size: 16px;
    }
}