:root {
    /* Clean dark theme colors */
    --background: 0 0% 3.9%;
    --foreground: 0 0% 98%;
    --card: 0 0% 3.9%;
    --card-foreground: 0 0% 98%;
    --popover: 0 0% 3.9%;
    --popover-foreground: 0 0% 98%;
    --primary: 0 0% 98%;
    --primary-foreground: 0 0% 9%;
    --secondary: 0 0% 14.9%;
    --secondary-foreground: 0 0% 98%;
    --muted: 0 0% 14.9%;
    --muted-foreground: 0 0% 63.9%;
    --accent: 0 0% 14.9%;
    --accent-foreground: 0 0% 98%;
    --destructive: 0 62.8% 30.6%;
    --destructive-foreground: 0 0% 98%;
    --border: 0 0% 14.9%;
    --input: 0 0% 14.9%;
    --ring: 0 0% 83.1%;
    --radius: 0.5rem;
    
    /* Special color for main heading */
    --heading-special: 45 100% 91%; /* #FFEFD5 */
    
    /* Additional custom properties */
    --success: 142.1 76.2% 36.3%;
    --warning: 47.9 95.8% 53.1%;
    --info: 221.2 83.2% 53.3%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    line-height: 1.6;
    padding: 20px;
    min-height: 100vh;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

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

.logo-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-direction: column;
}

