/* PWRGO Brand Colors - Dark Theme */
:root {
    --color-pwrgo-black: #0c0c0c;
    --color-pwrgo-green: #b5db64;
    --color-pwrgo-white: #ffffff;
    
    /* Primary (Brand Green) */
    --color-primary-50: #f7fce8;
    --color-primary-100: #ecf8c8;
    --color-primary-200: #daf094;
    --color-primary-300: #c1e455;
    --color-primary-400: #b5db64;
    --color-primary-500: #9bc53d;
    --color-primary-600: #7ca230;
    --color-primary-700: #5e7b27;
    --color-primary-800: #4c6323;
    --color-primary-900: #425421;
    
    /* Dark Theme Grays */
    --color-gray-50: #fafafa;
    --color-gray-100: #f4f4f5;
    --color-gray-200: #e4e4e7;
    --color-gray-300: #d4d4d8;
    --color-gray-400: #a1a1aa;
    --color-gray-500: #71717a;
    --color-gray-600: #52525b;
    --color-gray-700: #3f3f46;
    --color-gray-800: #27272a;
    --color-gray-900: #18181b;
    --color-gray-950: #0c0c0c;
    
    /* Semantic Colors */
    --color-error: #ef4444;
    --color-success: #10b981;
    
    /* Typography */
    --font-family-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -1px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.5);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-family: var(--font-family-sans);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--color-gray-950);
    color: var(--color-pwrgo-white);
    line-height: 1.6;
    min-height: 100vh;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(12, 12, 12, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-gray-800);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    height: 2.5rem;
    width: auto;
    transform: translateY(6px); /* Lower the logo for better visual centering */
}

.header-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-badge {
    background: var(--color-primary-400);
    color: var(--color-gray-950);
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-full);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.header-tagline {
    display: none;
    color: var(--color-gray-400);
    font-size: 0.75rem;
    font-weight: 500;
}

@media (min-width: 480px) {
    .header-badge {
        padding: 0.25rem 0.75rem;
        font-size: 0.625rem;
        letter-spacing: 0.1em;
    }
    
    .header-tagline {
        display: block;
        font-size: 0.875rem;
        border-left: 1px solid var(--color-gray-700);
        padding-left: 0.75rem;
    }
}

@media (min-width: 640px) {
    .header-container {
        padding: 1.25rem 2rem;
    }
    
    .logo {
        height: 3rem;
        transform: translateY(8px); /* Lower more for larger size */
    }
    
    .header-right {
        gap: 1rem;
    }
    
    .header-badge {
        padding: 0.3rem 1rem;
        font-size: 0.7rem;
    }
    
    .header-tagline {
        display: block;
        padding-left: 1rem;
    }
}

/* Main */
.main {
    padding-bottom: 4rem;
}

/* Hero Section */
.hero-section {
    padding: 3rem 0;
    background: linear-gradient(180deg, rgba(181, 219, 100, 0.05) 0%, transparent 100%);
    text-align: center;
}

