/* Multi-Step Form Styles */

/* Form Variables (CSS Custom Properties) */
:root {
    --primary-color: #326592;
    --accent-color: #17a146;
    --dark-color: #2e4d75;
    --medium-gray: #6b7280;
    --light-gray: #f8f9fa;
    --white: #ffffff;
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --shadow-soft: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.1);
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --gradient-primary: linear-gradient(135deg, #21c057 0%, #24b346 100%);
}

/* Lead Form Container */
.lead-form {
    background: var(--white);
    padding: 2rem;
    border-radius: 0;
    /* box-shadow: var(--shadow-medium); */
    position: relative;
}

/* Form Header Controls */
.form-header-controls {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

/* Back Button */
.btn-back {
    display: flex;
    align-items: center;
    background: transparent;
    border: 1px solid #d1d5db;
    color: var(--medium-gray);
    padding: 0.5rem 1rem;
    border-radius: 0;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.btn-back:hover {
    background: #f8f9fa;
    border-color: #9ca3af;
    color: var(--dark-color);
}

/* Progress Bar */
.form-progress {
    flex: 1;
    margin-top: 15px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
    width: 14%;
}

.progress-text {
    text-align: right;
    margin-top: 2px;
    font-weight: 400;
    color: var(--medium-gray);
    font-size: 13px;
}

/* Form Steps */
.form-step {
    display: none;
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.3s ease;
}

.form-step.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

.form-step h3 {
    font-size: 1.5rem;
    max-width: 540px;
    color: var(--dark-color);
    margin: 0 auto 1rem auto;
}

.form-step p {
    font-size: 16px;
    line-height: 130%;
    margin-bottom: 1rem;
    text-align: left;
    color: var(--primary-color);
}

.step-info {
    background: #f1fbff;
    padding: 1rem;
    line-height: 120%;
    border-radius: 15px;
    border-left: 4px solid #7bc1fa;
    margin-bottom: 1rem;
}

.step-info p {
    font-size: 18px;
    text-align: left;
    margin-bottom: 0px;
}

.form-step .step-infox {
    font-size: 18px;
    line-height: 135%;
    text-align: left;
    padding: 10px;
    margin-bottom: 1rem;
}

/* Form Controls */
.form-control {
    border: 1px solid #5b7b98;
    border-radius: 0;
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 400;
    background: #f2fbfe;
    color: #374151;
    transition: all 0.2s ease;
    box-shadow: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.form-control:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

.form-control::placeholder {
    color: #9ca3af;
    font-weight: 400;
    opacity: 1;
}

.form-control:hover {
    border-color: #d1d5db;
}

.form-control-lg {
    padding: 18px 24px;
    font-size: 18px;
    border-radius: 0;
}

.form-control-sm {
    padding: 12px 16px;
    font-size: 14px;
    border-radius: 0;
}

/* Form Validation Styles */
.form-error,
.form-success {
    border: 1px solid;
    border-left-width: 4px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    font-size: 1rem !important;
    display: flex;
    align-items: center;
    animation: slideInError 0.3s ease;
}

.form-error i,
.form-success i {
    margin-right: 0.5rem;
    font-size: 1rem;
}

.form-error {
    background: #fef2f2;
    border-color: #fecaca;
    border-left-color: #ef4444;
    color: #dc2626;
}

.form-error i {
    color: #ef4444;
}

.form-success {
    background: #f0fdf4;
    border-color: #bbf7d0;
    border-left-color: #22c55e;
    color: #0c5627;
}

.form-success i {
    color: #22c55e;
}

.form-error.field-error,
.form-success.field-success {
    margin-top: 0.5rem;
    margin-bottom: 0;
    padding: 0.5rem 0.75rem;
    font-size: 1rem !important;
    border-left-width: 3px;
}

.form-control.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-control.error:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.form-control.valid {
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

/* Project Options */
.project-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.project-option {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    border-radius: 0;
    cursor: pointer;
    transition: var(--transition);
    background: #fbfdff;
    border: 1px solid #7093b5;
    width: 100%;
    max-width: 400px;
}

.project-option:hover,
.project-option.selected {
    border-color: #95cd95;
    background: rgb(204 252 217 / 29%);
}

.project-option .option-icon {
    margin-right: 1rem;
    flex-shrink: 0;
}

.project-option h5 {
    margin-bottom: 0.25rem;
    color: var(--dark-color);
}

.project-option p {
    margin: 0;
    color: var(--medium-gray);
    font-size: 0.9rem;
}

/* Window Count Options */
.window-count-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.window-count-btn {
    min-width: 288px;
    max-width: 300px;
    margin: auto;
    padding: 1rem 1.5rem;
    background: #fbfdff;
    border: 1px solid #7093b5;
    border-radius: 0;
    color: var(--dark-color);
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.window-count-btn:hover,
.window-count-btn.selected {
    border-color: #95cd95;
    background: rgb(204 252 217 / 29%);
}

.window-count-btn.selected {
    color: #1d6738;
}

/* Ownership Options */
.ownership-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.ownership-option {
    text-align: center;
    padding: 2rem 1rem;
    background: #fbfdff;
    border: 1px solid #7093b5;
    border-radius: 0;
    cursor: pointer;
    transition: var(--transition);
}

.ownership-option:hover,
.ownership-option.selected {
    border-color: #1d6738;
    background: rgb(204 252 217 / 29%);
}

.ownership-option .option-icon {
    margin-bottom: 1rem;
}

.ownership-option h5 {
    font-size: 20px;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.ownership-option p {
    margin: 0;
    color: var(--medium-gray);
    font-size: 0.9rem;
}

/* Membership Options */
.membership-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.membership-option {
    display: flex;
    align-items: center;
    padding: 0 !important;
    border: 1px solid #d1d5db;
    border-radius: 0;
    cursor: pointer;
    transition: var(--transition);
    background: #ffffff;
    position: relative;
}

.membership-option:hover {
    border-color: #9ca3af;
}

.membership-option.selected {
    border-color: #1d6738;
    background: rgb(204 252 217 / 29%);
}

.membership-logo {
    margin-right: 1rem;
    padding: 0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-placeholder {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 0;
    transition: var(--transition);
}

.membership-logo .logo-placeholder img {
    overflow: auto;
    max-width: 80px;
    max-height: 80px;
}

.membership-info {
    flex: 1;
    margin-right: 1rem;
  
    padding-left: 1rem !important;
}

.membership-info h5 {
    margin-bottom: 0.25rem;
    color: #374151;
    font-weight: 500;
}

.membership-info p {
    margin: 0;
    color: #222222;
    font-size: 0.9rem;
}

.membership-check {
    opacity: 0;
    color: #22c55e;
    font-size: 1.5rem;
    transform: scale(0.8);
    transition: all 0.3s ease;
    padding: 1rem;
}

.membership-option.selected .membership-check {
    opacity: 1;
    transform: scale(1);
}

.membership-option.selected .membership-info h5 {
    color: #1d6738;
    font-weight: 500;
}

/* Loading Prompt & Questions */
.loading-prompt {
    text-align: center;
    padding: 2rem;
    background: var(--white);
}

.loading-content {
    text-align: center;
    padding: 0;
    max-width: 400px;
    margin: auto;
}

.loading-content h4 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.loading-content p {
    color: #6b7280;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.loading-question {
    margin-top: 1.5rem;
    animation: fadeInUp 0.5s ease-out;
}

.question-box {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.question-box h5 {
    color: #333;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.question-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.question-btn {
    flex: 1;
    max-width: 150px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border: 1px solid #e9ecef;
    background: white;
    border-radius: 0;
    color: #000;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.question-btn:hover:not(:disabled) {
    border-color: #17a146;
    background: rgb(0 255 255 / 5%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.question-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.question-btn.btn-primary {
    border-color: #1d6738;
    background: rgb(204 252 217 / 29%);
    color: #113e02;
}

.question-btn i {
    font-size: 1rem;
}

.loading-question.question-answered {
    opacity: 0.7;
}

.loading-question.question-answered .question-box {
    background: #f1f3f5;
}

.loading-status {
    font-size: 0.95rem;
    font-weight: 500;
    color: #6b7280;
    margin-top: 1.5rem !important;
}

.loading-status i {
    color: var(--accent-color);
}

/* Button Styles */
.btn-gradient-accent {
    background: linear-gradient(135deg, #21c057 0%, #24b346 100%);
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
}

.btn-gradient-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(33, 192, 87, 0.3);
    color: white;
}

.btn-gradient-accent:active {
    transform: translateY(0);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.pulse-btn {
    animation: pulse 2s infinite;
}

/* Trust Badge Section */
.trust-badge-section {
    margin-top: 2rem;
}

.desktop-trust-flex {
    gap: 1rem;
}

.trust-badge-flex {
    gap: 1rem;
}

.review-seal-container {
    flex-shrink: 0;
}

.trust-seal-icon {
    width: 60px;
    max-width: 60px;
    height: auto;
}

.trust-paragraph {
    flex: 1;
}

.review-badge-container {
    text-align: center;
    flex-shrink: 0;
}

/* Utility Classes */
.no-wrap {
    white-space: nowrap;
}

.nowrap {
    white-space: nowrap;
}

.no-margin {
    margin: 0 !important;
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Animations */
@keyframes slideInError {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(33, 192, 87, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(33, 192, 87, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(33, 192, 87, 0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .lead-form {
        padding: 0.5rem;
    }
    
    .form-header-controls {
    
        gap: 0.5rem;
    }
    
    .desktop-trust-flex {
        flex-direction: column;
        text-align: center;
    }
    
    .ownership-options {
        grid-template-columns: 1fr;
    }
    
    .project-option {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem 1rem;
    }
    
    .project-option .option-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .membership-option {
        flex-direction: column;
        text-align: center;
        padding: 1rem !important;
    }
    
    .membership-logo {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .membership-info {
        margin-right: 0;
        padding: 0;
    }
    
    .membership-check {
        padding: 0.5rem;
    }
}

@media (max-width: 576px) {
    .form-step h3 {
        font-size: 1.3rem;
    }
    .trust-seal-icon {
        width: 48px;
        max-width: 48px;
        height: auto;
    }
    .question-buttons {
        flex-direction: column;
    }
    
    .question-btn {
        max-width: none;
    }
    
    .window-count-btn {
        min-width: auto;
        max-width: none;
    }
} 