:root {
    --background: 0, 0%, 100%;
    --foreground: 222.2, 84%, 4.9%;
    --card: 0, 0%, 100%;
    --card-foreground: 222.2, 84%, 4.9%;
    --popover: 0, 0%, 100%;
    --popover-foreground: 222.2, 84%, 4.9%;
    --primary: hsl(var(--accent));
    --primary-foreground: 210, 40%, 98%;
    --secondary: var(--funderz-secondary-color, 222.2, 47.4%, 11.2%);
    --secondary-foreground: 222.2, 47.4%, 11.2%;
    --muted: 210, 40%, 96.1%;
    --muted-foreground: 215.4, 16.3%, 46.9%;
    --accent: var(--funderz-accent-color, 210, 100%, 33%);
    --accent-foreground: 210, 40%, 98%;
    --destructive: 0, 84.2%, 60.2%;
    --destructive-foreground: 210, 40%, 98%;
    --border: 214.3, 31.8%, 91.4%;
    --input: 214.3, 31.8%, 91.4%;
    --ring: hsl(var(--accent));
    --radius: var(--funderz-border-radius, 4px);
}

.funderz-lead-form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.funderz-lead-form-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 30px;
}

.funderz-progress {
    height: 4px;
    background: #f0f0f0;
    margin-bottom: 30px;
    border-radius: var(--funderz-border-radius, 4px);
    overflow: hidden;
}

.funderz-progress-bar {
    height: 100%;
    background: hsl(var(--accent));
    width: 0;
    transition: width 0.3s ease;
}

.funderz-form-step {
    display: none;
}

.funderz-form-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.funderz-form-step h3 {
    color: var(--funderz-secondary-color, #23282d);
    margin-bottom: 20px;
    font-size: var(--funderz-header-size, 24px);
    font-weight: 600;
    text-align: center;
}

.funderz-form-group {
    margin-bottom: 20px;
    position: relative;
}

.funderz-form-group label {
    display: block;
    margin-bottom: 8px;
    color: hsl(var(--foreground));
    font-weight: 500;
    text-align: left;
}

.funderz-form-group input[type="text"],
.funderz-form-group input[type="email"],
.funderz-form-group input[type="tel"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--funderz-border-radius, 4px);
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 
        0 1px 2px -1px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
}

.funderz-form-group input:focus {
    outline: none;
    border-color: hsl(var(--accent));
    box-shadow: 
        0 2px 4px rgba(0,0,0,0.1),
        0 0 0 4px rgba(0,0,0,0.05);
}

.funderz-form-group.error input {
    border-color: hsl(var(--destructive));
    background-color: hsl(var(--destructive) / 0.05);
}

.funderz-form-group.error .funderz-error-message {
    display: block;
    color: hsl(var(--destructive));
    font-size: 0.875rem;
    margin-top: 0.5rem;
    text-align: center;
}

.funderz-error-message {
    display: none;
}

.funderz-form-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

.funderz-form-step.active {
    display: block;
}

.funderz-form-step h3 {
    color: var(--funderz-secondary-color, #23282d);
    margin-bottom: 20px;
    font-size: var(--funderz-header-size, 24px);
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
}

.funderz-form-step p {
    color: hsl(var(--muted-foreground));
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.5;
}

.funderz-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 640px) {
    .funderz-form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.funderz-amount-input {
    position: relative;
    margin-bottom: 1.5rem;
}

.funderz-currency {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--funderz-secondary-color, #23282d);
}

.funderz-amount-input input {
    width: 100%;
    padding: 12px 12px 12px 36px;
    font-size: 1.5rem;
    font-weight: 600;
    border: 1px solid #ddd;
    border-radius: var(--funderz-border-radius, 4px);
    background: linear-gradient(to bottom, rgba(255,255,255,0.02), rgba(255,255,255,0));
    box-shadow: 
        0 1px 2px -1px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
}

.funderz-amount-display {
    text-align: center;
    margin-bottom: 20px;
}

.funderz-amount-display input {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    border: none;
    background: transparent;
    color: hsl(var(--accent));
}

.funderz-range-container {
    width: 100%;
}

.funderz-range-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: var(--funderz-secondary-color, #23282d);
}

input[type="range"] {
    width: 100%;
    height: 4px;
    background: #ddd;
    border-radius: 2px;
    outline: none;
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: hsl(var(--accent));
    border-radius: 50%;
    cursor: pointer;
}

.funderz-radio-group {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin: 1rem 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 640px) {
    .funderz-radio-group {
        grid-template-columns: repeat(2, 1fr);
    }
}

.funderz-radio-label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border: 2px solid hsl(var(--border));
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
    box-shadow: 
        0 2px 4px rgba(0,0,0,0.1),
        inset 0 1px 0 0 rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
    min-height: 48px;
}

