/* VARIABLES & RESET */
:root {
    --primary: #132956;
    --primary-light: #1f3e7a;
    --primary-dark: #0a1733;
    --accent: #2563EB;
    /* Added for Step 6 Checkboxes & Interactions */
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --accent-gold: #c5a059;
    --accent-gold-hover: #e0b666;

    --font-sans: 'Roboto', sans-serif;
    --font-heading: 'Tinos', serif;

    /* Sharp edges */
    --radius: 0px;
    --radius-sm: 2px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-sans);
}

body {
    background-color: var(--bg);
    color: var(--text-main);
    line-height: 1.5;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-main);
}

/* PRELOADER */
#global-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--primary-dark);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.4s ease-out, visibility 0.4s ease-out;
}

#global-preloader img {
    width: 60px;
    height: 60px;
    animation: pulsePreloader 1.5s infinite ease-in-out;
}

@keyframes pulsePreloader {
    0% {
        transform: scale(0.9);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }

    100% {
        transform: scale(0.9);
        opacity: 0.7;
    }
}

/* BUTTONS & INPUTS */
button {
    cursor: pointer;
    font-family: var(--font-sans);
    font-weight: 500;
    transition: all 0.2s ease;
    border-radius: var(--radius);
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
}

.btn-primary:hover:not(:disabled) {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(45, 75, 154, 0.2);
}

.btn-primary:disabled {
    background-color: var(--primary);
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.hero-cta {
    background-color: var(--primary);
    color: white;
    padding: 1.125rem 2.5rem;
    font-size: 1rem;
    border: none;
    box-shadow: 0 4px 6px rgba(10, 15, 30, 0.1);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.hero-cta:hover:not(:disabled) {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(45, 75, 154, 0.2);
}

.hero-cta:disabled {
    background-color: var(--primary) !important;
    color: white !important;
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
    border: none !important;
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-outline:hover {
    background-color: var(--primary);
    color: white;
}

.btn-icon {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

input,
select,
textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.95rem;
    color: var(--text-main);
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
    font-family: var(--font-sans);
}

textarea {
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(45, 75, 154, 0.1);
}

label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 0.2rem;
}

.checkbox-group label {
    font-weight: 400;
    margin-bottom: 0;
}

/* NAVBAR */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 3rem;
    /* Reduced from 1rem to tighten space around the taller logo */
    border-bottom: 1px solid var(--border);
    background: #F9FAFB;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: padding 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

/* Modificator that disables shrinking animation */
.navbar.static-nav {
    padding: 0.3rem 3rem !important;
    background: #F9FAFB !important;
    box-shadow: none !important;
}

.navbar.static-nav #nav-logo {
    height: 90px !important;
}

.nav-left,
.nav-right {
    flex: 1;
    display: flex;
    align-items: center;
}

.nav-right {
    justify-content: flex-end;
}

.nav-left {
    justify-content: flex-start;
}

.hamburger-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sharp-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
}

.sharp-hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-main);
    transition: background-color 0.2s;
}

.hamburger-btn:hover .sharp-hamburger span {
    background-color: var(--primary);
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

/* SIDE PANEL OFF-CANVAS */
.side-panel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(2px);
    z-index: 1100;
    display: none;
    /* Toggled by JS */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.side-panel-overlay.visible {
    display: block;
    opacity: 1;
}

.side-panel {
    position: fixed;
    top: 0;
    left: -400px;
    /* Hidden off-screen */
    width: 100%;
    max-width: 350px;
    height: 100vh;
    background: white;
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.1);
    z-index: 1200;
    padding: 3rem 2rem;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
}

.side-panel.open {
    transform: translateX(400px);
}

.close-panel-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s;
}

.close-panel-btn:hover {
    color: var(--primary);
}

.side-panel-content {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.panel-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.panel-label {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
}

.lang-switch-panel {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--bg-alt);
    font-size: 0.95rem;
    color: var(--text-main);
    cursor: pointer;
}

.nav-switch-panel {
    background: transparent;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 0.25rem 0;
    color: var(--text-main);
    cursor: pointer;
    transition: color 0.2s;
}

.nav-switch-panel:hover,
.nav-switch-panel.active {
    color: var(--primary);
}

/* APP CONTAINER */
#app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.view {
    flex: 1;
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* LANDING PAGE - FORM WRAPPER */
.form-wrapper {
    width: 100%;
    max-width: 480px;
}

.form-header {
    margin-bottom: 2rem;
}

.form-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.form-header p {
    color: var(--text-muted);
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-row {
    display: flex;
    gap: 1rem;
}

.input-row .half {
    flex: 1;
}

.file-upload-box {
    border: 1px dashed var(--border);
    padding: 2rem;
    text-align: center;
    position: relative;
    background: var(--bg-alt);
    transition: all 0.2s;
    cursor: pointer;
}

.file-upload-box:hover {
    border-color: var(--primary);
    background: rgba(45, 75, 154, 0.02);
}

.file-upload-box i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.file-upload-box span {
    display: block;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}

.file-upload-box small {
    color: var(--text-muted);
}

.file-upload-box input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}



/* HERO SECTION (SPLIT SCREEN) */
.hero-section {
    background-color: var(--primary);
    color: white;
    min-height: 100vh;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    /* Align to top instead of center */
}

.hero-left {
    flex: 0 0 65%;
    /* To move the text higher or lower, adjust the FIRST value here (e.g., currently 10vh).
       'vh' means viewport percentage. Smaller number = higher up the screen. */
    padding: 30vh 6rem 5rem 10%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: left;
}