.hero-badge {
    display: inline-block;
    background: var(--color-primary-400);
    color: var(--color-gray-950);
    padding: 0.25rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.text-gradient {
    background: linear-gradient(135deg, #ffffff 0%, #b5db64 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    color: var(--color-gray-400);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .hero-section {
        padding: 4rem 0;
    }
    
    .hero-title {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .hero-section {
        padding: 5rem 0;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
}

/* Job Description Section */
.job-section {
    padding: 3rem 0;
}

.job-card {
    background: var(--color-gray-900);
    border: 1px solid var(--color-gray-800);
    border-radius: var(--radius-xl);
    padding: 2rem;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.job-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    padding-top: 3rem; /* Add space for the Apply button */
    border-bottom: 1px solid var(--color-gray-800);
}

@media (min-width: 768px) {
    .job-header {
        padding-top: 0; /* Reset on larger screens where button doesn't overlap */
        padding-right: 8rem; /* Add space for the button on the right */
    }
}

.job-title {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

@media (min-width: 768px) {
    .job-title {
        padding-right: 1rem; /* Ensure title doesn't touch button area */
    }
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-gray-400);
    font-size: 0.875rem;
}

.meta-item svg {
    color: var(--color-primary-400);
    flex-shrink: 0;
}

.company-intro {
    margin-bottom: 2rem;
    background: rgba(181, 219, 100, 0.03);
    border-left: 3px solid var(--color-primary-400);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.company-intro-toggle {
    display: none;
    width: 100%;
    padding: 1.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.2s ease;
}

.company-intro-toggle:hover {
    background: rgba(181, 219, 100, 0.05);
}

.company-intro-toggle h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-primary-400);
    margin: 0;
}

.toggle-icon {
    color: var(--color-primary-400);
    transition: transform 0.3s ease;
}

.company-intro.collapsed .toggle-icon {
    transform: rotate(-90deg);
}

.company-intro-content {
    padding: 0 1.5rem 1.5rem;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
    max-height: 500px;
    opacity: 1;
}

.company-intro.collapsed .company-intro-content {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
    overflow: hidden;
}

.company-intro-content p {
    margin: 0;
    color: var(--color-gray-300);
    line-height: 1.8;
}

.company-intro-title-desktop {
    display: none;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-primary-400);
    margin-bottom: 0.75rem;
}

/* Desktop styles - always expanded */
@media (min-width: 768px) {
    .company-intro {
        padding: 1.5rem;
    }
    
    .company-intro-toggle {
        display: none !important;
    }
    
    .company-intro-title-desktop {
        display: block;
    }
    
    .company-intro-content {
        padding: 0;
        max-height: none !important;
        opacity: 1 !important;
    }
}

/* Mobile styles - collapsible */
@media (max-width: 767px) {
    .company-intro {
        padding: 0;
    }
    
    .company-intro-toggle {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .company-intro-title-desktop {
        display: none;
    }
}

.job-content {
    color: var(--color-gray-300);
}

.job-section-block {
    margin-bottom: 2rem;
}

.job-section-block h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-pwrgo-white);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.job-section-block h3::before {
    content: "";
    width: 4px;
    height: 1.25rem;
    background: var(--color-primary-400);
    margin-right: 0.75rem;
    border-radius: 2px;
}

.job-section-block p {
    line-height: 1.8;
    margin-bottom: 1rem;
}

.job-section-block ul {
    list-style: none;
    padding: 0;
}

.job-section-block li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.job-section-block li::before {
    content: "•";
    position: absolute;
    left: 0.5rem;
    color: var(--color-primary-400);
    font-weight: bold;
}

.section-intro {
    margin-bottom: 1rem;
    font-style: italic;
}

/* Perks Section */
.perks-section ul {
    list-style: none;
}

.perks-list li {
    display: flex;
    align-items: flex-start;
    padding-left: 0;
    margin-bottom: 1rem;
}

.perks-list li::before {
    display: none;
}

.perk-icon {
    font-size: 1.25rem;
    margin-right: 0.75rem;
    flex-shrink: 0;
    display: inline-block;
    width: 1.5rem;
}

.job-footer {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-gray-800);
}

.job-footer p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-gray-200);
    margin-bottom: 0.75rem;
}

.job-footer p:last-child {
    margin-bottom: 0;
    font-style: italic;
}

@media (min-width: 640px) {
    .job-card {
        padding: 2.5rem;
    }
    
    .job-title {
        font-size: 2.25rem;
    }
    
    .job-meta {
        gap: 2rem;
    }
}

@media (min-width: 1024px) {
    .job-section {
        padding: 4rem 0;
    }
    
    .job-card {
        padding: 3rem;
    }
    
    .job-title {
        font-size: 2.5rem;
    }
    
    .meta-item {
        font-size: 0.9375rem;
    }
    
    .job-section-block h3 {
        font-size: 1.375rem;
    }
}

/* Form Section */
.form-section {
    padding: 3rem 0 4rem;
    background: linear-gradient(180deg, transparent 0%, rgba(181, 219, 100, 0.02) 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--color-pwrgo-white);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-gray-400);
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
}

.form-card {
    background: var(--color-gray-900);
    border: 1px solid var(--color-gray-800);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-xl);
}

/* Step Progress */
.step-header {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-gray-800);
    margin-bottom: 2rem;
}

.step-progress {
    margin-bottom: 1rem;
}

.step-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.step-label {
    color: var(--color-primary-400);
    font-size: 0.875rem;
    font-weight: 500;
}

.step-percentage {
    color: var(--color-gray-500);
    font-size: 0.75rem;
}

.step-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.step-description {
    color: var(--color-gray-400);
    font-size: 0.875rem;
}

.progress-bar {
    width: 100%;
    height: 0.5rem;
    background: var(--color-gray-800);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-top: 1rem;
}

.progress-fill {
    height: 100%;
    background: var(--color-primary-400);
    border-radius: var(--radius-full);
    transition: width 0.3s ease;
}

/* Form Steps */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Groups */
.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    gap: 1rem;
}

