:root {
    --primary-color: #000080;
    --primary-light: #3333a3;
    --primary-dark: #00005a;
    --secondary-color: #f8f9fa;
    --text-color: #333;
    --border-color: #ccc;
    --input-border-color: #666;
    --error-color: #e74c3c;
    --success-color: #2ecc71;
}

/*
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: var(--text-color);
    line-height: 1.6;
}
*/


.container1 {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.form-container1 {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.form-header {
    background-color: var(--primary-color);
    color: white;
    padding: 1.5rem;
    text-align: center;
}

.form-header h1 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.progress-bar {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin: 2rem 0;
    padding: 0 1rem;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 4px;
    width: 100%;
    background-color: var(--border-color);
    z-index: 1;
}

.progress-step {
    width: 35px;
    height: 35px;
    background-color: var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.progress-step.active {
    background-color: var(--primary-color);
    color: white;
}

.step-label {
    position: absolute;
    bottom: -25px;
    font-size: 0.8rem;
    white-space: nowrap;
    color: var(--text-color);
}

.form-steps {
    padding: 0 2rem 2rem;
}

.form-step {
    display: none;
    animation: fadeIn 0.5s ease;
}

.form-step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.step-title {
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-row .form-group {
    flex: 1 1 200px;
    margin-bottom: 0;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.required::after {
    content: ' *';
    color: var(--error-color);
}

/* FIXED INPUT BORDERS */
input, select, textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--input-border-color); /* Increased border width and made darker */
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: white;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 0, 128, 0.1);
}

/* Specific border styles for different input types */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="number"] {
    border: 2px solid var(--input-border-color);
}

select {
    border: 2px solid var(--input-border-color);
    background-color: white;
}

textarea {
    border: 2px solid var(--input-border-color);
    resize: vertical;
    min-height: 80px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.checkbox-group input {
    width: auto;
    transform: scale(1.2);
    margin-right: 0.5rem;
}

.form-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--secondary-color);
}

.form-section h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.image-upload {
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.image-upload:hover {
    border-color: var(--primary-color);
    background-color: rgba(0, 0, 128, 0.05);
}

.image-preview {
    max-width: 150px;
    max-height: 150px;
    margin: 1rem auto;
    display: none;
}

.image-preview img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

.error-message {
    color: var(--error-color);
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: none;
    padding: 0.5rem;
    background-color: rgba(231, 76, 60, 0.1);
    border-radius: 4px;
    border-left: 3px solid var(--error-color);
}

.success-message {
    background-color: var(--success-color);
    color: white;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    display: none;
}

.hidden {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .form-steps {
        padding: 0 1rem 1rem;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .progress-step {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }

    .step-label {
        font-size: 0.7rem;
    }
    
    /* Ensure input borders are visible on mobile */
    input, select, textarea {
        border: 2px solid var(--input-border-color);
    }
}

@media (max-width: 480px) {
    .container1 {
        margin: 1rem auto;
    }

    .form-header h1 {
        font-size: 1.5rem;
    }

    .progress-bar {
        margin: 1rem 0;
    }

    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    input, select, textarea {
        padding: 0.6rem;
        border: 2px solid var(--input-border-color);
    }
}