/* 
   UPPERING v2.0 - Recruitment Form Styles
   Theme: Gradient Orbs, Glassmorphism, Noise
*/

:root {
    --bg-dark: #030305;
    --text-white: #ffffff;
    --text-gray: #9ca3af;

    /* Brand Gradients */
    --gradient-1: linear-gradient(135deg, #00C6FB 0%, #005BEA 100%);
    --gradient-2: linear-gradient(135deg, #7F00FF 0%, #E100FF 100%);
    --gradient-3: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);

    /* Orbs Colors */
    --orb-cyan: rgba(0, 198, 251, 0.4);
    --orb-violet: rgba(127, 0, 255, 0.4);

    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-hover: rgba(255, 255, 255, 0.12);

    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;

    --primary-color: #00C6FB;
    --secondary-color: #7F00FF;
    --transition-speed: 0.4s;
}

/* RESETS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* UTILITIES */
.container-form {
    width: 90%;
    max-width: 800px;
    margin: 40px auto;
    padding: 40px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 450px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.text-gradient {
    background: linear-gradient(to right, #22d3ee, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h1,
h2,
h3 {
    font-family: var(--font-display);
    line-height: 1.2;
    margin-bottom: 24px;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2rem;
}

p {
    color: var(--text-gray);
    margin-bottom: 20px;
}

/* --- ORB BACKGROUND --- */
.orb-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background: #030305;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: drift 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--orb-cyan);
    top: -100px;
    left: -100px;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: var(--orb-violet);
    bottom: -100px;
    right: -100px;
    animation-delay: -5s;
}

.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    opacity: 0.07;
    z-index: -1;
}

@keyframes drift {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, 100px) scale(1.1);
    }
}

/* ELEMENTS */
main {
    flex: 1;
    padding-top: 100px;
    /* Header space */
    display: flex;
    align-items: center;
}

/* INPUTS */
.input-group {
    display: flex;
    gap: 10px;
    width: 100%;
    max-width: 500px;
    margin: 20px auto;
}

input,
select,
textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px;
    border-radius: 12px;
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: 0.3s;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 48px;
}

option {
    background-color: #0d0d12;
    color: white;
    padding: 12px;
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 15px rgba(0, 198, 251, 0.2);
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 100px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: white;
    color: black;
}

.btn-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 198, 251, 0.3);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

/* FORM GRID */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    text-align: left;
    margin: 20px 0;
}

.input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-wrapper label {
    font-size: 0.9rem;
    color: var(--text-gray);
    font-weight: 500;
}

.input-wrapper small {
    font-size: 0.8rem;
    color: #666;
}

/* ROLE SELECTION */
.role-selection {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 30px 0;
    width: 100%;
}

.btn-role {
    background: var(--glass-bg-accent);
    border: 1px solid var(--glass-border);
    padding: 20px 10px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
}

.btn-role span {
    color: var(--text-white);
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.2;
}

/* Numeric input for Experience */
input[type="number"] {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    max-width: 150px;
    margin: 0 auto;
}

input[type="number"]:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 198, 251, 0.2);
}



.btn-role-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.btn-role:hover {
    background: var(--glass-hover);
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

/* CHECKBOX CARDS */
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.checkbox-card {
    display: flex;
    align-items: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 15px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: left;
    color: var(--text-white);
}

.checkbox-card span {
    color: var(--text-white);
}

.checkbox-card:hover {
    border-color: var(--secondary-color);
    background: var(--glass-hover);
}

/* --- HEADER --- */
header {
    padding: 15px 0 !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(3, 3, 5, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hide mobile toggle by default */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: white;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 42px;
    width: auto;
}

/* ELEMENTS */
main {
    flex: 1;
    padding-top: 100px;
    /* Header space */
    padding-bottom: 60px;
    display: flex;
    align-items: center;
}

/* FOOTER */
footer {
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background-color: #030305;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* CHECKBOX CARDS */
.checkbox-card input {
    width: auto;
    margin-right: 12px;
}

/* UPLOAD AREA */
.upload-area {
    background: rgba(255, 255, 255, 0.02);
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    margin: 20px 0;
    cursor: pointer;
    transition: all 0.3s;
}

.upload-area:hover {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.05);
}

.upload-area i {
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* SUCCESS */
.success-icon {
    font-size: 5rem;
    color: #38ef7d;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 15px rgba(56, 239, 125, 0.4));
}

/* STEPS LOGIC */
.step {
    transition: opacity var(--transition-speed) ease-in-out;
}

.step.hidden {
    display: none;
    opacity: 0;
}

.step.active {
    display: flex;
    flex-direction: column;
    opacity: 1;
}

/* ANIMATIONS */
.animate-text {
    opacity: 0;
}

.pop-in {
    animation: popIn 0.8s forwards;
}

.slide-up {
    animation: slideUp 0.8s forwards;
}

.fade-in {
    animation: fadeIn 0.8s forwards;
}

@keyframes popIn {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    70% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.delay-1 {
    animation-delay: 0.3s;
}

.delay-2 {
    animation-delay: 0.6s;
}

.delay-3 {
    animation-delay: 0.9s;
}

.error-msg {
    color: #ff4d4d;
    font-size: 0.9rem;
    margin-top: 10px;
    min-height: 1.2em;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    header {
        padding: 10px 0 !important;
    }

    .mobile-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(13, 13, 18, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 20px;
        gap: 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-links.active {
        display: flex;
    }

    .logo-img {
        height: 32px;
    }

    .container-form {
        padding: 30px 20px;
        margin: 20px auto;
    }

    .form-grid,
    .checkbox-group {
        grid-template-columns: 1fr;
    }

    .role-selection {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        align-items: center;
    }

    .btn-role {
        padding: 15px 5px;
    }

    .btn-role span {
        font-size: 0.8rem;
        color: var(--text-white);
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.6rem;
    }
}

.buttons-container {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.share-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.share-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}

.info-text {
    font-size: 0.85rem;
    margin-bottom: 25px;
}