@media (min-width: 640px) {
    .form-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--color-gray-200);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="date"],
input[type="file"],
textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(24, 24, 27, 0.6);
    border: 1px solid var(--color-gray-700);
    border-radius: var(--radius-md);
    color: var(--color-pwrgo-white);
    font-size: 0.9375rem;
    transition: all 0.2s ease;
}

select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(24, 24, 27, 0.6);
    border: 1px solid var(--color-gray-700);
    border-radius: var(--radius-md);
    color: var(--color-pwrgo-white);
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    font-family: inherit;
}

/* Custom select wrapper - Complete dark theme solution */
.select-wrapper {
    position: relative;
    width: 100%;
}

.select-wrapper select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 2.5rem;
    cursor: pointer;
    background-color: rgba(24, 24, 27, 0.6) !important;
    background-image: none !important;
}

/* Force dark background for dropdown options */
select {
    color-scheme: dark;
}

select option {
    background-color: #18181b !important;
    color: #f3f4f6 !important;
    padding: 0.75rem !important;
    font-size: 0.9375rem;
}

select option:hover,
select option:focus {
    background-color: #27272a !important;
    color: #b5db64 !important;
}

select option:checked {
    background: linear-gradient(0deg, rgba(181, 219, 100, 0.2), rgba(181, 219, 100, 0.2)), #18181b !important;
    color: #b5db64 !important;
    font-weight: 600;
}

/* Firefox specific fixes */
@-moz-document url-prefix() {
    select {
        background-color: rgba(24, 24, 27, 0.6) !important;
    }
    
    select option {
        background-color: #18181b !important;
    }
}

/* Webkit browsers (Chrome, Safari, Edge) */
@media screen and (-webkit-min-device-pixel-ratio:0) {
    select {
        background-color: rgba(24, 24, 27, 0.6) !important;
    }
    
    select option {
        background-color: #18181b !important;
        color: #f3f4f6 !important;
    }
}

.select-arrow {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--color-primary-400);
    transition: transform 0.2s ease;
}

.select-wrapper:focus-within .select-arrow {
    transform: translateY(-50%) rotate(180deg);
}

/* File input styling */
input[type="file"] {
    cursor: pointer;
    padding: 0.5rem 0.75rem;
}

input[type="file"]::-webkit-file-upload-button {
    background: var(--color-primary-400);
    color: var(--color-gray-950);
    border: none;
    padding: 0.5rem 1rem;
    margin-right: 1rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

input[type="file"]::-webkit-file-upload-button:hover {
    background: var(--color-primary-300);
}

input::placeholder,
textarea::placeholder {
    color: var(--color-gray-500);
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-primary-400);
    background: rgba(24, 24, 27, 0.8);
    box-shadow: 0 0 0 3px rgba(181, 219, 100, 0.1);
}

select:focus {
    outline: none;
    border-color: var(--color-primary-400);
    background: rgba(24, 24, 27, 0.8) !important;
    box-shadow: 0 0 0 3px rgba(181, 219, 100, 0.1);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

.field-help {
    font-size: 0.75rem;
    color: var(--color-gray-500);
    margin-top: 0.25rem;
}

.error-message {
    display: none;
    font-size: 0.75rem;
    color: var(--color-error);
    margin-top: 0.25rem;
}

.form-group.error .error-message {
    display: block;
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: var(--color-error);
}

/* Checkbox */
.consent-box {
    background: rgba(181, 219, 100, 0.03);
    border: 1px solid var(--color-gray-800);
    border-radius: var(--radius-md);
    padding: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    margin-top: 0.125rem;
    accent-color: var(--color-primary-400);
    cursor: pointer;
}

.checkbox-label span {
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--color-gray-300);
}

/* Turnstile */
.turnstile-container {
    margin: 1.5rem 0;
    display: flex;
    justify-content: center;
}

/* Review Notice */
.review-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: rgba(181, 219, 100, 0.05);
    border: 1px solid rgba(181, 219, 100, 0.2);
    border-radius: var(--radius-md);
    color: var(--color-primary-400);
    font-size: 0.875rem;
}

/* Form Navigation */
.form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-gray-800);
    margin-top: 2rem;
}

.btn-back {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: var(--color-gray-400);
    border: none;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s ease;
}

.btn-back:hover {
    color: var(--color-pwrgo-white);
}

.btn-back:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.btn-primary,
.btn-submit {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--color-primary-400);
    color: var(--color-gray-950);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary:hover,
.btn-submit:hover {
    background: var(--color-primary-300);
    transform: translateY(-1px);
}

