:root {
    --primary-blue: #0098FF;
    --dark-blue: #0076C8;
    --light-grey: #F0F2F5;
    --text-dark: #333333;
    --text-grey: #666666;
    --error-red: #F44336;
    --success-green: #5CC982;
    --border-color: #D1D5DB;
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

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

body {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica Neue, Arial, sans-serif;
    background-color: #F8FAFC;
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.header {
    background: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #E5E7EB;
}

.logo-container {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-blue);
    line-height: 1;
}

.logo-sub {
    font-size: 1.1rem;
    font-weight: 600;
    color: #4B5563;
}

.progress-bar-container {
    display: flex;
    gap: 10px;
    flex-grow: 1;
    max-width: 600px;
    margin: 0 2rem;
}

.progress-step {
    height: 6px;
    background: #E5E7EB;
    border-radius: 3px;
    flex: 1;
}

.progress-step.active {
    background: var(--primary-blue);
    box-shadow: 0 0 10px rgba(0, 152, 255, 0.3);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.icon-button {
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    color: #4B5563;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #E91E63;
    color: white;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 10px;
    font-weight: bold;
}

.lang-select {
    background: #F3F4F6;
    border: none;
    padding: 5px 10px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
}

.profile-circle {
    width: 38px;
    height: 38px;
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 6px;
}

.profile-circle img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Main Content Area */
.main-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4rem 1rem;
}

.instruction-text {
    text-align: center;
    margin-bottom: 3rem;
}

.instruction-text h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.instruction-text p {
    color: var(--text-grey);
}

.payment-card {
    background: white;
    width: 100%;
    max-width: 500px;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #111827;
}

.trust-note {
    background: #F0F9FF;
    border: 1px solid #BAE6FD;
    color: #0369A1;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.85rem;
    line-height: 1.4;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.trust-note svg {
    flex-shrink: 0;
    margin-top: 2px;
}

/* Form Styles */
.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.input-wrapper {
    position: relative;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
}

.input-wrapper.focused {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 2px rgba(0, 152, 255, 0.1);
}

.input-wrapper.error {
    border-color: var(--error-red);
}

.floating-label {
    position: absolute;
    top: -10px;
    left: 12px;
    background: white;
    padding: 0 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-blue);
}

.input-wrapper.error .floating-label {
    color: var(--error-red);
}

.input-wrapper input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 1rem;
    color: #111827;
}

.card-icon {
    width: 40px;
    height: auto;
    margin-right: 12px;
}

.error-text {
    color: var(--error-red);
    font-size: 0.8rem;
    margin-top: 6px;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1;
}

.info-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    display: block;
    margin-top: 1.5rem;
}

/* Footer Styles */
.footer {
    background: white;
    padding: 1rem 2rem;
    border-top: 1px solid #E5E7EB;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    bottom: 0;
}

.amount-container {
    display: flex;
    flex-direction: column;
}

.amount-value {
    font-size: 1.5rem;
    font-weight: 800;
}

.amount-label {
    font-size: 0.75rem;
    color: var(--text-grey);
}

.nav-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    border: none;
}

.btn-back {
    background: #F3F4F6;
    color: #4B5563;
}

.btn-next {
    background: #E5E7EB; /* Default grey when disabled */
    color: #9CA3AF;
    min-width: 150px;
    cursor: not-allowed;
    font-weight: 600;
}

.btn-next.enabled {
    background: #5CC982; /* Strong green when enabled */
    color: white;
    cursor: pointer;
    font-weight: 800; /* Extra bold */
    box-shadow: 0 4px 12px rgba(92, 201, 130, 0.3);
}

.btn-next.enabled:hover {
    background: #4AB870;
}

/* Preloader Styles */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.preloader-logo {
    width: 180px;
    height: auto;
}

.preloader-gif {
    width: 100px;
    height: auto;
}

/* Help Bubble */
.help-bubble {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 48px;
    height: 48px;
    background: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
}

/* Modal and Overlays (Retained from original but restyled) */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: 0.3s;
}

.loading-overlay.active {
    visibility: visible;
    opacity: 1;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #E5E7EB;
    border-top: 3px solid var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1100;
    visibility: hidden;
    opacity: 0;
    transition: 0.3s;
}

.modal-overlay.active {
    visibility: visible;
    opacity: 1;
}

.modal {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    width: 90%;
    max-width: 440px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.modal-trust-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-k-logo {
    height: 40px;
    width: auto;
}

.pci-logo {
    height: 30px;
    width: auto;
}

.timer-container {
    background: #F0F9FF;
    color: #0098FF;
    padding: 8px 16px;
    border-radius: 50px;
    display: inline-block;
    font-weight: 800;
    font-size: 1.2rem;
    margin: 1rem 0;
    border: 1px solid #BAE6FD;
}

.secure-footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #E5E7EB;
    font-size: 0.75rem;
    color: #6B6B6B;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.modal h3 {
    margin-bottom: 1rem;
}

.modal input {
    width: 100%;
    padding: 12px;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.25rem;
    letter-spacing: 2px;
}

.modal-btns {
    display: flex;
    gap: 1rem;
}

.modal-btns button {
    flex: 1;
}