.hero-right {
    flex: 0 0 35%;
    height: 100vh;
    background-image: url('Images/claudio-poggio-wDFdZN6VOq0-unsplash.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 27, 46, 0.25);
    z-index: 1;
}

.hero-section h1 {
    font-size: 4rem;
    font-family: var(--font-heading) !important;
    font-weight: 300;
    /* Making header thinner */
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: #ffffff;
}

.hero-brand-text {
    font-family: inherit;
}

.mobile-break {
    display: none;
}

@media (min-width: 1024px) {
    .hero-brand-text {
        white-space: nowrap;
    }
}

@media (max-width: 1024px) {
    .mobile-break {
        display: block;
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 3.5rem 0;
    max-width: 800px;
    line-height: 1.7;
    font-weight: 200;
    /* Making subtext thinner */
}

/* McKinsey Style CTA */
.mckinsey-cta {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.15rem;
    font-family: var(--font-body);
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    cursor: pointer;
    padding: 0;
    margin: 0;
}

.mckinsey-cta span {
    border: none;
    background: transparent;
}

.circle-arrow {
    width: 64px;
    /* Slightly bigger circle */
    height: 64px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
    /* Gray/translucent background */
    border: none;
    /* Borderless */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    color: white;
}

.circle-arrow i {
    font-size: 1.5rem;
}

.mckinsey-cta:hover .circle-arrow {
    background-color: #2B4CD6;
    /* Bright blue on hover */
    color: white;
    transform: translateY(-5px);
    /* Gentle animation moving up a few pixels */
}

/* BENEFITS SECTION */
.benefits-section {
    background-color: var(--bg);
    padding: 0;
    /* Removing padding to allow full edge-to-edge bleed */
    position: relative;
    z-index: 10;
}

/* SECTION 1: WHO WE WORK WITH */
.section-who {
    background-color: #F9FAFB;
    /* Removed padding so image can bleed to edges */
    display: flex;
}

.who-split {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    /* Stretch children vertically */
    gap: 0;
    /* Remove gap, we manage spacing via padding on text side now */
    width: 100%;
    margin: 0;
}

.who-image {
    flex: 0 0 35%;
    /* Image takes up exactly 35% width */
}

.who-image img {
    width: 100%;
    height: 100%;
    /* Stretch to container full height */
    object-fit: cover;
    display: block;
    /* Remove bottom whitespace */
    filter: brightness(0.8);
}

.who-text {
    flex: 0 0 65%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    /* Ensure left alignment */
    text-align: left;
    /* Left align the text */
    padding: 8rem 5% 8rem 8%;
    /* Give text breathing room */
}

.who-text h2 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    max-width: 600px;
}

.who-text p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-main);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.who-tags {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    color: var(--text-muted);
    line-height: 1.8;
    max-width: 600px;
}

/* SECTION 2: HOW IT WORKS */
.section-how {
    background-color: var(--primary);
    padding: 8rem 5%;
    color: white;
}

.how-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.how-col {
    position: relative;
    padding-left: 2rem;
    border-left: 1px solid #1A4FD6;
}

.how-number {
    position: absolute;
    top: -2.5rem;
    left: 1rem;
    font-size: 8rem;
    font-weight: 700;
    line-height: 1;
    color: rgba(255, 255, 255, 0.05);
    z-index: 0;
    user-select: none;
}

.how-col h3 {
    position: relative;
    z-index: 1;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: white;
}

.how-col p {
    position: relative;
    z-index: 1;
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

/* SECTION 3: OUR APPROACH */
.section-approach {
    background-color: #F9FAFB;
    padding: 8rem 0 0 0;
}

.approach-top {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 4.5rem 5%;
}

.approach-top h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--primary-dark);
    margin-bottom: 2rem;
    line-height: 1.2;
    font-weight: 700;
}

.approach-top h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 1px;
    background-color: var(--primary-dark);
    margin: 2rem auto 0 auto;
}

.approach-top p {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--primary-dark);
}

.approach-bottom {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
}

.approach-tile {
    position: relative;
    height: 450px;
    background-size: cover;
    background-position: center;
    background-color: var(--primary-dark);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 240px;
    /* Force headings to align on the same horizontal axis */
    overflow: hidden;
}

.approach-tile.tile-1 {
    background-image: url('Images/image_chess.jpg');
}

.approach-tile.tile-2 {
    background-image: url('Images/building.jpg');
}

.approach-tile.tile-3 {
    background-image: url('Images/bridge_filars1.jpg');
}

.approach-tile .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Use a gradient purely for text readability at the bottom, removing the solid filter */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 60%);
    z-index: 1;
    transition: opacity 0.3s ease;
}

.approach-tile:hover .overlay {
    opacity: 0.8;
}

/* Removed the flat color filters */
.tile-navy,
.tile-blue,
.tile-charcoal {
    background-color: transparent;
}

.tile-text {
    position: relative;
    z-index: 2;
    padding: 0 2.5rem 2.5rem 2.5rem;
    color: white;
}

.tile-text h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: white;
}

.tile-text p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

/* SECTION 3B: ABOUT US */
.section-about {
    background-color: var(--primary);
    color: white;
    padding: 2.5rem 5%;
    /* Top and bottom equal */
    overflow: hidden;
    /* Ensure bottom image naturally clips if needed */
}

.about-container {
    max-width: 1200px;
    /* Expand to give more breathing room for 4 cols */
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 280px;
    /* 4 columns */
    gap: 3rem;
}

