/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #4FD1C5 0%, #38B2AC 100%);
    min-height: 100vh;
    color: #1a202c;
}

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

/* Header Styles */
.header {
    background-color: #000000;
    padding: 15px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    letter-spacing: 1px;
}

.logo-azpul {
    color: #FFF;
}

.logo-mat {
    color: #4FD1C5;
}

.nav {
    display: flex;
    gap: 10px;
    align-items: center;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: opacity 0.3s;
}

.nav-link:hover {
    opacity: 0.8;
}

.nav-divider {
    color: rgba(255, 255, 255, 0.5);
}

.main-nav {
    display: flex;
    gap: 25px;
}

.main-nav .nav-link {
    font-size: 15px;
}

.btn-debt {
    background-color: #4FD1C5;
    color: #1a202c;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.btn-debt:hover {
    background-color: #38B2AC;
    transform: translateY(-2px);
}

/* Main Content */
.main {
    padding: 40px 0;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

/* Left Section - Steps */
.left-section {
    padding: 20px 0;
}

.offer-banner {
    background-color: rgba(0, 0, 0, 0.3);
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 40px;
    font-size: 14px;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 60px;
}

.step {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    transition: all 0.3s;
}

.step.completed {
    background-color: rgba(255, 255, 255, 0.95);
}

.step-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(79, 209, 197, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-icon img {
    width: 35px;
    height: 35px;
}

.step-content {
    display: flex;
    gap: 15px;
    flex: 1;
    align-items: center;
}

.step-number {
    width: 35px;
    height: 35px;
    background-color: #C6F432;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    flex-shrink: 0;
}

.step-info h3 {
    font-size: 18px;
    margin-bottom: 5px;
    color: #1a202c;
}

.step-info p {
    font-size: 14px;
    color: #4a5568;
}

.hero-text {
    margin-top: 60px;
}

.hero-text h1 {
    font-size: 48px;
    color: white;
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

/* Right Section - Calculator */
.right-section {
    position: sticky;
    top: 20px;
}

.calculator-card {
    background: linear-gradient(135deg, #805AD5 0%, #6B46C1 100%);
    border-radius: 25px;
    padding: 35px;
    color: white;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: #805AD5;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.close-btn:hover {
    background-color: #6B46C1;
}

.calculator-header {
    margin-bottom: 20px;
}

.calculator-header h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    opacity: 0.9;
}

.amount-display {
    font-size: 36px;
    font-weight: bold;
}

.slider-group {
    margin-bottom: 40px;
}

.slider {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.3);
    outline: none;
    -webkit-appearance: none;
    margin-bottom: 10px;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    opacity: 0.8;
}

.calculator-results {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    margin: 30px 0;
}

.result-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    font-size: 15px;
}

.result-row:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.result-value {
    font-weight: bold;
    font-size: 16px;
}

.calculator-footer {
    text-align: center;
}

.footer-note {
    color: #C6F432;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 15px;
}

.btn-submit {
    background-color: #C6F432;
    color: #1a202c;
    border: none;
    padding: 15px 40px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

.btn-submit:hover {
    background-color: #B4E020;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(198, 244, 50, 0.4);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #f7fafc 100%);
    border-radius: 25px;
    max-width: 900px;
    width: 90%;
    position: relative;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    padding: 50px;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: #718096;
    transition: color 0.3s;
}

.modal-close:hover {
    color: #1a202c;
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.modal-text h2 {
    font-size: 32px;
    color: #1a202c;
    margin-bottom: 20px;
    line-height: 1.3;
}

.modal-text p {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 30px;
}

.modal-download {
    display: flex;
    gap: 20px;
    align-items: center;
}

.qr-code {
    width: 100px;
    height: 100px;
}

.app-store-btn {
    background-color: #000;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    display: flex;
    gap: 10px;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s;
}

.app-store-btn:hover {
    transform: scale(1.05);
}

.modal-image img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Debt Page Styles */
.debt-page {
    background: linear-gradient(135deg, #4FD1C5 0%, #38B2AC 100%);
}

.header-debt {
    background-color: #000;
    padding: 20px 0;
}

.header-debt-content {
    display: flex;
    gap: 20px;
    align-items: center;
}

.header-subtitle h2 {
    color: white;
    font-size: 18px;
    margin-bottom: 2px;
}

.header-subtitle p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.main-debt {
    padding: 40px 0;
    min-height: calc(100vh - 100px);
}

.debt-card {
    background: linear-gradient(135deg, #4FD1C5 0%, #38B2AC 100%);
    border-radius: 30px;
    padding: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.debt-header {
    margin-bottom: 40px;
}

.debt-badge {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.debt-header h1 {
    color: white;
    font-size: 36px;
    margin-bottom: 15px;
    font-weight: 700;
}

.debt-header > p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.debt-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.debt-tab {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.debt-tab.active,
.debt-tab:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.debt-status {
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    text-align: center;
}

.status-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.status-title {
    color: white;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
}

.status-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.debt-forms {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.form-card {
    background-color: white;
    border-radius: 20px;
    padding: 30px;
}

.form-step {
    color: #805AD5;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.form-card h3 {
    font-size: 22px;
    color: #1a202c;
    margin-bottom: 10px;
}

.form-card p {
    color: #4a5568;
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.phone-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.phone-prefix {
    padding: 12px 15px;
    border: 2px solid #E2E8F0;
    border-radius: 10px;
    font-size: 16px;
    background-color: white;
    cursor: pointer;
    flex-shrink: 0;
}

.phone-input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #E2E8F0;
    border-radius: 10px;
    font-size: 16px;
}

.phone-input:focus,
.phone-prefix:focus,
.otp-input:focus {
    outline: none;
    border-color: #4FD1C5;
}

.otp-input-group {
    margin-bottom: 20px;
}

.otp-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #E2E8F0;
    border-radius: 10px;
    font-size: 16px;
}

.btn-verify {
    width: 100%;
    background-color: #4FD1C5;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-verify:hover {
    background-color: #38B2AC;
    transform: translateY(-2px);
}

.form-note {
    margin-top: 15px;
    font-size: 12px;
    color: #718096;
    line-height: 1.5;
}

.debt-footer {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
}

.debt-footer p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 11px;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .main-nav {
        display: none;
    }
    
    .debt-forms {
        grid-template-columns: 1fr;
    }
    
    .modal-body {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-content {
        justify-content: center;
    }
    
    .hero-text h1 {
        font-size: 36px;
    }
    
    .calculator-card {
        padding: 25px;
    }
    
    .debt-card {
        padding: 30px 20px;
    }
    
    .debt-header h1 {
        font-size: 28px;
    }
    
    .modal-content {
        padding: 30px;
    }
}

/* Payment Page Styles */
.payment-page {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    padding-bottom: 50px;
}

.main-payment {
    padding: 40px 0;
}

.payment-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 150px);
}

.payment-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.payment-title {
    text-align: center;
    font-size: 32px;
    color: #1a202c;
    margin-bottom: 10px;
}

.payment-subtitle {
    text-align: center;
    color: #718096;
    margin-bottom: 30px;
    font-size: 15px;
}

/* Virtual Card Styles */
.virtual-card {
    background: linear-gradient(135deg, #4169e1 0%, #1e3a8a 100%);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 20px;
    color: white;
    position: relative;
    box-shadow: 0 15px 40px rgba(65, 105, 225, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 200px;
}

/* Bank-specific card colors */
.virtual-card.kapital-bank {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    box-shadow: 0 15px 40px rgba(220, 38, 38, 0.4);
}

.virtual-card.yelo-bank {
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
    box-shadow: 0 15px 40px rgba(251, 191, 36, 0.4);
}

.virtual-card.abb-bank {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.4);
}

.virtual-card.leo-bank {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    box-shadow: 0 15px 40px rgba(31, 41, 55, 0.4);
}

.virtual-card.uni-bank {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    box-shadow: 0 15px 40px rgba(249, 115, 22, 0.4);
}

.virtual-card.rabite-bank {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    box-shadow: 0 15px 40px rgba(22, 163, 74, 0.4);
}

.virtual-card.bank-respublika {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    box-shadow: 0 15px 40px rgba(30, 58, 138, 0.4);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
}

.card-chip {
    width: 50px;
    height: 40px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border-radius: 8px;
    position: relative;
}

.card-chip::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    background: linear-gradient(135deg, #ffd700 0%, #daa520 100%);
    border-radius: 4px;
}

.bank-logo {
    height: 40px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    transition: opacity 0.3s ease;
    filter: brightness(0) invert(1);
}

.card-number {
    display: flex;
    justify-content: space-between;
    font-size: 24px;
    letter-spacing: 4px;
    margin-bottom: 25px;
    font-weight: 500;
}

.card-details {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.card-holder,
.card-cvv {
    flex: 1;
}

.card-label {
    font-size: 10px;
    text-transform: uppercase;
    opacity: 0.8;
    margin-bottom: 5px;
}

.card-value {
    font-size: 18px;
    font-weight: 500;
}

.card-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 0;
    margin-bottom: 20px;
}

.security-icon {
    font-size: 14px;
    color: #059669;
}

.security-text {
    font-size: 11px;
    color: #374151;
    font-weight: 500;
}

.payment-brand {
    height: 18px;
    width: auto;
}

.payment-brand:first-of-type {
    margin-left: auto;
}

.payment-brand:not(:last-child) {
    margin-right: 10px;
}

/* Payment Form Styles */
.payment-form {
    margin-top: 30px;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: #2d3748;
    font-weight: 600;
    font-size: 14px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s;
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-input.error {
    border-color: #fc8181;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #718096;
    font-weight: 600;
}

.input-wrapper .form-input {
    padding-left: 40px;
}

.form-error {
    display: none;
    color: #e53e3e;
    font-size: 13px;
    margin-top: 5px;
}

.form-group.error .form-error {
    display: block;
}

.btn-pay {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.btn-pay:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.btn-pay:active {
    transform: translateY(0);
}

.payment-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.payment-footer p {
    font-size: 11px;
    color: #718096;
    text-align: center;
    line-height: 1.6;
}

/* Responsive for payment page */
@media (max-width: 768px) {
    .payment-card {
        padding: 30px 20px;
    }

    .payment-title {
        font-size: 26px;
    }

    .card-number {
        font-size: 18px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .virtual-card {
        padding: 25px 20px;
    }

    .card-security {
        flex-wrap: wrap;
        gap: 10px;
    }
}

