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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #143345 0%, #2dbec6 100%);
    min-height: 100vh;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.form-wrapper {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: slideUp 0.5s ease-out;
}

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

.form-header {
    background: linear-gradient(135deg, #143345 0%, #2dbec6 100%);
    color: white;
    padding: 40px;
    text-align: center;
}

.form-header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: 600;
}

.form-header p {
    font-size: 1.1em;
    opacity: 0.9;
}

/* Progress Steps */
.progress-container {
    padding: 30px 40px;
    background: #f8f9fa;
    border-bottom: 2px solid #e0e0e0;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #e0e0e0;
    border-radius: 10px;
    margin-bottom: 30px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #143345 0%, #2dbec6 100%);
    border-radius: 10px;
    transition: width 0.3s ease;
    width: 20%;
}

.steps {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e0e0e0;
    z-index: 0;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    flex: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    border: 3px solid #e0e0e0;
}

.step.active .step-number {
    background: #2dbec6;
    color: white;
    border-color: #2dbec6;
    transform: scale(1.1);
}

.step.completed .step-number {
    background: #143345;
    color: white;
    border-color: #143345;
}

.step-label {
    font-size: 0.85em;
    color: #999;
    font-weight: 500;
    text-align: center;
}

.step.active .step-label {
    color: #143345;
    font-weight: 600;
}

.step.completed .step-label {
    color: #143345;
}

form {
    padding: 40px;
    position: relative;
}

.form-step {
    display: none;
    animation: fadeIn 0.4s ease-in;
}

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

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

.step-title {
    color: #143345;
    font-size: 1.8em;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #2dbec6;
    display: inline-block;
    width: 100%;
}

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

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

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

label {
    color: #143345;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 0.95em;
}

.required {
    color: #e74c3c;
    font-weight: bold;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="number"],
input[type="password"],
select,
textarea {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    transition: all 0.3s ease;
    font-family: inherit;
    background: white;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #2dbec6;
    box-shadow: 0 0 0 3px rgba(45, 190, 198, 0.1);
}

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

select {
    cursor: pointer;
    background-color: white;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

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

.checkbox-group label {
    margin: 0;
    cursor: pointer;
    color: #143345;
}

.checkbox-group a {
    color: #2dbec6;
    text-decoration: none;
    font-weight: 600;
}

.checkbox-group a:hover {
    text-decoration: underline;
    color: #143345;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e0e0e0;
}

.btn-prev,
.btn-next,
.btn-submit {
    padding: 15px 40px;
    font-size: 1.1em;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-prev {
    background: white;
    color: #143345;
    border: 2px solid #143345;
}

.btn-prev:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(20, 51, 69, 0.2);
}

.btn-next,
.btn-submit {
    background: linear-gradient(135deg, #143345 0%, #2dbec6 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(20, 51, 69, 0.4);
    margin-left: auto;
}

.btn-next:hover,
.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(20, 51, 69, 0.6);
}

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

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

    .form-header h1 {
        font-size: 2em;
    }

    form {
        padding: 25px;
    }

    .progress-container {
        padding: 20px 25px;
    }

    .step-label {
        font-size: 0.75em;
    }

    .step-number {
        width: 35px;
        height: 35px;
        font-size: 0.9em;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn-prev,
    .btn-next,
    .btn-submit {
        width: 100%;
        margin-left: 0;
    }
}

/* Success/Error Messages */
.message {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
    animation: slideDown 0.3s ease-out;
}

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

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Loading State */
.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* File Upload Styles */
input[type="file"] {
    padding: 10px;
    border: 2px dashed #2dbec6;
    border-radius: 8px;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

input[type="file"]:hover {
    border-color: #143345;
    background: #e8f4f5;
}

input[type="file"]:focus {
    outline: none;
    border-color: #143345;
    box-shadow: 0 0 0 3px rgba(20, 51, 69, 0.1);
}

.file-preview {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.file-preview-item {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9em;
    color: #143345;
}

.file-preview-item .file-icon {
    color: #2dbec6;
    font-weight: bold;
}

.file-preview-item .file-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-preview-item .file-size {
    color: #666;
    font-size: 0.85em;
}

.file-preview-item .remove-file {
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.3s ease;
}

.file-preview-item .remove-file:hover {
    background: #c0392b;
    transform: scale(1.1);
}
