:root {
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --radius: 12px;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.5;
    padding: 40px 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 40px;
}

h1 {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

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

.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.form-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    background: #f1f5f9;
    padding: 6px;
    border-radius: 10px;
}

.form-selector button {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    background: transparent;
    color: var(--text-muted);
}

.form-selector button.active {
    background: white;
    color: var(--primary-color);
    box-shadow: var(--shadow);
}

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 24px 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f1f5f9;
    color: #475569;
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group.full-width {
    grid-column: span 2;
}

label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
}

input[type="text"],
input[type="number"],
input[type="tel"],
input[type="email"],
select {
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

input:focus, select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
}

input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.box-fields {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.box-input {
    background: #f8fafc;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.box-number {
    font-size: 0.75rem;
    font-weight: 800;
    color: #94a3b8;
    margin-bottom: 4px;
    display: block;
}

.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 24px 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f1f5f9;
}

.section-header-row .section-title {
    margin: 0;
    border: none;
}

.btn-remove {
    background: #fee2e2;
    color: #ef4444;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-remove:hover {
    background: #fecaca;
}

.btn-secondary {
    background: #f1f5f9;
    color: #475569;
    padding: 12px 24px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    margin-right: 15px;
    font-family: inherit;
}

.btn-secondary:hover {
    background: #e2e8f0;
}

.indicator-grid {
    display: flex;
    gap: 30px;
    margin: 15px 0;
    background: #f8fafc;
    padding: 10px 15px;
    border-radius: 8px;
}

.amount-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #64748b;
    margin: 15px 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.actions {
    margin-top: 40px;
    display: flex;
    justify-content: flex-end;
}

.btn-download {
    background: var(--primary-color);
    color: white;
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-download:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

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

.hidden {
    display: none;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-in {
    animation: fadeIn 0.4s ease-out forwards;
}
