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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #FFFFFF;
    color: #4A4A4B;
    line-height: 1.6;
    padding: 20px;
}

.wizard-container {
    max-width: 900px;
    margin: 0 auto;
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(74, 74, 75, 0.1);
    overflow: hidden;
}

.step-indicator {
    background: #CDC4B4;
    padding: 24px 30px;
    text-align: center;
}

.step-progress {
    width: 100%;
    height: 8px;
    background: #938D85;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

.step-progress-bar {
    height: 100%;
    background: #4A4A4B;
    width: 33.33%;
    transition: width 0.4s ease;
    border-radius: 4px;
}

.step-text {
    font-size: 16px;
    font-weight: 600;
    color: #4A4A4B;
    letter-spacing: 0.5px;
}

.wizard-step {
    display: none;
    padding: 40px 30px;
    animation: fadeIn 0.3s ease;
}

.wizard-step.active {
    display: block;
}

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

.step-title {
    font-size: 28px;
    font-weight: 700;
    color: #4A4A4B;
    margin-bottom: 8px;
}

.helper-text {
    font-size: 14px;
    color: #938D85;
    margin-bottom: 24px;
}

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

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

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

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

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

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #CDC4B4;
    border-radius: 8px;
    font-size: 16px;
    color: #4A4A4B;
    background: #FFFFFF;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #938D85;
    box-shadow: 0 0 0 3px rgba(147, 141, 133, 0.1);
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: #938D85;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Map location button */
.btn-map-location {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    margin-bottom: 8px;
    background: #938D85;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: background .2s;
    align-self: flex-start;
}
.btn-map-location:hover { background: #7a746d; }

/* ID upload section */
.id-upload-btns {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.btn-id-upload {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 6px;
    border: 1px solid #CDC4B4;
    background: #f5f3f0;
    color: #4A4A4B;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: all .2s;
}
.btn-id-upload:hover { background: #CDC4B4; }
.btn-id-upload.camera { background: #938D85; color: #fff; border-color: #938D85; }
.btn-id-upload.camera:hover { background: #7a746d; }
.id-preview:not(:empty) {
    border: 2px solid #CDC4B4;
    border-radius: 8px;
    padding: 10px;
}
.id-preview img {
    max-width: 100%;
    max-height: 90px;
    border-radius: 6px;
    object-fit: cover;
}
.id-preview .id-file-name {
    font-size: 12px;
    color: #938D85;
}

.field-note {
    font-size: 12px;
    color: #938D85;
    margin-top: 6px;
    display: block;
}

.file-upload-options {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.file-upload-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 20px;
    background: #CDC4B4;
    border: 2px solid #938D85;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 15px;
    font-weight: 600;
    color: #4A4A4B;
    font-family: inherit;
}

.file-upload-btn:hover {
    background: #938D85;
    border-color: #4A4A4B;
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 74, 75, 0.15);
}

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

.file-upload-btn svg {
    flex-shrink: 0;
}

.camera-btn {
    background: #938D85;
    color: #FFFFFF;
    border-color: #4A4A4B;
}

.camera-btn:hover {
    background: #4A4A4B;
}

.file-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.file-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #CDC4B4;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    aspect-ratio: 1;
}

.file-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(74, 74, 75, 0.15);
}

.file-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.file-item-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 12px;
    text-align: center;
}

.file-type {
    font-size: 11px;
    font-weight: 700;
    color: #4A4A4B;
    background: #938D85;
    padding: 4px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.file-name {
    font-size: 11px;
    color: #4A4A4B;
    word-break: break-word;
}

.file-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(74, 74, 75, 0.9);
    color: #FFFFFF;
    border: none;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.file-remove:hover {
    background: #938D85;
    transform: scale(1.1);
}

.button-group {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.btn {
    padding: 16px 32px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    min-width: 120px;
}

.btn-next,
.btn-submit {
    background: #4A4A4B;
    color: #FFFFFF;
}

.btn-next:hover,
.btn-submit:hover {
    background: #938D85;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 74, 75, 0.2);
}

.btn-next:active,
.btn-submit:active {
    transform: translateY(0);
}

.btn-back {
    background: #CDC4B4;
    color: #4A4A4B;
}

.btn-back:hover {
    background: #938D85;
    color: #FFFFFF;
    transform: translateY(-2px);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(74, 74, 75, 0.95);
    animation: fadeIn 0.3s ease;
}

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

.modal-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #FFFFFF;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #CDC4B4;
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .wizard-container {
        border-radius: 8px;
    }

    .step-indicator {
        padding: 20px 20px;
    }

    .wizard-step {
        padding: 30px 20px;
    }

    .step-title {
        font-size: 24px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

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

    .file-upload-options {
        flex-direction: column;
    }

    .button-group {
        flex-direction: column-reverse;
    }

    .btn {
        width: 100%;
        min-width: auto;
    }

    .file-preview {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }

    .modal-close {
        top: 10px;
        right: 20px;
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .step-indicator {
        padding: 16px;
    }

    .wizard-step {
        padding: 24px 16px;
    }

    .step-title {
        font-size: 20px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px;
    }

    .file-preview {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 8px;
    }

    .file-upload-btn {
        font-size: 14px;
        padding: 14px 16px;
    }
}
/* Loading overlay */
#wizardLoadingOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.wizard-loading-box {
    background: #fff;
    border-radius: 16px;
    padding: 40px 48px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    max-width: 320px;
}

.wizard-loading-box p {
    color: #4A4A4B;
    font-size: 15px;
    margin: 0;
}

.wizard-spinner {
    width: 44px;
    height: 44px;
    border: 4px solid #E8E3DB;
    border-top-color: #938D85;
    border-radius: 50%;
    animation: wizardSpin 0.8s linear infinite;
}

@keyframes wizardSpin {
    to { transform: rotate(360deg); }
}
