:root {
    --brand-dark: #1a2332;
    --brand-blue: #2563eb;
    --brand-yellow: #fecf07;
    --card-bg: #fff;
    --muted: #6b7280;
    --radius: 10px;
    --progress-color: #2563eb;
    --progress-bg: #e5e7eb;
    --completed-color: #10b981;
}

.form-hero {
    max-width: 1200px;
    margin: 2rem auto;
    text-align: center;
    padding: 1.5rem;
}

.form-wrapper {
    max-width: 900px;
    margin: 0 auto 3rem;
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.form-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--brand-dark);
}

.form-field input[type="text"],
.form-field input[type="date"],
.form-field input[type="email"] {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border: 1px solid #e6e9ee;
    border-radius: 8px;
    background: #fff;
}

.field-error {
    color: #b91c1c;
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.form-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 1.25rem;
}

/* Wizard Container */
.wizard-container {
    max-width: 900px;
    margin: 2rem auto;
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

/* Progress Container */
.progress-container {
    margin-bottom: 3rem;
}

/* Step Circles */
.progress-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
}

/* Background line behind circles */
.progress-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: var(--progress-bg);
    z-index: 0;
    border-radius: 10px;
}

/* Animated progress line */
.progress-bar {
    position: absolute;
    top: 20px;
    left: 10%;
    right: 10%;
    height: 3px;
    z-index: 0;
    pointer-events: none;
}

.progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--brand-blue), var(--brand-blue) 70%, var(--completed-color));
    border-radius: 10px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    flex: 1;
}

.step-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--progress-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--muted);
    margin-bottom: 0.75rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
}

.step-circle.active {
    background: var(--brand-blue);
    border-color: var(--brand-blue);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.step-circle.completed {
    background: var(--completed-color);
    border-color: var(--completed-color);
    color: white;
    animation: checkPop 0.4s ease;
}

@keyframes checkPop {
    0% { transform: scale(0.8); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

.step-label {
    font-size: 0.8rem;
    color: var(--muted);
    text-align: center;
    max-width: 100px;
    transition: all 0.3s ease;
}

.step-label.active {
    color: var(--brand-blue);
    font-weight: 600;
    font-size: 0.85rem;
}

/* Form Section */
.form-section {
    margin-top: 2rem;
}

.form-title {
    color: var(--brand-blue);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--brand-yellow);
    font-size: 1.5rem;
    font-weight: 700;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--brand-dark);
}

.form-group input[type="text"],
.form-group input[type="date"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group input[type="file"] {
    padding: 0.5rem;
}

.help-text {
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: 0.25rem;
}

.errorlist {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0 0;
}

.errorlist li {
    color: #dc3545;
    font-size: 0.9rem;
}

.form-group.error input,
.form-group.error textarea,
.form-group.error select {
    border-color: #dc3545;
}

/* Radio Buttons */
.radio-group {
    display: flex;
    gap: 2rem;
    margin-top: 0.5rem;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: normal;
    cursor: pointer;
}

.radio-group input[type="radio"] {
    width: auto;
    cursor: pointer;
}

/* Navigation Buttons */
.wizard-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--brand-blue);
    color: white;
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
    background: #f3f4f6;
    color: var(--brand-dark);
    border: 1px solid #e5e7eb;
}

.btn-secondary:hover {
    background: #e5e7eb;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wizard-container {
        padding: 1.5rem;
        margin: 1rem;
    }

    .progress-steps {
        flex-wrap: nowrap;
    }

    .step-label {
        font-size: 0.7rem;
        max-width: 60px;
    }

    .step-circle {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }

    .radio-group {
        flex-direction: column;
        gap: 1rem;
    }

    .wizard-navigation {
        flex-direction: column;
        gap: 0.75rem;
    }

    .wizard-navigation .btn {
        width: 100%;
    }
}

@media (max-width: 700px) {
    .form-actions {
        flex-direction: column;
    }
    .form-actions .btn {
        width: 100%;
    }
}


.photo-preview img {
    transition: opacity 0.3s ease;
}









/* Add these styles to your CSS file */

/* Photo Upload Wrapper */
.photo-upload-wrapper {
    margin-top: 0.5rem;
}

/* Drop Zone */
.photo-drop-zone {
    position: relative;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    background-color: #f8fafc;
    transition: all 0.3s ease;
    overflow: hidden;
    min-height: 300px;
}

.photo-drop-zone.drag-over {
    border-color: #3b82f6;
    background-color: #eff6ff;
    transform: scale(1.02);
}

/* Drop Zone Content */
.drop-zone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    text-align: center;
}

.upload-icon {
    color: #64748b;
    margin-bottom: 1rem;
}

.drop-zone-text {
    margin-bottom: 1.5rem;
}

.drop-zone-main {
    display: block;
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.drop-zone-sub {
    display: block;
    font-size: 0.875rem;
    color: #64748b;
    margin: 0.5rem 0;
}

.drop-zone-hint {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #64748b;
}

.btn-browse {
    padding: 0.625rem 1.5rem;
    background-color: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-browse:hover {
    background-color: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.2);
}

.btn-browse:active {
    transform: translateY(0);
}

/* Preview Container */
.photo-preview-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    min-height: 300px;
}

.photo-preview-img {
    max-width: 100%;
    max-height: 350px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    object-fit: contain;
    margin-bottom: 1rem;
}

.photo-preview-overlay {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.btn-change-photo,
.btn-remove-photo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background-color: white;
    color: #475569;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-change-photo:hover {
    background-color: #f1f5f9;
    border-color: #3b82f6;
    color: #3b82f6;
}

.btn-remove-photo:hover {
    background-color: #fef2f2;
    border-color: #ef4444;
    color: #ef4444;
}

.btn-change-photo svg,
.btn-remove-photo svg {
    width: 16px;
    height: 16px;
}

.photo-info {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: #64748b;
    text-align: center;
}

/* Error Message */
.photo-upload-error {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #dc2626;
    font-size: 0.875rem;
    animation: slideIn 0.3s ease;
}

.photo-upload-error svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 640px) {
    .drop-zone-content {
        padding: 2rem 1rem;
    }

    .drop-zone-main {
        font-size: 1rem;
    }

    .photo-preview-overlay {
        flex-direction: column;
        width: 100%;
    }

    .btn-change-photo,
    .btn-remove-photo {
        width: 100%;
        justify-content: center;
    }

    .photo-preview-img {
        max-height: 250px;
    }
}