:root {
    --bg: #0f1115;
    --card-bg: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.08);
    --text-main: #fff;
    --text-muted: #94a3b8;
    --acc-green: #22c55e;
    --acc-orange: #f97316;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg);
    color: var(--text-main);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

/* Background Effects */
.glow-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Vibrant Tricolor Flow: Emerald Green, Pure White, Coral Orange */
    background: linear-gradient(-45deg, #2ecc71, #ffffff, #ff7f50, #2ecc71);
    background-size: 400% 400%;
    animation: silkFlow 15s ease infinite;
    z-index: -1;
}

@keyframes silkFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* No Grid - Clean Flow */


.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Header */
/* Header Removed - Logo now in Hero */
.logo-img {
    height: 150px;
    width: auto;
    object-fit: contain;
    margin-bottom: 2rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
    /* Add drop shadow to logo/text to pop against bright bg */
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

/* Main Hero */
main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 0;
}

.hero {
    animation: fadeUp 1s ease-out;
    max-width: 700px;
    /* Ensure text has shadow for readability */
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.4);
    /* Darker badge */
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: 0.875rem;
    color: #fff;
    margin-bottom: 2rem;
    backdrop-filter: blur(5px);
}

.pulse {
    width: 8px;
    height: 8px;
    background: #2ecc71;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.4);
    animation: pulse 2s infinite;
}

h1 {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    color: white;
    /* Force white text */
    -webkit-text-stroke: 4px black;
    /* Increased stroke width since half is hidden */
    paint-order: stroke fill;
    text-shadow: 6px 6px 0px rgba(0, 0, 0, 0.2);
}

.gradient-text {
    /* Since BG is colorful, make gradient text simpler or white */
    color: white;
    background: none;
    -webkit-text-fill-color: white;
}

.subtitle {
    font-size: 1.35rem;
    color: white;
    /* Pure white */
    line-height: 1.6;
    margin-bottom: 3rem;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Form */
.signup-form {
    max-width: 480px;
    margin: 0 auto;
    text-align: left;

    /* Light Bubble Glass */
    background: rgba(255, 255, 255, 0.25);
    /* Light transparent */
    border: 1px solid rgba(255, 255, 255, 0.6);
    /* Frosted border */
    border-radius: 24px;
    padding: 2.5rem;
    backdrop-filter: blur(15px);
    /* Strong blur */
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    /* Soft shadow */
    color: #1f2937;
    /* Dark text for readability */
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #374151;
    /* Dark gray label */
    font-size: 0.95rem;
    font-weight: 500;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    /* Center icon vertically */
    background: rgba(255, 255, 255, 0.6);
    /* More opaque white for inputs */
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 0.35rem 0.5rem;
    /* Reduced horizontal padding since icon takes space */
    border-radius: 12px;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
}

.input-icon {
    color: #6b7280;
    /* Muted dark icon */
    margin: 0 0.5rem;
    min-width: 20px;
    /* Prevent shrink */
}

.input-wrapper:focus-within {
    border-color: var(--acc-green);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 0 4px rgba(46, 204, 113, 0.1);
}

.input-wrapper:focus-within .input-icon {
    color: var(--acc-green);
    /* Highlight icon on focus */
}

input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0.8rem 0;
    /* Remove horizontal padding so it sits next to icon */
    color: #000;
    /* Deep black text */
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    width: 100%;
}

input::placeholder {
    color: #9ca3af;
}

/* Hide browser's native date picker icon */
input[type="date"]::-webkit-calendar-picker-indicator {
    display: none;
    -webkit-appearance: none;
}

input[type="date"]::-moz-calendar-picker-indicator {
    display: none;
}

/* Green accent color for date picker */
input[type="date"] {
    accent-color: #2ecc71;
    /* Green accent for modern browsers */
    color-scheme: light;
}

/* Webkit-specific date picker styling */
input[type="date"]::-webkit-datetime-edit-fields-wrapper {
    color: #000;
}



/* Upload Box */
.upload-wrapper {
    position: relative;
    background: rgba(255, 255, 255, 0.4);
    /* Light semi-transparent */
    border: 2px dashed #d1d5db;
    /* Light gray border */
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.upload-wrapper:hover {
    border-color: var(--acc-green);
    background: rgba(34, 197, 94, 0.1);
}

.upload-wrapper input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: #4b5563;
    /* Darker muted text */
    font-size: 0.9rem;
}

