* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #145da0;
    --dark-blue: #022c4c;
    --light-blue: #498fcd;
    --white: #ffffff;
    --light-gray: #f5f7fa;
    --border-gray: #e0e6ed;
    --text-dark: #1a1a1a;
    --text-light: #666666;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-dark);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Animated background without white background */
.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #022c4c 0%, #145da0 50%, #498fcd 100%);
    z-index: -2;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    animation: float 25s ease-in-out infinite;
}

.gradient-orb-1 {
    width: 500px;
    height: 500px;
    background: rgba(73, 143, 205, 0.4);
    top: -150px;
    left: -150px;
    animation-delay: 0s;
}

.gradient-orb-2 {
    width: 400px;
    height: 400px;
    background: rgba(20, 93, 160, 0.3);
    bottom: -100px;
    right: -100px;
    animation-delay: 8s;
}

.gradient-orb-3 {
    width: 450px;
    height: 450px;
    background: rgba(2, 44, 76, 0.3);
    top: 50%;
    right: -200px;
    animation-delay: 16s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0px, 0px);
    }

    25% {
        transform: translate(40px, -60px);
    }

    50% {
        transform: translate(-30px, 30px);
    }

    75% {
        transform: translate(60px, 60px);
    }
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    opacity: 0.6;
    animation: particle-float 20s linear infinite;
    animation-delay: calc(var(--i) * 3s);
    box-shadow: 0 0 10px rgba(73, 143, 205, 0.5);
}

@keyframes particle-float {
    0% {
        transform: translateY(100vh) translateX(0) scale(1);
        opacity: 0;
    }

    10% {
        opacity: 0.8;
    }

    90% {
        opacity: 0.8;
    }

    100% {
        transform: translateY(-100vh) translateX(150px) scale(0);
        opacity: 0;
    }
}

/* Header */
.header {
    background: linear-gradient(135deg, rgba(2, 44, 76, 0.95) 0%, rgba(20, 93, 160, 0.95) 100%);
    color: var(--white);
    padding: 1.5rem 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 2px;
    background: linear-gradient(135deg, var(--light-blue), var(--white));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo p {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-top: 0.25rem;
}

.logout-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid var(--white);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

    .logout-btn:hover {
        background: var(--white);
        color: var(--dark-blue);
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    }

/* Main Container */
.main-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2rem;
    min-height: calc(100vh - 80px);
}

.form-wrapper {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.6s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tab Navigation Styling -->
.tab-navigation {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 3rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-gray);
}

.tab-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 2px solid var(--border-gray);
    border-radius: 8px;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-weight: 600;
}

.tab-btn:hover {
    border-color: var(--light-blue);
    color: var(--primary-blue);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
    color: var(--white);
    border-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(20, 93, 160, 0.3);
}

.tab-number {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
}

.tab-btn.active .tab-number {
    background: rgba(255, 255, 255, 0.3);
}

.tab-label {
    font-size: 0.85rem;
}

/* Tab Content */
.tab-content {
    display: none;
    animation: fadeInTab 0.4s ease-out;
}

    .tab-content.active {
        display: block;
    }

@keyframes fadeInTab {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Progress Bar */
.progress-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border-gray);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--border-gray);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-blue) 0%, var(--light-blue) 100%);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(73, 143, 205, 0.5);
}

.progress-text {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 600;
}

/* Form Sections */
.form-section {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.5rem;
    color: var(--dark-blue);
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: titleSlide 0.6s ease-out;
}

@keyframes titleSlide {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.section-title::before {
    content: "";
    width: 4px;
    height: 30px;
    background: linear-gradient(180deg, var(--primary-blue), var(--light-blue));
    border-radius: 2px;
    animation: heightExpand 0.6s ease-out;
}

@keyframes heightExpand {
    from {
        height: 0;
    }

    to {
        height: 30px;
    }
}

/* Form Groups */
.form-group {
    margin-bottom: 1.75rem;
    animation: fadeInGroup 0.6s ease-out;
}

@keyframes fadeInGroup {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.required::after {
    content: "*";
    color: #e74c3c;
    margin-left: 4px;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-gray);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--white);
    color: var(--text-dark);
}

    .form-input:focus {
        outline: none;
        border-color: var(--primary-blue);
        box-shadow: 0 0 0 3px rgba(20, 93, 160, 0.1);
        transform: translateY(-2px);
    }

    .form-input::placeholder {
        color: #bdbdbd;
    }

.help-text {
    display: block;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 0.25rem;
    font-weight: 400;
}

/* Radio and Checkboxes */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    margin-top: 1rem;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    user-select: none;
}

    .radio-label:hover {
        background: var(--light-gray);
        transform: translateX(5px);
    }

    .radio-label input[type="radio"],
    .checkbox-label input[type="checkbox"] {
        width: 18px;
        height: 18px;
        cursor: pointer;
        margin-right: 0.75rem;
        accent-color: var(--primary-blue);
    }

    .radio-label span,
    .checkbox-label span {
        font-weight: 500;
        color: var(--text-dark);
    }

    .radio-label input[type="radio"]:checked + span {
        color: var(--primary-blue);
        font-weight: 700;
    }

/* File Upload */
.file-upload-area {
    border: 2px dashed var(--primary-blue);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(20, 93, 160, 0.05);
    margin-top: 1rem;
    animation: uploadPulse 2s ease-in-out infinite;
}

@keyframes uploadPulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.01);
    }
}

.file-upload-area:hover {
    background: rgba(20, 93, 160, 0.15);
    border-color: var(--light-blue);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(20, 93, 160, 0.2);
}

.file-upload-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    display: block;
    animation: bounce 0.6s ease-out infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.file-upload-area p {
    margin: 0.5rem 0;
    color: var(--text-dark);
    font-weight: 600;
}

.file-upload-area small {
    color: var(--text-light);
    display: block;
}

.file-name {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: var(--primary-blue);
    font-weight: 600;
}

/* Note Box */
.note {
    background: linear-gradient(135deg, rgba(73, 143, 205, 0.1) 0%, rgba(20, 93, 160, 0.1) 100%);
    border-left: 4px solid var(--primary-blue);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: var(--text-dark);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    animation: noteFadeIn 0.6s ease-out;
}

@keyframes noteFadeIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Tab Actions -->
.tab-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-gray);
    justify-content: space-between;
}

.btn {
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--light-blue) 100%);
    color: var(--white);
    box-shadow: 0 8px 20px rgba(20, 93, 160, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(20, 93, 160, 0.4);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
    background: var(--light-gray);
    transform: translateY(-2px);
}

/* Checkbox Group */
.checkbox-group {
    margin-top: 1.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    user-select: none;
}

    .checkbox-label:hover {
        background: var(--light-gray);
    }

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }

    .logo h1 {
        font-size: 1.5rem;
    }

    .main-container {
        padding: 1.5rem 1rem;
    }

    .form-wrapper {
        padding: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .tab-navigation {
        gap: 0.25rem;
    }

    .tab-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    .tab-label {
        font-size: 0.75rem;
    }

    .section-title {
        font-size: 1.25rem;
    }

    .tab-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.25rem;
    }

    .logout-btn {
        padding: 0.6rem 1rem;
        font-size: 0.875rem;
    }

    .form-wrapper {
        padding: 1rem;
    }

    .tab-navigation {
        gap: 0;
    }

    .tab-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }

    .tab-label {
        display: none;
    }

    .tab-number {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }

    .file-upload-area {
        padding: 1.5rem 1rem;
    }

    .form-input {
        padding: 0.75rem;
    }
}
