/* Multi-Step Form - Website Design Integration */

.multi-step-form-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 1.5rem 1.5rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

/* Compact Form Styles */
.multi-step-form-container.compact {
    padding: 1rem;
}

/* Minimal Progress Indicator */
.form-progress-minimal {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.step-counter {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
    white-space: nowrap;
}

.progress-line {
    flex: 1;
    height: 3px;
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #1e40af 0%, #3b82f6 100%);
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Subtle background pattern */
.multi-step-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    opacity: 0.05;
    border-radius: 50%;
    transform: translate(50%, -50%);
}

/* Progress Bar */
.form-progress-wrapper {
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 10;
}

.form-progress-bar {
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.form-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #1e40af 0%, #3b82f6 100%);
    border-radius: 4px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 10px rgba(30, 64, 175, 0.3);
}

.form-step-indicators {
    display: flex;
    justify-content: space-between;
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.form-step-indicators::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #e5e7eb;
    transform: translateY(-50%);
    z-index: -1;
}

.step-indicator {
    width: 36px;
    height: 36px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.step-indicator.active {
    background: #1e40af;
    border-color: #1e40af;
    transform: scale(1.15);
    box-shadow: 0 4px 20px rgba(30, 64, 175, 0.3);
}

.step-indicator.completed {
    background: #10b981;
    border-color: #10b981;
}

.step-indicator.completed::after {
    content: '✓';
    position: absolute;
    color: white;
    font-weight: bold;
    font-size: 14px;
}

.step-number {
    color: #6b7280;
    font-weight: 600;
    font-size: 13px;
}

.step-indicator.active .step-number {
    color: white;
}

/* Form Steps */
.form-steps-container {
    min-height: 250px;
    position: relative;
    z-index: 10;
}

/* Compact form steps */
.compact .form-steps-container {
    min-height: 180px;
}

.form-step {
    display: none;
    animation: fadeOut 0.3s ease-out;
}

.form-step.active {
    display: block;
    animation: slideIn 0.4s ease-out;
}

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

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.step-question {
    color: #111827;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    text-align: center;
    line-height: 1.2;
}

/* Compact form question */
.compact .step-question {
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

/* Choice Buttons */
.form-choices {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Compact form choices */
.compact .form-choices {
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.choice-btn {
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    color: #374151;
    padding: 0.875rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Compact choice buttons */
.compact .choice-btn {
    padding: 0.625rem;
    gap: 0.375rem;
    font-size: 0.8125rem;
}

.choice-btn:hover {
    background: #f3f4f6;
    border-color: #1e40af;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.choice-btn.active {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    border-color: #1e40af;
    box-shadow: 0 10px 30px rgba(30, 64, 175, 0.2);
    transform: translateY(-2px);
}

.choice-btn i {
    font-size: 1.5rem;
    color: #1e40af;
}

/* Compact icon size */
.compact .choice-btn i {
    font-size: 1.25rem;
}

.choice-btn.active i {
    color: white;
}

/* Input Fields */
.form-input-wrapper {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.input-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    font-size: 1.1rem;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    color: #111827;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.form-textarea {
    padding-top: 0.75rem;
    resize: vertical;
    min-height: 80px;
}

.form-textarea ~ .input-icon {
    top: 1.5rem;
    transform: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #9ca3af;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    background: white;
    border-color: #1e40af;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.form-input.valid {
    border-color: #10b981;
}

.form-input.invalid {
    border-color: #ef4444;
    animation: shake 0.3s;
}

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

/* Location Options */
.location-options {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.location-btn {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.location-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(30, 64, 175, 0.2);
}

.location-btn.secondary {
    background: white;
    color: #6b7280;
    border: 2px solid #e5e7eb;
}

.location-btn.secondary:hover {
    border-color: #9ca3af;
    background: #f9fafb;
}

.or-divider {
    color: #9ca3af;
    font-size: 0.875rem;
    font-weight: 500;
}

.optional-note {
    text-align: center;
    color: #6b7280;
    font-size: 0.875rem;
    margin-top: 1rem;
    font-style: italic;
}

/* Navigation */
.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
    position: relative;
    z-index: 10;
}

/* Compact navigation */
.compact .form-navigation {
    margin-top: 1rem;
}

.form-nav-btn {
    padding: 0.625rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.prev-btn {
    background: white;
    color: #6b7280;
    border: 2px solid #e5e7eb;
}

.prev-btn:hover:not(:disabled) {
    background: #f9fafb;
    border-color: #9ca3af;
    transform: translateX(-3px);
}

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

.next-btn,
.submit-btn {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    color: white;
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.2);
}

.next-btn:hover,
.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(220, 38, 38, 0.25);
}

.submit-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.2);
}

/* Trust Badges */
.form-trust-badges {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    position: relative;
    z-index: 10;
}

.form-trust-badges span {
    color: #6b7280;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.form-trust-badges i {
    color: #1e40af;
}

/* Success Screen */
.form-success-screen {
    text-align: center;
    padding: 2rem;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.success-animation {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    animation: successPop 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes successPop {
    0% { transform: scale(0); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.success-animation i {
    color: #10b981;
}

.form-success-screen h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #111827;
}

.form-success-screen p {
    color: #6b7280;
    font-size: 1.125rem;
}

.success-details {
    background: #f9fafb;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem auto;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.success-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
}

.success-info i {
    font-size: 1.5rem;
    color: #1e40af;
}

.success-info strong {
    display: block;
    color: #111827;
    margin-bottom: 0.25rem;
}

.success-info span {
    color: #6b7280;
    font-size: 0.875rem;
}

/* Financing Prompt */
.financing-prompt {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 600px;
}

.financing-prompt h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.financing-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    font-size: 1rem;
}

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

.btn-primary,
.btn-secondary {
    padding: 0.875rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.2);
}

.btn-secondary {
    background: white;
    color: #6b7280;
    border: 2px solid #e5e7eb;
}

.btn-secondary:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

/* Financing Options */
.financing-options-screen {
    padding: 2rem;
    animation: fadeIn 0.5s ease-out;
}

.financing-options-screen h2 {
    font-size: 2rem;
    color: #111827;
    margin-bottom: 1rem;
    text-align: center;
}

.financing-options-screen > p {
    color: #6b7280;
    text-align: center;
    margin-bottom: 2rem;
}

.financing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.financing-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
    transition: all 0.2s ease;
}

.financing-card:hover {
    transform: translateY(-5px);
    border-color: #1e40af;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.financing-card.featured {
    border-color: #f59e0b;
    background: linear-gradient(to bottom, #fffbeb, white);
}

.card-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.financing-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    color: #111827;
}

.financing-card ul {
    list-style: none;
    margin-bottom: 1.5rem;
}

.financing-card li {
    padding: 0.5rem 0;
    color: #6b7280;
    font-size: 0.875rem;
}

.financing-card li::before {
    content: '✓';
    color: #10b981;
    margin-right: 0.5rem;
    font-weight: bold;
}

.apply-btn {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.apply-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 25px rgba(30, 64, 175, 0.2);
}

.financing-note {
    max-width: 600px;
    margin: 2rem auto;
    text-align: center;
    color: #6b7280;
    font-size: 0.875rem;
}

.financing-note .small {
    font-size: 0.75rem;
    margin-top: 0.5rem;
    display: block;
}

/* Toast Notifications */
.error-toast,
.success-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transform: translateX(400px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.error-toast {
    background: #ef4444;
    color: white;
}

.success-toast {
    background: #10b981;
    color: white;
}

.error-toast.show,
.success-toast.show {
    transform: translateX(0);
}

/* Embedded Form Container */
.embedded-form-section {
    padding: 4rem 0;
    background: linear-gradient(to bottom, #f9fafb, white);
}

.embedded-form-header {
    text-align: center;
    margin-bottom: 3rem;
}

.embedded-form-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 1rem;
}

.embedded-form-header p {
    font-size: 1.125rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .multi-step-form-container {
        padding: 2rem 1.5rem;
        border-radius: 12px;
    }
    
    .multi-step-form-container.compact {
        padding: 0.75rem;
    }
    
    .compact .form-steps-container {
        min-height: 150px;
    }
    
    .step-question {
        font-size: 1.5rem;
    }
    
    .form-choices {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .choice-btn {
        padding: 1rem;
        font-size: 0.875rem;
    }
    
    .choice-btn i {
        font-size: 1.5rem;
    }
    
    .form-navigation {
        flex-direction: column;
        gap: 1rem;
    }
    
    .form-nav-btn {
        width: 100%;
        justify-content: center;
    }
    
    .financing-cards {
        grid-template-columns: 1fr;
    }
    
    .form-trust-badges {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .location-options {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .location-btn {
        width: 100%;
        justify-content: center;
    }
    
    .success-actions {
        flex-direction: column;
    }
    
    .embedded-form-header h2 {
        font-size: 2rem;
    }
}