/* ========================================
   EXPRESS ПОЗИКИ - STYLES (Ukrainian Version)
   Elegant Financial Form Design
======================================== */

:root {
    /* Colors - Ukrainian flag inspired accent */
    --primary: #1a5f4a;
    --primary-light: #2d8b6e;
    --primary-dark: #0f3d2f;
    --accent: #ffd700;
    --accent-light: #ffe44d;
    
    --bg-primary: #faf9f7;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    
    --text-primary: #1a1a1a;
    --text-secondary: #5a5a5a;
    --text-muted: #8a8a8a;
    
    --border: #e5e2dc;
    --border-focus: #1a5f4a;
    
    --success: #28a745;
    --error: #dc3545;
    --warning: #ffc107;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    
    /* Typography */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Source Sans 3', -apple-system, sans-serif;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
}

/* ========================================
   RESET & BASE
======================================== */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background Pattern */
.background-pattern {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(26, 95, 74, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 215, 0, 0.03) 0%, transparent 50%),
        linear-gradient(135deg, #faf9f7 0%, #f5f3ef 100%);
    pointer-events: none;
    z-index: -1;
}

/* ========================================
   HEADER
======================================== */

header {
    padding: var(--space-lg) var(--space-xl);
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.logo-icon {
    font-size: 1.8rem;
}

.logo-text .highlight {
    color: var(--primary);
}

.lang-badge {
    background: linear-gradient(135deg, #0057b8 50%, #ffd700 50%);
    color: white;
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* ========================================
   MAIN CONTAINER
======================================== */

.container {
    max-width: 680px;
    margin: 0 auto;
    padding: var(--space-xl);
    min-height: calc(100vh - 200px);
}

/* ========================================
   STEPS
======================================== */

.step {
    display: none;
    animation: fadeIn 0.5s ease;
}

.step.active {
    display: block;
}

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

/* ========================================
   CARDS
======================================== */

.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--space-2xl);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0057b8, #ffd700);
}

/* Step Indicator */
.step-indicator {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-xl);
    display: flex;
    align-items: baseline;
    gap: var(--space-xs);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.step-number {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
}

/* Headings */
.card h1, .card h2 {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.card h1 {
    font-size: 2rem;
}

.card h2 {
    font-size: 1.75rem;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: var(--space-xl);
}

/* ========================================
   CALCULATOR
======================================== */

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

.calculator-body {
    margin-top: var(--space-xl);
}

.slider-group {
    margin-bottom: var(--space-xl);
}

.slider-group label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
}

.label-text {
    font-weight: 500;
    color: var(--text-primary);
}

.label-value {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
}

/* Amount Input Box */
.amount-input-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.amount-input {
    width: 180px;
    padding: var(--space-md) var(--space-lg);
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary);
    text-align: center;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    transition: var(--transition-fast);
}

.amount-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(26, 95, 74, 0.1);
}

.amount-input::-webkit-inner-spin-button,
.amount-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.amount-input[type=number] {
    -moz-appearance: textfield;
}

.amount-suffix {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
}

/* Range Slider */
input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: var(--radius-full);
    background: linear-gradient(to right, #0057b8, #ffd700);
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 3px solid var(--primary);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: var(--transition-fast);
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

input[type="range"]::-moz-range-thumb {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 3px solid var(--primary);
    box-shadow: var(--shadow-md);
    cursor: pointer;
}

.range-labels {
    display: flex;
    justify-content: space-between;
    margin-top: var(--space-sm);
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Calculation Result */
.calculation-result {
    background: linear-gradient(135deg, #f8f7f5 0%, #f0eeea 100%);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin: var(--space-xl) 0;
    border: 1px solid var(--border);
}

.result-main {
    text-align: center;
    padding-bottom: var(--space-md);
    margin-bottom: var(--space-md);
    border-bottom: 1px solid var(--border);
}

.result-label {
    display: block;
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xs);
}

.result-big {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
}

.result-details {
    padding: var(--space-sm) 0;
}

.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-xs) 0;
}

.result-row.small {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.result-row.small span:last-child {
    color: var(--text-primary);
    font-weight: 500;
}

.rrso-info {
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px dashed var(--border);
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
}

/* ========================================
   FORMS
======================================== */

.form-body {
    margin-top: var(--space-lg);
}

.form-row {
    display: flex;
    gap: var(--space-md);
}

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

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

.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-primary);
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 4px rgba(26, 95, 74, 0.1);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