.logo {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.branding {
    text-align: center;
}

.company-name {
    font-size: 2.2rem;
    font-weight: 600;
    line-height: 1.2;
    color: #FFEFD5;
    margin: 0;
    letter-spacing: -0.025em;
}

.tagline {
    font-size: 0.8rem;
    color: hsl(var(--muted-foreground));
    margin: 0;
    font-weight: 400;
}

h1 {
    font-size: 1.6rem;
    font-weight: 400;
    margin-bottom: 0.2rem;
    color: rgb(255 244 209);
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.description {
    font-size: 0.8rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 0.5rem;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.warning-banner {
    background-color: hsl(var(--destructive) / 0.1);
    border: 1px solid hsl(var(--destructive) / 0.3);
    color: hsl(var(--destructive-foreground));
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 2rem;
    font-size: 0.875rem;
}

.form-group {
    margin-bottom: 1.25rem;
    background-color: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    padding: 1rem;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    transition: all 0.2s ease-in-out;
}

.form-group:hover {
    border-color: hsl(var(--border) / 0.8);
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    color: hsl(var(--foreground));
    letter-spacing: -0.025em;
}

input[type="text"],
input[type="url"],
input[type="email"],
textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: hsl(var(--input));
    border: 1px solid hsl(var(--border));
    border-radius: calc(var(--radius) - 2px);
    color: hsl(var(--foreground));
    font-size: 0.875rem;
    font-family: inherit;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

input[type="text"]:hover,
input[type="url"]:hover,
input[type="email"]:hover,
textarea:hover {
    background-color: hsl(var(--accent));
    border-color: hsl(var(--border) / 0.8);
}

input[type="text"]:focus,
input[type="url"]:focus,
input[type="email"]:focus,
textarea:focus {
    outline: 2px solid hsl(var(--ring));
    outline-offset: 2px;
    border-color: hsl(var(--ring));
    background-color: hsl(var(--accent));
    box-shadow: 0 0 0 2px hsl(var(--ring) / 0.2);
}

input::placeholder,
textarea::placeholder {
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
}

textarea {
    min-height: 90px;
    resize: vertical;
    line-height: 1.5;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    accent-color: hsl(var(--primary));
    cursor: pointer;
}

.checkbox-label {
    font-size: 0.875rem;
    font-weight: 400;
    cursor: pointer;
    margin: 0;
    color: hsl(var(--foreground));
}

.checkbox-label:hover {
    color: hsl(var(--primary));
}

.submit-btn {
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    padding: 0.75rem 2rem;
    border: none;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 1.5rem;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    letter-spacing: -0.025em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5rem;
}

.submit-btn:hover:not(:disabled) {
    background-color: hsl(var(--primary) / 0.9);
    box-shadow: 0 2px 4px 0 rgb(0 0 0 / 0.1);
    transform: translateY(-1px);
}

.submit-btn:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.submit-btn:disabled {
    background-color: hsl(var(--muted));
    color: hsl(var(--muted-foreground));
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
    box-shadow: none;
}

@media (max-width: 768px) {
    .container {
        padding: 1.5rem 0.75rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    .form-group {
        padding: 0.75rem;
        margin-bottom: 1rem;
    }

    .submit-btn {
        width: 100%;
    }

    .logo-section {
        gap: 0.75rem;
    }

    .checkbox-group {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.2rem;
    }

    .company-name {
        font-size: 1.4rem;
    }

    .tagline {
        font-size: 0.8125rem;
    }

    .logo {
        width: 32px;
        height: 32px;
    }

    .form-group {
        padding: 0.5rem;
        margin-bottom: 0.75rem;
    }
}

#result {
    text-align: center;
    font-size: 0.875rem;
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: var(--radius);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.text-green-500 {
    color: hsl(var(--success));
    background-color: hsl(var(--success) / 0.1);
    border-color: hsl(var(--success) / 0.3);
}

.text-red-500 {
    color: hsl(var(--destructive));
    background-color: hsl(var(--destructive) / 0.1);
    border-color: hsl(var(--destructive) / 0.3);
}

.text-gray-400 {
    color: hsl(var(--muted-foreground));
    background-color: hsl(var(--muted) / 0.1);
    border-color: hsl(var(--border));
}

/* Scroll behavior and overall polish */
html {
    scroll-behavior: smooth;
}

/* Focus ring styles for accessibility */
*:focus-visible {
    outline: 2px solid hsl(var(--ring));
    outline-offset: 2px;
}

/* Selection styles */
::selection {
    background-color: hsl(var(--primary) / 0.2);
    color: hsl(var(--primary-foreground));
}

/* Hidden elements */
.hidden {
    display: none;
}

/* Progress bar */
.progress-bar {
    height: 4px;
    background: hsl(var(--border));
    border-radius: 2px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, hsl(var(--primary)) 0%, hsl(var(--success)) 100%);
    border-radius: 2px;
    width: 0%;
    transition: width 0.3s ease;
}

/* Form sections */
.form-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: hsl(var(--card));
    /* border: 1px solid hsl(var(--border)); */
    border-radius: var(--radius);
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
}

.section-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: hsl(var(--foreground));
    /* border-bottom: 2px solid hsl(var(--primary)); */
    padding-bottom: 0.5rem;
}

/* Required and optional indicators */
.required-mark {
    color: #a71919;
    font-size: 0.875rem;
    margin-left: 2px;
}

.optional-tag {
    color: hsl(var(--muted-foreground));
    font-size: 0.75rem;
    font-weight: 400;
    margin-left: 4px;
}

/* Helper text */
.helper-text {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
    margin-top: 4px;
    margin-bottom: 0.5rem;
}

/* Character counter */
.char-count {
    display: block;
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
    text-align: right;
    margin-top: 4px;
}

/* Select styling */
select {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: hsl(var(--input));
    border: 1px solid hsl(var(--border));
    border-radius: calc(var(--radius) - 2px);
    color: hsl(var(--foreground));
    font-size: 0.875rem;
    font-family: inherit;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    cursor: pointer;
}

select:hover {
    background-color: hsl(var(--accent));
    border-color: hsl(var(--border) / 0.8);
}

select:focus {
    outline: 2px solid hsl(var(--ring));
    outline-offset: 2px;
    border-color: hsl(var(--ring));
    background-color: hsl(var(--accent));
    box-shadow: 0 0 0 2px hsl(var(--ring) / 0.2);
}

/* Contact details input spacing */
.contact-details {
    margin-top: 10px;
}

/* Mobile adjustments for new elements */
@media (max-width: 768px) {
    .form-section {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .section-title {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .form-section {
        padding: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .section-title {
        font-size: 0.9375rem;
    }
}