/* This is the intro header that breaks out of the columns, spanning them all */
.about-col-left {
    grid-column: 1 / -1;
    margin-bottom: 0rem;
}

.about-col-1,
.about-col-2,
.about-col-3 {
    align-self: stretch;
    /* let them stretch to make space for right column if needed, or flex-start */
}

.about-col-left h2 {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    margin-bottom: 0px;
    color: white;
    line-height: 1.2;
}

.about-col-left p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    max-width: 80%;
    /* Don't span the entire super-wide screen */
}

.about-col-1 h3,
.about-col-2 h3,
.about-col-3 h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: white;
    font-weight: 500;
}

.about-col-2 p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.about-initiatives {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.about-initiatives li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    font-size: 1.05rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

.about-initiatives i {
    color: white;
    font-size: 1rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.about-col-right {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    /* Center vertically within the grid track */
}

.flex-col-align-center {
    flex-direction: column;
}

.about-image-circle {
    width: 260px;
    height: 260px;
    background-color: rgba(255, 255, 255, 0.05);
    /* Subtle background circle */
    border-radius: 50%;
    display: flex;
    align-items: flex-end;
    /* Align image to bottom of circle if it's a bust */
    justify-content: center;
    overflow: hidden;
    /* Crop bottom of image to the circle */
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* Very subtle ring */
}

.about-img-transparent {
    width: 90%;
    /* Scale down slightly to fit nicely in circle */
    height: auto;
    display: block;
    margin-bottom: -5px;
    /* Adjust to sit on bottom edge */
}

.about-signature-block {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    /* Space between circle and signature */
    margin-left: -20px;
    /* Optical alignment offset visually due to circle shape */
}

.founder-text {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
}

.founder-linkedin {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.4rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.founder-linkedin:hover {
    color: white;
    transform: translateY(-2px);
}

.founder-signature-img {
    height: 70px;
    /* Adjust scale of signature */
    width: auto;
    filter: brightness(0) invert(1);
    /* Ensure the signature is white/visible on dark background */
    opacity: 0.9;
}

/* SECTION 4: FINAL CTA */
.section-cta {
    background-color: #1A4FD6;
    padding: 10rem 5%;
    text-align: center;
    color: white;
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
}

.cta-container h2 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    font-weight: 700;
    color: white;
}

.cta-container p {
    font-size: 1.25rem;
    margin-bottom: 3.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.btn-outline-white {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2.5rem;
    border: 1px solid white;
    background: transparent;
    color: white;
    font-size: 1.15rem;
    font-family: var(--font-body);
    font-weight: 400;
    cursor: pointer;
    border-radius: var(--radius);
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-outline-white:hover {
    background: white;
    color: #1A4FD6;
}

.btn-outline-primary {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2.5rem;
    border: 1px solid var(--primary);
    background: transparent;
    color: var(--primary);
    font-size: 1.15rem;
    font-family: var(--font-body);
    font-weight: 400;
    cursor: pointer;
    border-radius: var(--radius);
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: white;
}

/* Form Modal Modifications */
.modal-content.form-modal-content {
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2.5rem;
    position: relative;
    text-align: left;
}

.modal-close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    z-index: 100;
}

.modal-close-btn:hover {
    color: var(--primary);
}




/* ADMIN DASHBOARD VIEW */
.dashboard-layout {
    display: flex;
    flex: 1;
    min-height: 100vh;
    background: var(--bg-alt);
}

.sidebar {
    width: 156px;
    background: white;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.sidebar-menu {
    flex: 1;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
}

.menu-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 1rem;
}

.menu-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 0.5rem;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.menu-item:hover {
    background: var(--bg-alt);
    border-left-color: var(--border);
}

.menu-item.active {
    background: rgba(45, 75, 154, 0.05);
    color: var(--primary);
    border-left-color: var(--primary);
}

.menu-item i {
    width: 20px;
    color: var(--text-muted);
}

.menu-item.active i {
    color: var(--primary);
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border);
}

.admin-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.avatar {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}

.profile-info {
    display: flex;
    flex-direction: column;
}

.profile-info strong {
    font-size: 0.875rem;
}

.profile-info span {
    font-size: 0.75rem;
    color: var(--text-muted);
}


/* DASHBOARD CONTENT */
.dashboard-content {
    flex: 1;
    padding: 2.5rem 3rem;
    overflow-y: auto;
}

.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
}

.header-titles h2 {
    font-size: 2rem;
    font-family: var(--font-body);
    margin-bottom: 0.25rem;
}

.header-titles p {
    color: var(--text-muted);
}

.header-actions {
    display: flex;
    gap: 1rem;
}

.search-box {
    position: relative;
    width: 300px;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-box input {
    padding-left: 2.5rem;
}

/* CARDS */
.dash-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.card {
    background: white;
    border: 1px solid var(--border);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
}

.card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.card-icon.blue {
    background: rgba(45, 75, 154, 0.1);
    color: var(--primary);
}

.card-icon.green {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.card-icon.purple {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.card-icon.orange {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.card-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.card-info h3 {
    font-size: 1.75rem;
    margin-top: 0.25rem;
    font-family: var(--font-sans);
    font-weight: 700;
}


/* TABLE */
.table-container {
    background: white;
    border: 1px solid var(--border);
}

.table-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.table-header h3 {
    font-family: var(--font-sans);
    font-size: 1.25rem;
}

.table-filters {
    display: flex;
    gap: 1rem;
}

.table-filters select {
    width: auto;
    padding: 0.5rem 2rem 0.5rem 1rem;
    font-size: 0.875rem;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.data-table th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 700;
    background: var(--bg-alt);
}

.table-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.usr-avatar {
    width: 36px;
    height: 36px;
    background: var(--primary-light);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.75rem;
}

.usr-info {
    display: flex;
    flex-direction: column;
}

.usr-info strong {
    font-size: 0.95rem;
    color: var(--text-main);
}

.usr-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.data-table td {
    font-size: 0.95rem;
    color: var(--text-main);
    vertical-align: middle;
}

.ai-summary {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.4;
    max-width: 250px;
}

.badge-tier {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.tier-a {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.tier-a i {
    color: #10b981;
}

.tier-b {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.tier-c {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.tier-d {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.tier-e {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.status-pill {
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-pill.new {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.status-pill.contact {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.status-pill.idle {
    background: var(--bg-alt);
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.status-pill.recommended {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border);
    border-left: 3px solid #10b981;
}

.status-pill.not-recommended {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border);
    border-left: 3px solid #ef4444;
}

/* TIER: null / unscored state */
.tier-none {
    background: var(--bg-alt);
    color: var(--text-muted);
    border: 1px solid var(--border);
}

/* SCORE BADGE */
.score-badge {
    display: inline-flex;
    align-items: baseline;
    gap: 0.1rem;
    font-size: 0.875rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
}

.score-badge small {
    font-size: 0.65rem;
    font-weight: 400;
    opacity: 0.7;
}

.score-high {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.score-mid {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.score-low {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.score-none {
    background: var(--bg-alt);
    color: var(--text-muted);
}

/* DAILY RATE */
.rate-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
}

.rate-text small {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 0.75rem;
}

.muted {
    color: var(--text-muted);
    font-weight: 400;
}

/* DISCREPANCY / BOOLEAN FLAGS */
.flag-warning {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #f59e0b;
}

.flag-clear {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #10b981;
}

/* SKILL TAGS */
.skill-tag {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
    border: 1px solid var(--border);
    color: var(--text-main);
    background: var(--bg-alt);
    margin: 0.15rem 0.15rem 0.15rem 0;
}

/* PROFILE LINK (LinkedIn / CV) */
.profile-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}

.profile-link:hover {
    opacity: 0.75;
}

/* ── CONTRACTOR PROFILE SLIDE-OVER ─────────────────────────────── */

.panel-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(2px);
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.panel-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.contractor-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 50vw;
    height: 100vh;
    background: white;
    border-left: 1px solid var(--border);
    z-index: 201;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.contractor-panel.open {
    transform: translateX(0);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.panel-header-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.panel-avatar {
    width: 44px;
    height: 44px;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.panel-header-info>div {
    display: flex;
    flex-direction: column;
}

.panel-header-info strong {
    font-size: 1rem;
    color: var(--text-main);
}

.panel-header-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.panel-body {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 2rem;
}

.profile-section {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

.profile-section:last-child {
    border-bottom: none;
}

.profile-section-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* ── Contact bar (horizontal Sekcja 1) ────────────────────────── */

.panel-contact-bar {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg-alt);
}

.panel-contact-bar .contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-main);
}

.panel-contact-bar .contact-item i {
    color: var(--text-muted);
    font-size: 0.85rem;
    width: 16px;
    text-align: center;
}

.panel-contact-bar .contact-item a {
    color: var(--primary);
    text-decoration: none;
}

.panel-contact-bar .contact-item a:hover {
    text-decoration: underline;
}

/* ── Decision section (Sekcja 2) ──────────────────────────────── */

.panel-decision {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

.panel-decision-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.panel-decision .status-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-right: 0.5rem;
}

.btn-save-changes {
    padding: 0.5rem 1.25rem;
    background: var(--primary);
    color: white;
    border: none;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-left: auto;
}

.btn-save-changes:hover {
    opacity: 0.9;
}

.btn-save-changes.hidden {
    display: none;
}

/* ── Admin notes (Sekcja 5) ───────────────────────────────────── */

.admin-notes-textarea {
    width: 100%;
    min-height: 100px;
    padding: 0.75rem;
    border: 1px solid var(--border);
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-main);
    resize: vertical;
    transition: border-color 0.2s;
}

.admin-notes-textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.admin-notes-sublabel {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 0.35rem;
}

/* ── Manual override annotation ───────────────────────────────── */

.manual-override-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.7rem;
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
    padding: 0.15rem 0.5rem;
    margin-left: 0.5rem;
}

.manual-override-badge i {
    font-size: 0.65rem;
}

.profile-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 0.85rem;
}

.profile-field:last-child {
    margin-bottom: 0;
}

.profile-field-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-field-value {
    font-size: 0.9rem;
    color: var(--text-main);
    line-height: 1.5;
}

/* ── ITERATION 2: NEW ADMIN COMPONENTS ────────────────────────── */

/* Sidebar brand logo area */
.sidebar-brand {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Back link pushed to bottom of sidebar */
.sidebar-back {
    margin-top: auto !important;
    border-top: 1px solid var(--border);
    color: var(--text-muted) !important;
    font-size: 0.85rem;
}

/* Panel action buttons strip */
.panel-actions {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg-alt);
    flex-shrink: 0;
}

.btn-action {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.6rem 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid var(--border);
    background: white;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-action:hover {
    border-color: var(--text-muted);
}

.btn-action--accept.active {
    background: rgba(16, 185, 129, 0.1);
    border-color: #10b981;
    color: #10b981;
}

.btn-action--draft.active {
    background: var(--bg-alt);
    border-color: var(--text-muted);
    color: var(--text-main);
}

.btn-action--reject.active {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
    color: #ef4444;
}

/* Inline status select in table */
.status-select {
    width: auto;
    padding: 0.35rem 1.8rem 0.35rem 0.6rem;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid var(--border);
    background: white;
    color: var(--text-main);
    cursor: pointer;
    appearance: auto;
}

/* Filter groups with icons */
.filter-group {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: white;
    border: 1px solid var(--border);
    padding: 0 0.5rem;
    transition: border-color 0.2s;
}

.filter-group:hover,
.filter-group:focus-within {
    border-color: var(--primary);
}

.filter-group i {
    font-size: 0.75rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

.filter-group select {
    border: none !important;
    padding: 0.5rem 1.5rem 0.5rem 0.25rem;
    font-size: 0.8rem;
    background: transparent;
    min-width: 0;
}

.filter-group select:focus {
    outline: none;
}

/* Tier select inside profile panel */
.tier-select {
    width: auto;
    padding: 0.3rem 1.5rem 0.3rem 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid var(--border);
    background: white;
}

/* Email link in table */
.table-email-link {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.8rem;
    transition: opacity 0.2s;
}

.table-email-link:hover {
    opacity: 0.7;
    text-decoration: underline;
}

/* Editable fields in profile panel */
.field-editable {
    width: 100%;
    padding: 0.5rem 0.6rem;
    font-size: 0.85rem;
    font-family: inherit;
    border: 1px solid var(--border);
    background: white;
    color: var(--text-main);
    transition: border-color 0.2s;
    resize: vertical;
}

.field-editable:focus {
    outline: none;
    border-color: var(--accent);
}

.field-editable--sm {
    width: 90px;
}

.field-editable--auto {
    width: auto;
}

/* Row layouts for editable fields */
.editable-tier-row,
.editable-field-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Save confirmation flash */
.save-confirm {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #10b981;
    opacity: 0;
    transition: opacity 0.3s ease;
    margin-left: 0.5rem;
}

.save-confirm.visible {
    opacity: 1;
}

/* Boolean toggle switch */
.toggle-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.85rem;
}

.field-toggle {
    display: none;
}

.toggle-track {
    width: 36px;
    height: 20px;
    background: #cbd5e1;
    position: relative;
    transition: background 0.2s;
    flex-shrink: 0;
}

.toggle-track::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: white;
    transition: transform 0.2s;
}

.field-toggle:checked+.toggle-track {
    background: var(--accent);
}

.field-toggle:checked+.toggle-track::after {
    transform: translateX(16px);
}

/* Inline action buttons in table */
.inline-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.btn-action-inline {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    background: white;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.2s ease;
}

.btn-action-inline:hover {
    border-color: var(--text-muted);
}

.btn-action-inline--accept.active,
.btn-action-inline--accept:hover {
    background: rgba(16, 185, 129, 0.1);
    border-color: #10b981;
    color: #10b981;
}

.btn-action-inline--draft.active,
.btn-action-inline--draft:hover {
    background: rgba(245, 158, 11, 0.1);
    border-color: #f59e0b;
    color: #f59e0b;
}

.btn-action-inline--reject.active,
.btn-action-inline--reject:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
    color: #ef4444;
}

.btn-icon {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    background: white;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.7rem;
    transition: all 0.2s ease;
}

.btn-icon:hover {
    border-color: var(--primary);
    color: var(--primary);
}

@media (max-width: 480px) {
    .contractor-panel {
        width: 100vw;
    }
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .landing-container {
        flex-direction: column;
    }

    .who-split {
        flex-direction: column;
        gap: 0;
    }

    .who-image,
    .who-text {
        flex: 1 1 100%;
        width: 100%;
    }

    .who-text {
        padding: 4rem 2rem;
    }

    .landing-right {
        order: -1;
        padding: 4rem 2rem;
    }

    .main-info-card {
        padding: 2rem;
    }

    .main-info-card h1 {
        font-size: 2.5rem;
    }

    .dash-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .input-row {
        flex-direction: column;
        gap: 0;
    }

    .how-container,
    .approach-bottom {
        grid-template-columns: 1fr;
    }

    .section-who h2,
    .approach-top h2,
    .section-cta h2 {
        font-size: 2.2rem;
    }

    .section-how,
    .section-who,
    .section-approach,
    .section-cta {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }

    .navbar {
        padding: 1rem;
    }

    .features-list {
        gap: 1rem;
    }

    .stats-row {
        flex-direction: column;
        gap: 1.5rem;
    }

    .sidebar {
        display: none;
    }

    .dashboard-content {
        padding: 1.5rem;
    }

    .dash-cards {
        grid-template-columns: 1fr;
    }

    .table-container {
        overflow-x: auto;
    }
}

/* Navbar Scrolled State */
.navbar.scrolled {
    padding: 0.5rem 5%;
    background: rgba(249, 250, 251, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.navbar.scrolled #nav-logo {
    height: 48px !important;
}

/* Success Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-content {
    background: white;
    padding: 3rem;
    max-width: 450px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.modal-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.modal-content h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.modal-content p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.modal-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

/* ==========================================================================
   MULTI-STEP FORM (PREMIUM UX)
   ========================================================================== */

.multi-step-content {
    max-width: 800px;
    padding: 3rem 3rem 1.5rem 3rem;
    position: relative;
    border-radius: 0;
    /* Strict 90 degree edges */
}

.form-progress-bar-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background-color: #f1f5f9;
}

.form-progress-bar {
    height: 100%;
    background-color: var(--accent);
    transition: width 0.4s ease;
}

/* ==========================================================================
   INTRO SCREEN (STEP 0) ANIMATIONS
   ========================================================================== */
#step-0 {
    animation: fadeInIntro 0.4s ease forwards;
}

.intro-text-wrap {
    opacity: 0;
    transform: translateY(20px);
    animation: slideUpFadeIn 0.5s ease 0.7s forwards;
}

.intro-line-container {
    width: 100%;
    max-width: 400px;
    height: 2px;
    background: transparent;
    margin: 2rem auto 0 auto;
    position: relative;
    overflow: hidden;
}

.intro-line {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background-color: #2563EB;
    animation: fillLine 1.8s ease 1.5s forwards;
}

.intro-btn-wrap {
    opacity: 0;
    animation: fadeInIntro 0.4s ease 3.3s forwards;
}

@keyframes fadeInIntro {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUpFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fillLine {
    from {
        width: 0%;
    }

    to {
        width: 100%;
    }
}

.form-step {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    text-align: left;
}

.form-step.active {
    display: block;
    opacity: 1;
    animation: slideInRight 0.4s ease forwards;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.step-progress-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.step-h3 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.step-sub {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* 2x4 Grid for Step 2 Specializations */
.specialization-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.spec-card {
    border: 1px solid #e2e8f0;
    padding: 1.25rem 0.5rem;
    background-color: white;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    min-height: 120px;
}

.spec-card i {
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.spec-card span {
    font-size: 0.95rem;
    color: var(--text-main);
    font-weight: 500;
}

.spec-card:hover {
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

.spec-card.selected {
    border-color: var(--accent);
    background-color: rgba(37, 99, 235, 0.05);
    /* Slight accent tint */
}

.spec-card.selected i {
    color: var(--accent);
}

/* Premium Range Slider */
.slider-group {
    margin-bottom: 2rem;
}

.slider-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.75rem;
}

/* Premium Experience Cards */
.experience-grid {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (max-width: 600px) {
    .experience-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}

.exp-card {
    flex: 1;
    border: 1px solid #e2e8f0;
    padding: 1.25rem 1rem;
    background-color: white;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    border-radius: 0;
    /* Sharp 90 degree edge */
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-main);
}

.exp-card:hover {
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

.exp-card.selected {
    border-color: var(--accent);
    background-color: rgba(37, 99, 235, 0.05);
    /* Slight accent tint */
    color: var(--accent);
}

.step-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
}

.btn-next {
    flex: 2;
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: center;
    font-size: 1.1rem;
    padding: 1rem 2rem;
    border-radius: 0;
}

.btn-next:disabled {
    background-color: #cbd5e1;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Step 2: Skills Tagging */
.tags-wrapper {
    margin-bottom: 2.5rem;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    min-height: 54px;
    align-items: center;
    background-color: white;
    transition: border-color 0.3s ease;
    border-radius: 0;
    /* Sharp container */
}

.tags-container:focus-within {
    border-color: var(--accent);
}

.tagging-input {
    flex: 1;
    min-width: 150px;
    border: none;
    outline: none;
    padding: 0.25rem;
    font-size: 1rem;
    color: var(--text-main);
    background: transparent;
}

.tag {
    display: inline-flex;
    align-items: center;
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    padding: 0.4rem 0.8rem;
    border-radius: 9999px;
    /* Soft rounded edges as requested in plan */
    font-size: 0.9rem;
    font-weight: 500;
    animation: scaleIn 0.2s ease-out forwards;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.tag .tag-close {
    margin-left: 0.5rem;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 0.8rem;
    transition: color 0.2s ease;
}

.tag .tag-close:hover {
    color: #ef4444;
    /* red for delete */
}

.tag-counter {
    display: block;
    text-align: right;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.btn-prev {
    flex: 0 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border-radius: 0;
}

/* Autocomplete & Suggestions */
.autocomplete-wrapper {
    position: relative;
    width: 100%;
}

.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-top: none;
    max-height: 200px;
    overflow-y: auto;
    z-index: 10;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.autocomplete-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-main);
    transition: background-color 0.2s ease;
}

.autocomplete-item:hover,
.autocomplete-item.active {
    background-color: rgba(37, 99, 235, 0.05);
    color: var(--primary);
    font-weight: 500;
}

.suggested-skills-wrapper {
    margin-bottom: 2rem;
    display: none;
    /* Shown dynamically based on domain */
    animation: fadeIn 0.4s ease forwards;
}

.suggestions-label {
    font-size: 0.9rem;
    color: var(--text-main);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.suggested-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.sug-chip {
    padding: 0.4rem 0.8rem;
    border: 1px solid #cbd5e1;
    border-radius: 9999px;
    background: transparent;
    font-size: 0.85rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.sug-chip:hover {
    border-color: var(--accent);
    color: var(--accent);
    background-color: rgba(37, 99, 235, 0.05);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Forms common elements */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
}

.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* Step 3 & 4: Inputs, Textarea & Drag and Drop CV */
.form-input {
    width: 100%;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0;
    font-size: 1rem;
    color: var(--text-main);
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent);
}

.drag-drop-zone {
    border: 2px dashed #cbd5e1;
    border-radius: 0;
    padding: 2.5rem 1.5rem;
    text-align: center;
    background-color: #f8fafc;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
    margin-bottom: 2rem;
}

.drag-drop-zone.drag-over {
    border-color: var(--accent);
    background-color: rgba(37, 99, 235, 0.05);
}

.dz-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.dz-text {
    font-size: 1.05rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.dz-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.file-input-hidden {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* Upload Success State */
.dz-success {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: white;
    padding: 1rem 1.5rem;
    border: 1px solid #e2e8f0;
    animation: scaleIn 0.3s ease-out forwards;
}

.dz-success .file-icon {
    font-size: 2rem;
    color: #ef4444;
    /* PDF Red */
}

.file-details {
    flex: 1;
    text-align: left;
    margin-left: 1rem;
}

.file-name {
    display: block;
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
    word-break: break-all;
}

.file-size {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.btn-remove-file {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.btn-remove-file:hover {
    color: #ef4444;
}

/* Upload Progress Bar */
.upload-progress-container {
    width: 100%;
    height: 6px;
    background-color: #e2e8f0;
    margin-top: 1rem;
    border-radius: 9999px;
    overflow: hidden;
}

.upload-progress-bar {
    height: 100%;
    background-color: var(--accent);
    transition: width 0.1s linear;
}

/* Step 5: Rates */
.rate-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid #e2e8f0;
    transition: border-color 0.3s ease;
}

.rate-input-wrapper:focus-within {
    border-color: var(--accent);
}

.rate-input {
    border: none !important;
    font-size: 1.25rem;
    font-weight: 500;
    flex: 1;
}

.rate-input:focus {
    outline: none;
    border-color: transparent !important;
}

.currency-selector {
    background-color: #f8fafc;
    border-left: 1px solid #e2e8f0;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
}

.currency-select {
    appearance: none;
    background: transparent;
    border: none;
    padding: 1rem 2.5rem 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    outline: none;
    position: relative;
    z-index: 2;
}

.currency-arrow {
    position: absolute;
    right: 1.25rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    pointer-events: none;
    z-index: 1;
}

.skip-link {
    color: var(--text-muted);
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.skip-link:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* Step 6: Consents & GDPR */
.consents-wrapper {
    margin-top: 1.5rem;
}

.consent-block {
    margin-bottom: 1.5rem;
}

.consent-row {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    cursor: pointer;
    position: relative;
}

.custom-checkbox-input {
    appearance: none;
    -webkit-appearance: none;
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
    margin: 0;
}

.custom-checkbox {
    min-width: 24px;
    height: 24px;
    background-color: #f8fafc;
    border: 1px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    margin-top: 0.15rem;
    position: relative;
}

.custom-checkbox i {
    color: white;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.custom-checkbox-input:focus-visible~.custom-checkbox {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.custom-checkbox-input:checked~.custom-checkbox {
    background-color: var(--accent);
    border-color: var(--accent);
}

.custom-checkbox-input:checked~.custom-checkbox i {
    opacity: 1;
}

.consent-text {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-main);
}

.consent-link {
    color: var(--accent);
    text-decoration: underline;
    font-weight: 500;
}

.req-star {
    color: #ef4444;
    font-weight: bold;
    margin-left: 0.2rem;
}

.btn-expand-text {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    margin-left: 2.5rem;
    margin-top: -0.5rem;
    margin-bottom: 1rem;
    display: inline-block;
    transition: color 0.2s ease;
}

.btn-expand-text:hover {
    color: var(--text-main);
}

.expanded-text-box {
    margin-left: 2.5rem;
    background-color: #f8fafc;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-height: 250px;
    overflow-y: auto;
}

.expanded-text-box p {
    margin-bottom: 0.75rem;
}

.expanded-text-box p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   STANDALONE FORM PAGE (join.html)
   ========================================================================== */
.standalone-page-wrapper {
    background-color: #f8fafc;
    /* Subtle light gray */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    padding: 120px 1rem 2rem 1rem;
    /* Space for the fixed navbar */
}

.standalone-logo {
    margin-bottom: 2rem;
    text-align: center;
}

.standalone-logo img {
    height: 60px;
}

.standalone-form-container {
    background: #ffffff;
    width: 100%;
    max-width: 800px;
    border-radius: 0;
    /* Keep it sharp */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    position: relative;
    min-height: 550px;
    /* Base height for transitions */
    overflow: hidden;
}

/* Step 7: Success SVG Checkmark */
.success-checkmark {
    width: 6rem;
    height: 6rem;
    border-radius: 50%;
    display: block;
    stroke-width: 2;
    stroke: #10b981;
    /* Default emerald green */
    stroke-miterlimit: 10;
    margin: 10% auto;
    box-shadow: inset 0px 0px 0px #10b981;
    animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
}

.success-checkmark__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: #10b981;
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.success-checkmark__check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes scale {

    0%,
    100% {
        transform: none;
    }

    50% {
        transform: scale3d(1.1, 1.1, 1);
    }
}

@keyframes fill {
    100% {
        box-shadow: inset 0px 0px 0px 5rem rgba(16, 185, 129, 0.1);
        /* light emerald transparent fill */
    }
}

/* ==========================================================================
   MOBILE RESPONSIVE DESIGN (RWD)
   ========================================================================== */

@media (max-width: 768px) {

    /* Global Adjustments */
    html {
        font-size: 14px;
        /* Reduce base font size to shrink em/rem units globally */
    }

    /* Navbar Modifications */
    .navbar {
        padding: 0.5rem 1.5rem;
    }

    #nav-logo {
        height: auto !important;
        max-height: 50px !important;
        width: auto !important;
    }

    /* Hide language switch on mobile nav, leave it for the sidebar */
    .nav-right .lang-switch {
        display: none;
    }

    /* Hero Section */
    .hero-section {
        flex-direction: column;
        /* Stack so abstract image drops below the hero text */
        min-height: auto;
    }

    .hero-left {
        flex: none;
        width: 100%;
        padding: 10rem 1.5rem 4rem 1.5rem;
        /* Huge top padding to clear fixed navbar on mobile/safari */
        min-height: auto;
    }

    .hero-left h1 {
        font-size: 2.8rem;
    }

    .hero-right {
        flex: none;
        width: 100%;
        height: 50vh;
        /* Zmienione na twarde nadpisanie 100vh z desktopu */
        background-position: center;
    }

    /* Section 1: Who We Work With */
    .section-who {
        padding: 0 !important;
    }

    .who-split {
        flex-direction: column;
    }

    .who-image {
        display: none;
        /* User explicitly requested to hide this image on mobile */
    }

    .who-text {
        padding: 4rem 1.5rem;
    }

    /* Section 2: How It Works */
    .how-flex {
        padding: 4rem 1.5rem;
    }

    .how-grid {
        grid-template-columns: 1fr;
        /* Stack into single column */
        gap: 3rem;
    }

    .how-col .bg-number {
        font-size: 10rem;
        left: -1rem;
        top: -3rem;
    }

    /* Section 3: Our Approach */
    .section-approach {
        padding: 4rem 0 0 0;
        /* Remove horizontal padding so tiles touch the screen edges */
    }

    .approach-top {
        padding: 3rem 1.5rem 4rem 1.5rem;
        /* Add horizontal padding back to the text component */
    }

    .section-about {
        padding: 4rem 0 0 0;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 0 1.5rem;
    }

    .about-col-left,
    .about-col-1,
    .about-col-2,
    .about-col-3 {
        padding-bottom: 0;
    }

    .about-col-left p {
        max-width: 100%;
    }

    .about-col-right {
        justify-content: center;
        padding-bottom: 2rem;
    }

    .about-image-circle {
        width: 220px;
        height: 220px;
    }

    .approach-bottom {
        grid-template-columns: 1fr;
        /* Stack tiles vertically */
    }

    .approach-tile {
        height: 350px;
        padding-top: 15vw;
        /* Adjust top padding for headings to fit nicely */
    }

    .tile-text {
        padding: 0 1.5rem 1.5rem 1.5rem;
    }

    /* Section 4: Final CTA */
    .section-cta {
        padding: 6rem 1.5rem;
    }

    .btn-outline-white {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    background-color: #0d1425;
    /* Dark navy, slightly different from main text */
    color: #e2e8f0;
    /* Light gray text */
    padding: 4rem 2rem 2rem;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    column-gap: 4rem;
    row-gap: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 3rem;
    margin-bottom: 2rem;
}

.footer-brand {
    flex: 1;
    min-width: 250px;
}

.footer-links-grid {
    display: flex;
    gap: 4rem;
    flex-wrap: wrap;
}

.footer-col {
    min-width: 150px;
}

.footer-col h5 {
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col ul li a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease, padding-left 0.2s ease;
    display: inline-block;
}

.footer-col ul li a:hover {
    color: #ffffff;
    padding-left: 5px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    color: #64748b;
    font-size: 0.8rem;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
    }

    .footer-links-grid {
        gap: 2rem;
        flex-direction: column;
    }
}

/* ==========================================================================
   FORM STEP 2: PROJECT TYPES
   ========================================================================== */
.projects-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.project-chip {
    padding: 0.6rem 1rem;
    border: 1px solid var(--border);
    border-radius: 20px;
    background-color: #ffffff;
    color: var(--text-main);
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    user-select: none;
}

.project-chip i {
    font-size: 0.8rem;
    opacity: 0;
    width: 0;
    overflow: hidden;
    transition: all 0.2s ease;
}

.project-chip:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.project-chip.selected {
    background-color: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
}

.project-chip.selected i {
    opacity: 1;
    width: auto;
}

.project-chip.custom {
    border-style: dashed;
}

.project-chip.selected.custom {
    border-style: solid;
}

/* Step 1: Industry Grid (Dense 38 items) */
.industry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.4rem;
    margin-bottom: 1.5rem;
}

.industry-chip {
    border: 1px solid var(--border);
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
    background-color: white;
    color: var(--text-main);
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
    border-radius: 0;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    min-height: 40px;
}

.industry-chip:hover {
    border-color: var(--primary);
    background-color: #f8fafc;
}

.industry-chip.selected {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
    font-weight: 500;
}

/* ─────────────────────────────────────────────────────────────────
   DESKTOP ONLY BLOCKER (Admin Panel) 
───────────────────────────────────────────────────────────────── */
#desktop-only-blocker {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100vh;
    width: 100vw;
    background-color: var(--bg-alt);
    padding: 2rem;
    box-sizing: border-box;
}

.desktop-icon-blocker {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

#desktop-only-blocker h2 {
    font-family: var(--font-heading);
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 2rem;
}

#desktop-only-blocker p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 400px;
    line-height: 1.6;
}

@media (max-width: 1024px) {
    #view-admin #desktop-only-blocker {
        display: flex;
    }

    #view-admin .dashboard-layout,
    #view-admin .contractor-panel {
        display: none !important;
    }
}