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

body {
    font-family: 'Inter', sans-serif;
    background-color: #f9fafb;
    color: #1f2937;
    line-height: 1.6;
}

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

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

.logo {
    height: 80px;
    margin-bottom: 16px;
}

h1 {
    color: #dc2626;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.subtitle {
    color: #6b7280;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    padding: 32px;
    border-top: 4px solid #dc2626;
}

.section {
    margin-bottom: 32px;
}

.section-title {
    color: #dc2626;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #fecaca;
}

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

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

.form-grid.address {
    grid-template-columns: repeat(3, 1fr);
}

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

.form-group.full {
    grid-column: 1 / -1;
}

label {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 6px;
    color: #374151;
}

label .required {
    color: #dc2626;
}

input[type="text"],
input[type="email"],
input[type="tel"] {
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus {
    outline: none;
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.iban-input {
    font-family: monospace;
}

/* Signature Section */
.signature-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.signature-option {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.signature-option:hover {
    background-color: #f9fafb;
}

.signature-option.selected {
    border-color: #dc2626;
    background-color: #fef2f2;
}

.signature-option input[type="radio"] {
    margin-right: 8px;
}

.signature-option-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.signature-option-desc {
    font-size: 0.875rem;
    color: #6b7280;
}

.signature-input-box {
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 24px;
}

.signature-name-input {
    font-size: 1.5rem;
    font-style: italic;
    color: #dc2626;
    padding: 16px;
    text-align: center;
}

#signatureCanvas canvas {
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    cursor: crosshair;
    touch-action: none;
    background: transparent;
}

.canvas-controls {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.btn-clear {
    padding: 8px 16px;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
}

.btn-clear:hover {
    background: #e5e7eb;
}

/* Terms */
.terms-section {
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
    margin-bottom: 24px;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: #dc2626;
}

.checkbox-label {
    font-size: 1rem;
}

.checkbox-label a {
    color: #dc2626;
    font-weight: 600;
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* Submit Button */
.btn-submit {
    width: 100%;
    padding: 16px 32px;
    background: #dc2626;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.3);
}

.btn-submit:hover {
    background: #b91c1c;
}

.btn-submit:active {
    transform: scale(0.98);
}

.btn-submit:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    box-shadow: none;
}

/* Success Message */
.success-message {
    display: none;
    text-align: center;
    padding: 48px;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #dcfce7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.success-icon svg {
    width: 40px;
    height: 40px;
    color: #16a34a;
}

.success-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #dc2626;
    margin-bottom: 12px;
}

.success-text {
    color: #6b7280;
    margin-bottom: 24px;
}

.footer {
    text-align: center;
    color: #9ca3af;
    font-size: 0.875rem;
    margin-top: 32px;
}

/* Hidden */
.hidden {
    display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
    .form-grid,
    .form-grid.address,
    .signature-options {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2rem;
    }

    .card {
        padding: 20px;
    }
}