.funderz-radio-label:hover {
    border-color: hsl(var(--accent));
    transform: translateY(-2px);
    box-shadow: 
        0 4px 8px rgba(0,0,0,0.15),
        inset 0 1px 0 0 rgba(255,255,255,0.1);
}

.funderz-radio-input {
    display: none;
}

.funderz-radio-label.selected {
    background: hsl(var(--accent));
    color: white;
    border-color: hsl(var(--accent));
    transform: translateY(-2px);
    box-shadow: 
        0 4px 8px rgba(0,0,0,0.15),
        inset 0 1px 0 0 rgba(255,255,255,0.1);
}

.funderz-radio-label.selected::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 30px 30px 0;
    border-color: transparent hsl(var(--accent)) transparent transparent;
    transform: rotate(45deg);
}

.funderz-radio-text {
    font-weight: 500;
    font-size: 0.9375rem;
    text-align: center;
    width: 100%;
}

.funderz-form-actions {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    padding: 0;
}

.funderz-button {
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
    flex: 1;
    text-align: center;
    border: 2px solid transparent;
}

.funderz-button-primary {
    background: hsl(var(--accent));
    color: white;
    border: 2px solid hsl(var(--accent));
    box-shadow: 
        0 2px 4px rgba(0,0,0,0.1),
        inset 0 1px 0 0 rgba(255,255,255,0.1);
}

.funderz-button-primary:hover {
    background: hsl(var(--accent) / 0.9);
    transform: translateY(-2px);
    box-shadow: 
        0 4px 8px rgba(0,0,0,0.15),
        inset 0 1px 0 0 rgba(255,255,255,0.1);
}

.funderz-button-outline {
    background: white;
    border: 2px solid hsl(var(--accent));
    color: hsl(var(--accent));
    box-shadow: 
        0 2px 4px rgba(0,0,0,0.1),
        inset 0 1px 0 0 rgba(255,255,255,0.1);
}

.funderz-button-outline:hover {
    background: hsl(var(--accent) / 0.1);
    transform: translateY(-2px);
    box-shadow: 
        0 4px 8px rgba(0,0,0,0.15),
        inset 0 1px 0 0 rgba(255,255,255,0.1);
}

