/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f5f5f5;
    line-height: 1.6;
    color: #333;
}

/* Container styles */
.form-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.form-card {
    background-color: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 100%;
}

.form-title {
    text-align: center;
    color: #1a2b49;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
}

/* Form wrapper layout */
.form-wrapper {
    display: flex;
    gap: 30px;
    min-height: 500px;
}

/* Sidebar styles */
.sidebar {
    flex: 0 0 200px;
    background-color: #eaebec;
    border-radius: 15px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.step-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.step-indicator:hover {
    background-color: #e9ecef;
}

.step-indicator.active {
    background-color: #fff;
}

.step-circle {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: #999;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    flex-shrink: 0;
    border: 2px solid #ffffff;
}

.step-indicator.active .step-circle {
    background-color: #0800ff;
}

.step-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.step-indicator.active .step-label {
    color: #1a2b49;
    font-weight: 600;
}

/* Form content styles */
.form-content {
    flex: 1;
    padding: 20px;
}

.step-content {
    display: none;
}

.step-content.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-title {
    color: #1a2b49;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 25px;
}

/* Form group styles */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    color: #1a2b49;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Archivo', sans-serif;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

/* Ensure select elements match other inputs exactly */
select {
    height: 48px; /* Match input height */
    line-height: 1.4;
    background-color: #ffffff;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

/* Checkbox styles */
.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
    margin-bottom: 10px;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 4px;
    margin-right: 10px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background-color: #152033;
    border-color: #152033;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

/* Navigation buttons */
.form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.btn-back,
.btn-next,
.btn-submit {
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Archivo', sans-serif;
}

.btn-back {
    background: none;
    border: none;
    color: #666;
    text-decoration: underline;
}

.btn-back:hover {
    color: #1a2b49;
}

.btn-next,
.btn-submit {
    background-color: #1a2b49;
    color: white;
    border: none;
}

.btn-next:hover,
.btn-submit:hover {
    background-color: #0f1a2e;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 43, 73, 0.3);
}

.btn-next:disabled,
.btn-submit:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Review section styles */
.review-section {
    background-color: #e9f4ff;
    border-radius: 10px;
    padding: 20px;
}

.review-item {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.review-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.review-item h3 {
    color: #1a2b49;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.review-item p {
    margin-bottom: 5px;
    color: #555;
}

.review-item strong {
    color: #1a2b49;
}

/* Responsive styles */
@media (max-width: 768px) {
    .form-wrapper {
        flex-direction: column;
    }

    .sidebar {
        flex: none;
        order: 2;
        flex-direction: row;
        overflow-x: auto;
        padding: 15px;
        gap: 10px;
    }

    .step-indicator {
        flex-direction: column;
        text-align: center;
        min-width: 80px;
    }

    .step-label {
        font-size: 0.8rem;
    }

    .step-circle {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }

    .form-content {
        order: 1;
        padding: 15px;
    }

    .form-title {
        font-size: 1.5rem;
    }

    .step-title {
        font-size: 1.3rem;
    }

    .form-navigation {
        flex-direction: column-reverse;
        gap: 10px;
    }

    .btn-back,
    .btn-next,
    .btn-submit {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .form-card {
        padding: 15px;
        margin: 10px;
    }

    .form-title {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }

    .sidebar {
        padding: 10px;
    }

    .form-content {
        padding: 10px;
    }
}

/* Error styles */
.error-message {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #dc3545;
}

.form-group.error .error-message {
    display: block;
}

/* Success styles */
.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
}

.success-message.show {
    display: block;
    animation: fadeIn 0.3s ease-in;
}
