/* Global Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #1d4ed8;
    /* Darker Blue */
    --primary-hover: #1e40af;
    --secondary-color: #14213d;
    /* Navy Blue */
    --background-color: #f3f4f6;
    --card-bg: #ffffff;
    --text-color: #333333;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
    --input-bg: #f9fafb;
    --success-color: #10b981;
    --error-color: #ef4444;
    --transition-speed: 0.3s;
    --glass-bg: rgba(255, 255, 255, 0.95);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Background/Hero Section */
.hero-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    background-image: url('assets/img/hero.png');
    background-size: cover;
    background-position: center;
    filter: brightness(0.4);
}

.main-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    width: 100%;
    position: relative;
    z-index: 1;
}

/* Header */
.app-header {
    text-align: center;
    margin-bottom: 30px;
    animation: fadeInDown 0.8s ease-out;
}

.logo-container {
    width: 150px;
    height: auto;
    margin: 0 auto 20px;
    /* background: white; Removed */
    /* border-radius: 50%; Removed */
    padding: 10px;
    /* box-shadow: var(--shadow-lg); Removed */
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-container img {
    max-width: 100%;
    height: auto;
}

.app-header h1 {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.app-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

/* Form Card */
.form-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 0.8s ease-out;
}

/* Progress Bar */
.progress-container {
    margin-bottom: 40px;
    position: relative;
}

.progress-bar-bg {
    background-color: #e0e0e0;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #3b82f6);
    /* Gradient to lighter blue */
    width: 25%;
    transition: width 0.5s ease-in-out;
}

.steps-indicator {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.step-item {
    position: relative;
    transition: color 0.3s;
}

.step-item.active {
    color: var(--secondary-color);
    font-weight: 700;
}

/* Form Sections */
.form-section {
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.form-section.active {
    display: block;
}

.section-title {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
    padding-bottom: 5px;
}

.section-description {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 0.95rem;
}

/* Inputs */
.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--secondary-color);
}

.required-asterisk {
    color: var(--primary-color);
    margin-left: 3px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    background-color: var(--input-bg);
    transition: all 0.3s;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(252, 163, 17, 0.1);
    background-color: white;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Radio & Checkboxes */
.radio-group,
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.custom-control-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 400;
}

.custom-control-input {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

/* Buttons */
.nav-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
}

.btn {
    padding: 12px 28px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary {
    background-color: white;
    color: var(--text-muted);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: #f3f4f6;
    color: var(--text-color);
    border-color: #d1d5db;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 6px rgba(252, 163, 17, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(252, 163, 17, 0.4);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* File Upload */
.file-upload-wrapper {
    position: relative;
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s;
    background-color: var(--input-bg);
}

.file-upload-wrapper:hover {
    border-color: var(--primary-color);
    background-color: rgba(252, 163, 17, 0.05);
}

.file-upload-wrapper input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-preview {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.preview-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid white;
    box-shadow: var(--shadow-md);
}

/* Validation */
.error-msg {
    color: var(--error-color);
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}

.form-group.error .form-control {
    border-color: var(--error-color);
}

.form-group.error .error-msg {
    display: block;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .main-container {
        margin: 20px auto;
        padding: 15px;
    }

    .form-card {
        padding: 25px;
    }

    .app-header h1 {
        font-size: 2rem;
    }

    .steps-indicator {
        font-size: 0.8rem;
    }
}