.funderz-button-style-raised {
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.funderz-button-style-raised:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.funderz-button-style-outline:hover {
    background: white;
    color: hsl(var(--accent));
    box-shadow: 
        0 4px 8px rgba(0,0,0,0.15),
        inset 0 1px 0 0 rgba(255,255,255,0.1);
}

.funderz-form-footer {
    text-align: center;
    margin-top: 2rem;
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
}

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

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.funderz-form-group.error {
    animation: shake 0.3s ease;
}

@media screen and (max-width: 600px) {
    .funderz-lead-form-card {
        padding: 20px;
    }

    .funderz-radio-group {
        grid-template-columns: 1fr;
    }

    .funderz-form-grid {
        grid-template-columns: 1fr;
    }
}

.funderz-slider-container {
    position: relative;
    width: 100%;
    margin: 2rem 0;
    padding: 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.funderz-slider-value {
    position: relative;
    width: 100%;
    max-width: 300px;
    margin: 0 auto 2rem;
    padding: 1.5rem;
    border-radius: var(--radius);
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    cursor: text;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.funderz-slider-value::before {
    content: '$';
    font-size: 2.5rem;
    color: hsl(var(--foreground));
    margin-right: 0.25rem;
}

.funderz-slider-input {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    cursor: text;
    font-size: inherit;
    font-weight: inherit;
    text-align: center;
    border: none;
    background: transparent;
    color: hsl(var(--foreground));
    opacity: 0;
    transition: opacity 0.2s ease;
    padding: 0;
    margin: 0;
}

.funderz-slider-input:focus {
    outline: none;
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
}

.funderz-slider-display {
    font-family: inherit;
    letter-spacing: -0.025em;
    color: hsl(var(--foreground));
    transition: opacity 0.2s ease;
    user-select: none;
}

.funderz-slider-wrapper {
    position: relative;
    width: 100%;
    padding: 0 12px;
}

.funderz-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 12px;
    border-radius: 6px;
    background: #f8f9fa;
    outline: none;
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 0;
    transition: all 0.2s ease;
    border: 2px solid hsl(var(--accent));
}

.funderz-slider:focus {
    outline: none;
}

.funderz-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: hsl(var(--accent));
    cursor: pointer;
    position: relative;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
    margin-top: -6px;
}

.funderz-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: hsl(var(--accent));
    cursor: pointer;
    position: relative;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
    border: none;
    margin-top: -6px;
}

.funderz-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 12px;
    border-radius: 6px;
    background: linear-gradient(to right, hsl(var(--accent)) var(--value, 0%), transparent var(--value, 0%));
    border: none;
}

.funderz-slider::-moz-range-track {
    width: 100%;
    height: 12px;
    border-radius: 6px;
    background: linear-gradient(to right, hsl(var(--accent)) var(--value, 0%), transparent var(--value, 0%));
    border: none;
}

.funderz-slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
    padding: 0;
}

@media screen and (max-width: 600px) {
    .funderz-slider-value {
        font-size: 2rem;
        padding: 1.25rem;
    }
    
    .funderz-slider::-webkit-slider-thumb {
        width: 28px;
        height: 28px;
    }
    
    .funderz-slider::-moz-range-thumb {
        width: 28px;
        height: 28px;
    }
}

.funderz-lead-form-container .funderz-form .funderz-button.funderz-button-primary {
    background: hsl(var(--accent)) !important;
    color: white !important;
    border: 2px solid hsl(var(--accent)) !important;
    box-shadow: 
        0 2px 4px rgba(0,0,0,0.1),
        inset 0 1px 0 0 rgba(255,255,255,0.1);
    padding: 0.75rem 1.5rem !important;
    font-size: 0.9375rem !important;
    font-weight: 500 !important;
    border-radius: 8px !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    line-height: 1.5 !important;
    height: auto !important;
    min-height: 48px !important;
}

.funderz-lead-form-container .funderz-form .funderz-button.funderz-button-primary:hover {
    background: white !important;
    transform: translateY(-2px);
    box-shadow: 
        0 4px 8px rgba(0,0,0,0.15),
        inset 0 1px 0 0 rgba(255,255,255,0.1);
    color: hsl(var(--accent)) !important;
    border-color: hsl(var(--accent)) !important;
}

.funderz-lead-form-container .funderz-form .funderz-button.funderz-button-outline {
    background: white !important;
    border: 2px solid hsl(var(--accent)) !important;
    color: hsl(var(--accent)) !important;
    box-shadow: 
        0 2px 4px rgba(0,0,0,0.1),
        inset 0 1px 0 0 rgba(255,255,255,0.1);
    padding: 0.75rem 1.5rem !important;
    font-size: 0.9375rem !important;
    font-weight: 500 !important;
    border-radius: 8px !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    line-height: 1.5 !important;
    height: auto !important;
    min-height: 48px !important;
}

.funderz-lead-form-container .funderz-form .funderz-button.funderz-button-outline:hover {
    background: hsl(var(--accent) / 0.1) !important;
    transform: translateY(-2px);
    box-shadow: 
        0 4px 8px rgba(0,0,0,0.15),
        inset 0 1px 0 0 rgba(255,255,255,0.1);
    color: hsl(var(--accent)) !important;
    border-color: hsl(var(--accent)) !important;
} 