/* --- GLOBAL STYLES & SETUP --- */
body,
html {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background-color: #0f172a;
    /* Slate 900 */
    color: #e2e8f0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-image: radial-gradient(circle at top left, rgba(79, 70, 229, 0.2), transparent 30%),
        radial-gradient(circle at bottom right, rgba(139, 92, 246, 0.2), transparent 30%);
}

.form-container {
    width: 100%;
    max-width: 700px;
    padding: 20px;
}

.form-card {
    background-color: #1e293b;
    /* Slate 800 */
    border-radius: 20px;
    border: 1px solid #334155;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- HEADER & STEP INDICATOR --- */
.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
}

.form-header h1 span {
    color: #818cf8;
    /* Indigo 400 */
}

.step-indicator {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
}

.step-indicator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #334155;
    z-index: 1;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    background-color: #1e293b;
    padding: 0 15px;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #334155;
    /* Slate 700 */
    color: #94a3b8;
    display: grid;
    place-items: center;
    font-weight: 700;
    border: 3px solid #334155;
    transition: all 0.4s ease;
}

.step-label {
    margin-top: 10px;
    font-weight: 600;
    color: #94a3b8;
    transition: color 0.4s ease;
}

/* Step States */
.step.active .step-number {
    background-color: #4f46e5;
    border-color: #818cf8;
    color: #fff;
}

.step.active .step-label {
    color: #fff;
}

.step.completed .step-number {
    background-color: #16a34a;
    /* Green 600 */
    border-color: #4ade80;
    color: #fff;
}

.step.completed .step-label {
    color: #a3e635;
}

/* --- FORM ELEMENTS --- */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #cbd5e1;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    background-color: #334155;
    border: 2px solid #475569;
    border-radius: 8px;
    color: #f1f5f9;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.4);
}

/* Photo Upload */
.photo-upload-area {
    border: 2px dashed #475569;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.photo-upload-area:hover {
    border-color: #6366f1;
    background-color: #334155;
}

.photo-upload-area i {
    font-size: 2.5rem;
    color: #818cf8;
    margin-bottom: 10px;
}

.photo-upload-area p {
    margin: 0;
    font-weight: 500;
    color: #94a3b8;
}

/* --- NAVIGATION BUTTONS --- */
.btn-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: #cbd5e1;
    border: 2px solid #475569;
}

.btn-secondary:hover {
    background-color: #475569;
    color: #fff;
}

/* --- DASHBOARD STYLES --- */
.dashboard-header {
    text-align: center;
    margin-bottom: 40px;
}

.dashboard-header h1 {
    font-size: 2.5rem;
    color: #fff;
}

.dashboard-header p {
    font-size: 1.2rem;
    color: #94a3b8;
}

.progress-card {
    background-color: #1e293b;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    border: 1px solid #334155;
    margin-bottom: 30px;
}

.progress-card h2 {
    margin-top: 0;
    font-size: 1.5rem;
}

@property --p {
    syntax: '<number>';
    inherits: true;
    initial-value: 0;
}

.progress-circle {
    --p: 0;
    /* Percentage, will be set by JS */
    --b: 15px;
    /* Border thickness */
    --c: #6366f1;
    /* Color */
    width: 200px;
    aspect-ratio: 1;
    position: relative;
    margin: 20px auto;
    display: inline-grid;
    place-content: center;
    font-size: 2.5rem;
    font-weight: 800;
    transition: --p 1.5s ease-out;
    /* Animation */
}

.progress-circle::before,
.progress-circle::after {
    content: "";
    position: absolute;
    border-radius: 50%;
}

.progress-circle::before {
    inset: 0;
    background:
        radial-gradient(farthest-side, var(--c) 98%, #0000) top/var(--b) var(--b) no-repeat,
        conic-gradient(var(--c) calc(var(--p) * 1%), #0000 0);
    -webkit-mask: radial-gradient(farthest-side, #0000 calc(99% - var(--b)), #000 calc(100% - var(--b)));
    mask: radial-gradient(farthest-side, #0000 calc(99% - var(--b)), #000 calc(100% - var(--b)));
}

.progress-circle::after {
    inset: calc(50% - var(--b)/2);
    background: var(--c);
    transform: rotate(calc(var(--p) * 3.6deg)) translateY(calc(50% - 200px/2));
}

.info-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.info-summary-card {
    background-color: #334155;
    padding: 25px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 20px;
    border-left: 5px solid #a78bfa;
}

.info-summary-card i {
    font-size: 2rem;
    color: #a78bfa;
}

.info-summary-card h3 {
    margin: 0 0 5px 0;
    color: #fff;
}

.info-summary-card a {
    color: #c4b5fd;
    text-decoration: none;
    font-weight: 500;
}

.info-summary-card a:hover {
    text-decoration: underline;
}