.btn-primary:disabled,
.btn-submit:disabled {
    background: var(--color-gray-700);
    color: var(--color-gray-500);
    cursor: not-allowed;
    transform: none;
}

.btn-submit {
    padding: 0.875rem 2rem;
}

/* Form Messages */
.form-message {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    display: none;
}

.form-message.success {
    display: block;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--color-success);
}

.form-message.error {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--color-error);
}

/* Success Card */
.success-card {
    background: var(--color-gray-900);
    border: 1px solid var(--color-primary-400) / 20%;
    border-radius: var(--radius-xl);
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-xl);
}

.success-icon {
    width: 6rem;
    height: 6rem;
    background: var(--color-primary-400) / 20%;
    border: 2px solid var(--color-primary-400) / 40%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    color: var(--color-primary-400);
}

.success-card h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.success-card p {
    color: var(--color-gray-300);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

/* Status Timeline */
.status-timeline {
    text-align: left;
    max-width: 400px;
    margin: 2rem auto 0;
}

.timeline-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.timeline-item.active {
    opacity: 1;
}

.timeline-dot {
    width: 0.5rem;
    height: 0.5rem;
    background: var(--color-gray-600);
    border-radius: 50%;
    margin-top: 0.5rem;
    flex-shrink: 0;
}

.timeline-item.active .timeline-dot {
    background: var(--color-primary-400);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.timeline-title {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    color: var(--color-gray-300);
}

.timeline-item.active .timeline-title {
    color: var(--color-primary-400);
}

.timeline-desc {
    font-size: 0.75rem;
    color: var(--color-gray-500);
}

/* Apply Buttons */
.apply-btn-desktop {
    display: none;
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: var(--color-primary-400);
    color: var(--color-gray-950);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.apply-btn-desktop:hover {
    background: var(--color-primary-300);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(181, 219, 100, 0.3);
}

.apply-btn-desktop:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(181, 219, 100, 0.3);
}

.apply-btn-mobile {
    display: flex;
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary-400);
    color: var(--color-gray-950);
    border: none;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-full);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(181, 219, 100, 0.2);
}

.apply-btn-mobile svg {
    margin-left: 0.5rem;
    flex-shrink: 0;
}

.apply-btn-mobile:hover {
    background: var(--color-primary-300);
    transform: translateX(-50%) scale(1.05);
}

.apply-btn-mobile:focus {
    outline: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 0 3px rgba(181, 219, 100, 0.3);
}

/* Hide mobile button when form is visible */
.apply-btn-mobile.hide {
    opacity: 0;
    pointer-events: none;
}

@media (min-width: 768px) {
    .apply-btn-desktop {
        display: flex;
    }
    
    .apply-btn-mobile {
        display: none;
    }
}

@media (min-width: 1024px) {
    .apply-btn-desktop {
        top: 3rem;
        right: 3rem;
    }
}


/* Footer */
.footer {
    background: var(--color-gray-950);
    border-top: 1px solid var(--color-gray-800);
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.footer-logo img {
    height: 2rem;
    width: auto;
}

.footer-text {
    color: var(--color-gray-500);
    font-size: 0.875rem;
}

@media (min-width: 640px) {
    .form-card {
        padding: 2rem;
    }
    
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

@media (min-width: 1024px) {
    .form-card {
        padding: 3rem;
    }
}

/* Loading State */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1.5rem;
    height: 1.5rem;
    border: 2px solid transparent;
    border-top-color: var(--color-gray-950);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus States */
:focus-visible {
    outline: 2px solid var(--color-primary-400);
    outline-offset: 2px;
}

button:focus:not(:focus-visible),
a:focus:not(:focus-visible),
input:focus:not(:focus-visible),
textarea:focus:not(:focus-visible),
select:focus:not(:focus-visible) {
    outline: none;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .btn-primary,
    .btn-submit {
        border: 2px solid currentColor;
    }
    
    .form-card,
    .role-card {
        border-width: 2px;
    }
}
/* Success Content - shown inside form card */
.success-content {
    text-align: center;
    padding: 2rem 0;
}

.success-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-gray-100);
}

.success-content p {
    color: var(--color-gray-300);
    font-size: 1.125rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.success-content .success-icon {
    width: 5rem;
    height: 5rem;
    background: rgba(181, 219, 100, 0.15);
    border: 2px solid rgba(181, 219, 100, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    color: var(--color-primary-400);
}

.success-content .success-icon svg {
    width: 2.5rem;
    height: 2.5rem;
}
