
*, *::before, *::after {
    box-sizing: border-box;
}

body, html {
    overflow-x: hidden;
}
/* Funnel Specific Styles */

.funnel-body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}

.funnel-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.8rem 1rem;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--bg-surface-hover);
}

.breadcrumb-container {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    padding: 1.5rem 1.5rem 0;
}

.breadcrumb {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--color-primary);
}

.funnel-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1.5rem;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.funnel-step {
    width: 100%;
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.funnel-step.active {
    display: block;
}

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

h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 2rem;
    text-align: center;
    line-height: 1.2;
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 700;
    margin-bottom: 2.5rem;
    text-align: center;
    line-height: 1.3;
}

/* Statement and Selects */
.qualification-statement {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    line-height: 2;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-secondary);
}

select {
    appearance: none;
    background-color: transparent;
    border: none;
    border-bottom: 2px solid var(--color-primary);
    color: var(--white);
    font-size: inherit;
    font-family: inherit;
    font-weight: 700;
    padding: 0 1.2rem 0.1rem 0.2rem;
    margin: 0 0.5rem;
    cursor: pointer;
    outline: none;
    transition: border-color 0.3s, color 0.3s;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23E61919' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right center;
    text-align: center;
}

select option {
    background-color: var(--bg-surface);
    color: var(--text-primary);
    font-size: 1rem;
}

select:focus {
    border-bottom-color: var(--color-primary-hover);
}

/* Buttons */
.funnel-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-prev, .btn-next, .btn-submit {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
}

.btn-prev {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--text-secondary);
}

.btn-prev:hover:not(:disabled) {
    color: var(--text-primary);
    border-color: var(--text-primary);
}

.btn-prev:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-next, .btn-submit {
    background: var(--color-primary);
    color: var(--white);
    border: 1px solid var(--color-primary);
}

.btn-next:hover, .btn-submit:hover {
    background: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
    box-shadow: 0 0 15px rgba(230, 25, 25, 0.4);
}

/* Form Styles */
#discovery-form {
    background: var(--bg-surface);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--bg-surface-hover);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

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

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="url"],
textarea {
    width: 100%;
    padding: 1rem;
    background: var(--bg-primary);
    border: 1px solid var(--bg-surface-hover);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(230, 25, 25, 0.2);
}

.row-radio {
    display: flex;
    flex-direction: column;
}

.radio-group {
    display: flex;
    gap: 1.5rem;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: normal;
    color: var(--text-primary);
}

input[type="radio"] {
    accent-color: var(--color-primary);
    width: 1.2rem;
    height: 1.2rem;
}

/* File Drop Area */
.file-drop-area {
    border: 2px dashed var(--color-primary);
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
    background: rgba(230, 25, 25, 0.03);
    cursor: pointer;
    position: relative;
    transition: background 0.3s;
}

.file-drop-area:hover, .file-drop-area.dragover {
    background: rgba(230, 25, 25, 0.08);
}

.file-drop-area input[type="file"] {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-info {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

#file-name-preview {
    margin-top: 0.5rem;
    color: var(--color-primary);
    font-weight: 500;
}

/* Date Picker */
.date-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.date-btn {
    background: transparent;
    border: 1px solid var(--bg-surface-hover);
    color: var(--text-secondary);
    padding: 0.75rem 0.5rem;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

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

.date-btn.selected {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--white);
    font-weight: 600;
}

.error-msg {
    color: var(--color-primary);
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.form-actions {
    margin-top: 2rem;
    display: flex;
    justify-content: stretch;
}

.btn-submit {
    width: 100%;
}

/* Next Steps Box */
.next-steps-box {
    margin-top: 3rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--color-secondary);
}

.next-steps-box h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.next-steps-box p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    line-height: 1.5;
    font-size: 0.95rem;
}

.next-steps-box a {
    color: var(--color-accent);
    text-decoration: none;
}

.next-steps-box a:hover {
    text-decoration: underline;
}

#step-unqualified p {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.2rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .funnel-actions {
        flex-direction: column-reverse;
    }
    
    .btn-prev, .btn-next {
        width: 100%;
    }
    
    #discovery-form {
        padding: 1.5rem;
    }
    
    select {
    appearance: none;
    background-color: transparent;
    border: none;
    border-bottom: 2px solid var(--color-primary);
    color: var(--white);
    font-size: inherit;
    font-family: inherit;
    font-weight: 700;
    padding: 0 1.2rem 0.1rem 0.2rem;
    margin: 0 0.5rem;
    cursor: pointer;
    outline: none;
    transition: border-color 0.3s, color 0.3s;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23E61919' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right center;
    text-align: center;
}
    
    .date-picker-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