/* Date Input */
.date-input-wrapper {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.date-part {
    width: 70px;
    text-align: center;
    padding: var(--space-md) var(--space-sm) !important;
}

.date-part.year {
    width: 100px;
}

.date-separator {
    color: var(--text-muted);
    font-size: 1.2rem;
    font-weight: 500;
}

/* Phone Input */
.phone-input {
    display: flex;
    align-items: stretch;
}

.phone-prefix {
    display: flex;
    align-items: center;
    padding: 0 var(--space-md);
    background: #f5f3ef;
    border: 2px solid var(--border);
    border-right: none;
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    font-weight: 500;
    color: var(--text-secondary);
}

.phone-input input {
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* Input with Suffix */
.input-with-suffix {
    display: flex;
    align-items: stretch;
}

.input-with-suffix input {
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    border-right: none;
}

.input-suffix {
    display: flex;
    align-items: center;
    padding: 0 var(--space-md);
    background: #f5f3ef;
    border: 2px solid var(--border);
    border-left: none;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Error Messages */
.error-message {
    display: block;
    color: var(--error);
    font-size: 0.85rem;
    margin-top: var(--space-xs);
    min-height: 1.2em;
}

.form-group input.error {
    border-color: var(--error);
}

.form-group input.error:focus {
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.1);
}

/* ========================================
   EMPLOYMENT & DOCUMENT OPTIONS
======================================== */

.employment-options,
.document-options {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-top: var(--space-sm);
}

.employment-option,
.document-option {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-base);
    position: relative;
}

.employment-option:hover,
.document-option:hover {
    border-color: var(--primary-light);
    background: #f8f7f5;
}

.employment-option.selected,
.document-option.selected {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(26, 95, 74, 0.08) 0%, rgba(26, 95, 74, 0.03) 100%);
    box-shadow: 0 0 0 4px rgba(26, 95, 74, 0.1);
}

.employment-option input,
.document-option input {
    display: none;
}

.option-icon {
    font-size: 1.8rem;
}

.option-text {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-primary);
}

.option-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-left: auto;
}

.employment-option.selected .option-text,
.document-option.selected .option-text {
    color: var(--primary);
}

/* Conditional Fields */
.conditional-fields {
    animation: slideDown 0.3s ease;
}

.conditional-fields.hidden {
    display: none;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   UPLOAD AREAS
======================================== */

.upload-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.upload-section.single {
    grid-template-columns: 1fr;
}

.upload-group label {
    display: block;
    font-weight: 500;
    margin-bottom: var(--space-sm);
}

.upload-area {
    position: relative;
    border: 2px dashed var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    text-align: center;
    cursor: pointer;
    transition: var(--transition-fast);
    background: #fafaf9;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-area:hover {
    border-color: var(--primary-light);
    background: #f5f3ef;
}

.upload-area.dragover {
    border-color: var(--primary);
    background: rgba(26, 95, 74, 0.05);
}

.upload-area input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
}

.upload-icon {
    font-size: 2.5rem;
}

.upload-text {
    font-weight: 500;
    color: var(--text-secondary);
}

.upload-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.upload-preview {
    position: relative;
    width: 100%;
}

.upload-preview.hidden {
    display: none;
}

.upload-preview img {
    max-width: 100%;
    max-height: 150px;
    border-radius: var(--radius-sm);
    object-fit: contain;
}

.remove-file {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--error);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.remove-file:hover {
    transform: scale(1.1);
}

.upload-group.large .upload-area {
    min-height: 250px;
}

/* ========================================
   INFO BOX
======================================== */

.info-box {
    display: flex;
    gap: var(--space-md);
    background: linear-gradient(135deg, #e8f4f0 0%, #d9ebe5 100%);
    border: 1px solid rgba(26, 95, 74, 0.2);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.info-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.info-box p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.instructions-list {
    margin-top: var(--space-sm);
    margin-left: var(--space-lg);
    color: var(--text-secondary);
}

.instructions-list li {
    margin-bottom: var(--space-xs);
}

/* ========================================
   BUTTONS
======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-base);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 2px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--text-secondary);
    color: var(--text-primary);
}

.btn-arrow {
    transition: var(--transition-fast);
}

.btn:hover .btn-arrow {
    transform: translateX(3px);
}

.btn-secondary:hover .btn-arrow {
    transform: translateX(-3px);
}

.btn-group {
    display: flex;
    gap: var(--space-md);
    justify-content: space-between;
    margin-top: var(--space-lg);
}

.btn-submit {
    min-width: 180px;
}

.btn-loading {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.btn-loading.hidden {
    display: none;
}

.btn-text.hidden {
    display: none;
}

.mini-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* ========================================
   LOADING SCREEN
======================================== */

.loading-card {
    text-align: center;
    padding: var(--space-2xl) var(--space-xl);
}

.loading-animation {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto var(--space-xl);
}

.spinner {
    width: 80px;
    height: 80px;
    border: 4px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.pulse-rings {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.ring {
    position: absolute;
    width: 80px;
    height: 80px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    animation: pulse 2s ease-out infinite;
}

.ring:nth-child(2) { animation-delay: 0.5s; }
.ring:nth-child(3) { animation-delay: 1s; }

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

.loading-card h2 {
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
}

.loading-progress {
    width: 100%;
    max-width: 300px;
    height: 6px;
    background: var(--border);
    border-radius: var(--radius-full);
    margin: var(--space-lg) auto;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #0057b8, #ffd700);
    border-radius: var(--radius-full);
    width: 0%;
    transition: width 0.3s ease;
}

.loading-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ========================================
   SUMMARY
======================================== */

.summary-card {
    text-align: center;
}

.success-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--success), #34c759);
    color: white;
    font-size: 2rem;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
}

.summary-sections {
    text-align: left;
    margin: var(--space-xl) 0;
}

.summary-section {
    background: #f8f7f5;
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin-bottom: var(--space-md);
}

.summary-section h3 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--border);
}

.summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm) var(--space-lg);
}

.summary-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.summary-item.full-width {
    grid-column: 1 / -1;
}

.summary-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.summary-value {
    font-weight: 500;
    color: var(--text-primary);
}

/* Attachments Preview */
.attachments-preview {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.attachment {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    background: white;
    border-radius: var(--radius-sm);
}

.attachment-icon {
    font-size: 1.2rem;
}

.attachment-status {
    margin-left: auto;
    color: var(--success);
    font-weight: bold;
}

/* Consent Section */
.consent-section {
    text-align: left;
    margin: var(--space-xl) 0;
    padding: var(--space-lg);
    background: #f8f7f5;
    border-radius: var(--radius-md);
}

.checkbox-option {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
    cursor: pointer;
}

.checkbox-option:last-child {
    margin-bottom: 0;
}

.checkbox-option input {
    display: none;
}

.checkbox-custom {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    position: relative;
    transition: var(--transition-fast);
    margin-top: 2px;
}

.checkbox-option input:checked + .checkbox-custom {
    background: var(--primary);
    border-color: var(--primary);
}

.checkbox-option input:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.85rem;
    font-weight: bold;
}

.checkbox-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.checkbox-label a {
    color: var(--primary);
    text-decoration: underline;
}

/* ========================================
   SUCCESS SCREEN
======================================== */

.success-card {
    text-align: center;
    padding: var(--space-2xl);
}

.success-animation {
    margin-bottom: var(--space-xl);
}

.checkmark {
    width: 100px;
    height: 100px;
    margin: 0 auto;
}

.checkmark svg {
    width: 100%;
    height: 100%;
}

.checkmark circle {
    stroke: var(--success);
    stroke-width: 2;
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark path {
    stroke: var(--success);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.6s forwards;
}

@keyframes stroke {
    100% { stroke-dashoffset: 0; }
}

.success-message {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 400px;
    margin: 0 auto var(--space-xl);
    line-height: 1.6;
}

.reference-number {
    background: linear-gradient(135deg, #e8f4f0 0%, #d9ebe5 100%);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    display: inline-block;
}

.reference-number span {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: var(--space-xs);
}

.reference-number strong {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--primary);
    letter-spacing: 2px;
}

.success-hint {
    margin-top: var(--space-lg);
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ========================================
   FOOTER
======================================== */

footer {
    text-align: center;
    padding: var(--space-xl);
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid var(--border);
    background: var(--bg-secondary);
}

.footer-links {
    margin-top: var(--space-sm);
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary);
}

/* ========================================
   RESPONSIVE
======================================== */

@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .container {
        padding: var(--space-md);
    }
    
    .card {
        padding: var(--space-xl) var(--space-lg);
    }
    
    .card h1 {
        font-size: 1.75rem;
    }
    
    .card h2 {
        font-size: 1.5rem;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .upload-section {
        grid-template-columns: 1fr;
    }
    
    .btn-group {
        flex-direction: column-reverse;
    }
    
    .btn-group .btn {
        width: 100%;
    }
    
    .step-indicator {
        position: static;
        margin-bottom: var(--space-md);
    }
    
    .summary-grid {
        grid-template-columns: 1fr;
    }
    
    .date-input-wrapper {
        justify-content: flex-start;
    }
    
    .amount-input {
        width: 140px;
        font-size: 1.5rem;
    }
    
    .result-big {
        font-size: 2rem;
    }
    
    .option-desc {
        display: none;
    }
}

@media (max-width: 480px) {
    .label-value {
        font-size: 1.25rem;
    }
    
    .upload-area {
        padding: var(--space-lg);
        min-height: 150px;
    }
    
    .date-part {
        width: 55px;
        padding: var(--space-sm) !important;
    }
    
    .date-part.year {
        width: 75px;
    }
}

