* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f7fa;
    min-height: 100vh;
    padding: 30px 20px;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

h1 {
    text-align: center;
    color: #1a1a1a;
    margin-bottom: 8px;
    font-size: 28px;
    font-weight: 700;
}

.subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
    font-size: 16px;
    font-weight: 400;
}

h2 {
    color: #1a1a1a;
    margin-bottom: 8px;
    font-size: 22px;
    font-weight: 600;
}

.form-step p {
    color: #666;
    font-size: 14px;
    margin-bottom: 25px;
    line-height: 1.5;
}

/* Progress Indicator */
.progress-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
    gap: 12px;
}

.progress-step {
    display: flex;
    align-items: center;
    gap: 12px;
}

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e8eaf0;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.progress-step.active .step-number {
    background: #4f46e5;
    color: white;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.progress-step.completed .step-number {
    background: #4f46e5;
    color: white;
}

.progress-step:not(:last-child) .step-number::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 2px;
    background: #e8eaf0;
    z-index: 1;
}

.progress-step.completed:not(:last-child) .step-number::after {
    background: #4f46e5;
}

.step-label {
    display: none;
}

/* Form Steps */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #374151;
    font-weight: 500;
    font-size: 14px;
}

.required {
    color: #ef4444;
}

input[type="text"],
input[type="tel"],
input[type="date"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.2s ease;
    font-family: inherit;
    background: #fafafa;
    color: #1a1a1a;
}

input[type="text"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #4f46e5;
    background: white;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

input[type="text"]::placeholder,
input[type="tel"]::placeholder {
    color: #9ca3af;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

input[type="file"] {
    width: 100%;
    padding: 40px 20px;
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    cursor: pointer;
    background: #fafafa;
    text-align: center;
    font-size: 14px;
    color: #6b7280;
    transition: all 0.2s ease;
}

input[type="file"]:hover {
    border-color: #4f46e5;
    background: #f9fafb;
}

/* Image Preview */
.image-preview {
    margin-top: 20px;
    text-align: center;
    padding: 20px;
    background: #f9fafb;
    border-radius: 12px;
}

.image-preview img {
    max-width: 200px;
    max-height: 200px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Navigation Buttons */
.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 12px;
}

.btn {
    padding: 14px 28px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: #4f46e5;
    color: white;
    flex: 1;
}

.btn-primary:hover {
    background: #4338ca;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.3);
}

.btn-secondary {
    background: #f3f4f6;
    color: #6b7280;
}

.btn-secondary:hover {
    background: #e5e7eb;
    color: #374151;
}

.btn-success {
    background: #10b981;
    color: white;
    flex: 1;
}

.btn-success:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn:active {
    transform: scale(0.98);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
    backdrop-filter: blur(4px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    max-width: 480px;
    width: 90%;
    text-align: center;
    animation: slideUp 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-content h2 {
    color: #10b981;
    margin-bottom: 12px;
    font-size: 24px;
}

.modal-content p {
    color: #6b7280;
    margin-bottom: 28px;
    font-size: 15px;
}

.modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.modal-buttons .btn {
    flex: 1;
    max-width: 200px;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 30px 20px;
    }

    h1 {
        font-size: 24px;
    }

    .subtitle {
        font-size: 14px;
    }

    .progress-container {
        gap: 8px;
    }

    .step-number {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }

    .step-number::after {
        width: 30px !important;
    }

    .form-navigation {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    body {
        padding: 15px;
    }

    .container {
        padding: 25px 15px;
        border-radius: 15px;
    }

    h1 {
        font-size: 20px;
    }

    h2 {
        font-size: 18px;
    }
}

/* PDF Template */
.pdf-template {
    position: absolute;
    left: -9999px;
    width: 215.9mm;
    min-height: 330.2mm;
    background: white;
    padding: 25mm 30mm;
    font-family: 'Times New Roman', Times, serif;
    box-sizing: border-box;
    color: #000;
}

.pdf-header {
    text-align: center;
    margin-bottom: 25px;
}

.pdf-header h1 {
    font-size: 14px;
    color: #000;
    margin: 0 0 8px 0;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pdf-header h2 {
    font-size: 13px;
    color: #000;
    margin: 0 0 20px 0;
    font-weight: bold;
    text-transform: uppercase;
}

.pdf-content {
    font-size: 12px;
    line-height: 1.8;
}

.pdf-section {
    margin-bottom: 20px;
}

.pdf-section-title {
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.pdf-subsection-title {
    margin-top: 15px;
    margin-bottom: 8px;
    font-weight: bold;
    font-size: 12px;
    text-indent: 20px;
}

.pdf-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 5px;
}

.pdf-table tbody tr {
    border: none;
}

.pdf-table td {
    padding: 4px 0;
    font-size: 12px;
    vertical-align: top;
    border: none;
}

.pdf-table .number {
    width: 30px;
    text-align: left;
    padding-left: 20px;
}

.pdf-table .label {
    width: 200px;
    padding-right: 10px;
}

.pdf-table .colon {
    width: 15px;
}

.pdf-table .value {
    border-bottom: 1px dotted #000;
    min-height: 20px;
    padding-left: 5px;
}

.pdf-table .value span {
    display: inline-block;
    min-height: 18px;
}

/* Signature Area */
.pdf-signature-area {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
}

.pdf-photo-container {
    flex-shrink: 0;
}

.pdf-photo-box {
    width: 4cm;
    height: 6cm;
    border: 2px solid #000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.pdf-photo-box img {
    max-width: 3.8cm;
    max-height: 5.8cm;
    object-fit: cover;
}

.pdf-photo-box img[src=""],
.pdf-photo-box img:not([src]) {
    display: none;
}

.pdf-signature-info {
    flex: 1;
    text-align: left;
}

.pdf-location-date {
    font-size: 12px;
    margin-bottom: 5px;
}

.pdf-signature-label {
    font-size: 12px;
    margin-bottom: 80px;
}

.pdf-signature-line {
    border-bottom: 1px dotted #000;
    width: 100%;
    margin-bottom: 5px;
}

.pdf-signature-name {
    font-size: 12px;
    text-align: center;
}

.pdf-photo {
    display: none !important;
}

/* Remove old footer styles */
.pdf-footer-section,
.pdf-notes,
.pdf-notes-title,
.pdf-notes-subtitle,
.pdf-location,
.pdf-signature-section,
.pdf-signature-text {
    display: none !important;
}