.role-selector {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.role-btn {
    flex: 1;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid transparent;
    border-radius: 8px;
    color: #4b5563;
    font-family: var(--font-body);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.role-btn:hover {
    background: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    color: black;
}

.role-btn.active {
    background: #27ae60;
    /* Darker emerald green */
    border-color: #27ae60;
    color: white;
    /* White text on green button */
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

/* Business button = White */
.role-btn.active[data-value="business"] {
    background: #ffffff;
    border-color: #e5e7eb;
    color: #000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Worker button = Orange */
.role-btn.active[data-value="worker"] {
    background: var(--acc-orange);
    border-color: var(--acc-orange);
    color: white;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

/* Autocomplete Dropdown */
.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 0.25rem;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.autocomplete-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    color: #1f2937;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover {
    background: rgba(34, 197, 94, 0.1);
}

/* Custom Calendar Widget */
.custom-calendar {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    margin-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 0.75rem;
    z-index: 1000;
    backdrop-filter: blur(15px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
    min-width: 240px;
    max-width: 280px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.calendar-month-year {
    font-weight: 600;
    color: #1f2937;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.year-input {
    width: 60px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    padding: 0.25rem 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    color: #1f2937;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.2s;
}

.year-input:hover {
    border-color: #27ae60;
}

.year-input:focus {
    outline: none;
    border-color: #27ae60;
    box-shadow: 0 0 0 2px rgba(39, 174, 96, 0.1);
}

/* Remove number input arrows */
.year-input::-webkit-inner-spin-button,
.year-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.year-input {
    -moz-appearance: textfield;
}


.calendar-nav {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: #2ecc71;
    cursor: pointer;
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    transition: all 0.2s;
}

.calendar-nav:hover {
    background: rgba(46, 204, 113, 0.1);
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.125rem;
    margin-bottom: 0.25rem;
}

.calendar-weekdays div {
    text-align: center;
    font-size: 0.65rem;
    font-weight: 600;
    color: #6b7280;
    padding: 0.25rem 0;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.125rem;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.75rem;
    color: #1f2937;
    transition: all 0.2s;
    border: 1px solid transparent;
    padding: 0.25rem;
}

.calendar-day:hover:not(.disabled):not(.other-month) {
    background: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
}

.calendar-day.selected {
    background: #2ecc71;
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(46, 204, 113, 0.3);
}

.calendar-day.today {
    border: 2px solid #2ecc71;
    color: #2ecc71;
    font-weight: 600;
}

.calendar-day.today.selected {
    background: #2ecc71;
    color: white;
    border: 2px solid #2ecc71;
}

.calendar-day.other-month {
    color: #d1d5db;
}

.calendar-day.disabled {
    color: #e5e7eb;
    cursor: not-allowed;
}




.btn-submit {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    background: white;
    color: black;
    border: none;
    padding: 0.85rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-heading);
    transition: transform 0.2s, background 0.3s;
    margin-top: 1rem;
}

.btn-submit:hover {
    transform: scale(1.02);
    background: #e4e4e7;
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Footer */
footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2.5rem 2rem;
    /* Add horizontal padding */
    gap: 2rem;
    /* Ensure minimum space between items */
    flex-wrap: wrap;
    /* Allow wrapping on smaller screens */
    max-width: 1200px;
    /* Limit width */
    margin: 2rem auto 0;
    /* Center horizontally and keep top margin */
    /* Center horizontally and keep top margin */
    font-size: 0.875rem;
    color: #52525b;
    border-top: 1px solid var(--border);
    margin-top: 2rem;
}

.socials {
    display: flex;
    gap: 1.5rem;
}

.socials a {
    color: #52525b;
    text-decoration: none;
    transition: color 0.2s;
}

.socials a:hover {
    color: white;
}

/* Animations */
@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile */
@media (max-width: 768px) {
    h1 {
        font-size: 3rem;
    }

    .hero {
        padding: 2rem 0;
    }

    .input-wrapper {
        flex-direction: column;
        background: transparent;
        border: none;
        padding: 0;
        gap: 1rem;
        backdrop-filter: none;
    }

    input {
        background: var(--card-bg);
        border: 1px solid var(--border);
        padding: 1rem 1.5rem;
        border-radius: 12px;
        width: 100%;
    }

    .btn-submit {
        width: 100%;
        justify-content: center;
        padding: 1rem;
        border-radius: 12px;
    }

    footer {
        flex-direction: column;
        gap: 2.5rem;
        /* Increased gap for better spacing */
        text-align: center;
    }
}