:root {
    --primary-color: #2DBEC6;
    /* Bright Teal/Cyan */
    --secondary-color: #143345;
    /* Deep Navy */
    --accent-color: #ffffff;
    --text-color: #143345;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.85);
    /* Slightly more opaque for better contrast */
    --glass-border: rgba(255, 255, 255, 0.6);
    --shadow: 0 8px 32px 0 rgba(20, 51, 69, 0.25);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}

body {
    background: linear-gradient(135deg, #143345, #102a3a, #1a4258);
    /* Deep Navy Background */
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
    color: var(--text-color);
    padding: 20px 0;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Background Animated Shapes for depth */
.background-shapes .shape {
    position: absolute;
    filter: blur(50px);
    z-index: -1;
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    top: -10%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: #ff9a9e;
    border-radius: 50%;
}

.shape-2 {
    bottom: -10%;
    right: -10%;
    width: 350px;
    height: 350px;
    background: #a18cd1;
    border-radius: 50%;
    animation-delay: 2s;
}

.shape-3 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: #fbc2eb;
    border-radius: 50%;
    animation-delay: 4s;
    opacity: 0.6;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

.container {
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: center;
}

.form-container.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    padding: 40px;
    width: 100%;
    max-width: 500px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-header h2 {
    color: var(--secondary-color);
    font-weight: 600;
}

.form-header p {
    color: #666;
    font-size: 0.9rem;
}

/* Progress Bar */
.progress-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    position: relative;
}

.step {
    width: 35px;
    height: 35px;
    background: #ddd;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    color: #555;
    z-index: 2;
    transition: all 0.3s ease;
}

.step.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 0 10px rgba(42, 157, 143, 0.5);
}

.step-line {
    flex: 1;
    height: 3px;
    background: #ddd;
    margin: 0 10px;
    z-index: 1;
}

/* Form Steps */
.form-step {
    display: none;
    animation: fadeIn 0.4s ease-in-out;
}

.form-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h3 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    text-align: center;
}

.subtitle {
    text-align: center;
    margin-top: -15px;
    margin-bottom: 20px;
    color: #777;
    font-size: 0.85rem;
}

/* Inputs */
/* Profile Image Upload */
.profile-upload-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    display: block;
    /* Ensure it's not collapsed */
}

.profile-preview {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #f0f2f5;
    border: 3px solid var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 10px rgba(45, 190, 198, 0.2);
}

.profile-preview i {
    font-size: 50px !important;
    /* Use pixels for better consistency */
    color: #cbd5e0;
    display: block;
}

.profile-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upload-btn-wrapper {
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 5;
}

.btn-upload {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 2px solid white;
    color: white;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.btn-upload i {
    font-size: 16px !important;
}

.btn-upload:hover {
    background: #238b7e;
    transform: scale(1.1);
}

.input-group {
    margin-bottom: 20px;
    text-align: left;
    /* Revert to left align */
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--secondary-color);
    font-weight: 500;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    transition: all 0.3s ease;
    text-align: left;
    /* Revert to left align */
    color: #333;
}

.step-line.active {
    background: var(--primary-color);
    box-shadow: 0 0 5px rgba(42, 157, 143, 0.5);
    transition: background 0.4s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(42, 157, 143, 0.1);
}

/* Checkbox Cards */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.checkbox-box {
    position: relative;
    width: 100%;
}

.checkbox-box input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkbox-box label {
    display: flex;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.6);
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--secondary-color);
}

.checkbox-box label i {
    font-size: 1.5rem;
    margin-right: 15px;
    color: #aaa;
    transition: color 0.2s;
}

.checkbox-box input:checked+label {
    background: rgba(42, 157, 143, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.checkbox-box input:checked+label i {
    color: var(--primary-color);
}

/* Buttons */
.btn-group {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-next,
.btn-submit {
    background: var(--primary-color);
    color: white;
    margin-left: auto;
    /* Push to right if alone */
}

.btn-next:hover,
.btn-submit:hover {
    background: #238b7e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(42, 157, 143, 0.4);
}

.btn-prev {
    background: #ddd;
    color: #555;
}

.btn-prev:hover {
    background: #ccc;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hidden {
    display: none !important;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.message-box {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.message-box.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message-box.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive */
@media (max-width: 480px) {
    .container {
        padding: 10px;
    }

    .form-container {
        padding: 25px 20px;
    }

    h2 {
        font-size: 1.5rem;
    }
}