/* Prospect Signup Form Styles */

.signup-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

.signup-title {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.signup-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Enhanced Progress Indicator */
.progress-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 2rem 0;
    position: relative;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    margin: 1rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.progress-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 15%;
    right: 15%;
    height: 3px;
    background: linear-gradient(90deg, #dee2e6 0%, #dee2e6 100%);
    border-radius: 2px;
    z-index: 0;
    transform: translateY(-50%);
}

.progress-container::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 15%;
    height: 3px;
    background: linear-gradient(90deg, #007bff 0%, #0056b3 100%);
    border-radius: 2px;
    z-index: 1;
    transform: translateY(-50%);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0%;
}

.progress-container[data-progress="1"]::after { width: 0%; }
.progress-container[data-progress="2"]::after { width: 33.33%; }
.progress-container[data-progress="3"]::after { width: 66.66%; }
.progress-container[data-progress="4"]::after { width: 100%; }

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    background: white;
    padding: 0.75rem;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    min-width: 120px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
}

.progress-step:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.progress-step:hover:not(.active):not(.completed) {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-color: #007bff;
}

.progress-step:hover .step-number:not(.active):not(.completed) {
    background: rgba(0, 123, 255, 0.1);
    color: #007bff;
    border-color: #007bff;
}

.progress-step.active {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
    border-color: #ffffff;
}

.progress-step.completed {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.progress-step.completed::before {
    content: '✓';
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background: #28a745;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.step-number::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.progress-step:hover .step-number::before {
    opacity: 1;
}

.progress-step.active .step-number {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.1);
}

.progress-step.completed .step-number {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.step-label {
    font-size: 0.9rem;
    text-align: center;
    font-weight: 600;
    letter-spacing: 0.5px;
    line-height: 1.2;
    transition: all 0.3s ease;
}

.progress-step.active .step-label {
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.progress-step.completed .step-label {
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Step indicator animations */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.progress-step.active .step-number {
    animation: pulse 2s infinite;
}

/* Progress bar fill animation */
@keyframes fillProgress {
    from { width: 0%; }
    to { width: var(--target-width); }
}

/* Form Steps */
.form-step {
    display: none !important;
}

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

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

.step-title {
    color: #2c3e50;
    font-weight: 600;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.5rem;
}

/* Form Elements */
.form-label.required::after {
    content: " *";
    color: #dc3545;
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Health Conditions */
.condition-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Bootstrap form-check overrides for better spacing and alignment */
.condition-section .form-check {
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: flex-start;
    min-height: 1.5rem;
}

.condition-section .form-check-input {
    margin-top: 0.25rem;
    margin-right: 0.5rem;
    flex-shrink: 0;
    cursor: pointer;
}

.condition-section .form-check-label {
    cursor: pointer;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
    flex: 1;
}

.condition-section .form-check-label:hover {
    color: #007bff;
}

.condition-item {
    margin-bottom: 0.75rem;
}

.condition-checkbox {
    margin-right: 0.5rem;
}

.condition-label {
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s ease;
}

.condition-label:hover {
    color: #007bff;
}

/* Assessment Sections */
.assessment-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-left: 4px solid #007bff;
}

.assessment-title {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.assessment-description {
    color: #6c757d;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.question-item {
    background: white;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #dee2e6;
    transition: border-color 0.2s ease;
}

.question-item:hover {
    border-color: #007bff;
}

.question-text {
    font-weight: 500;
    margin-bottom: 0.75rem;
    color: #2c3e50;
}

.rating-scale {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.rating-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.rating-option input[type="radio"] {
    margin-bottom: 0.25rem;
}

.rating-label {
    font-size: 0.85rem;
    text-align: center;
    color: #6c757d;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.rating-label:hover {
    background: #e9ecef;
    color: #2c3e50;
}

.rating-option input[type="radio"]:checked + .rating-label {
    background: #007bff;
    color: white;
    font-weight: 600;
}

/* Completion Styles */
.completion-icon {
    animation: bounce 1s ease-in-out;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.completion-steps {
    text-align: left;
    max-width: 400px;
    margin: 0 auto 2rem;
}

.step-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 6px;
}

.step-item i {
    margin-right: 0.75rem;
    width: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .progress-container {
        gap: 0.25rem;
        padding: 1rem 0.5rem;
        margin: 0.25rem 0;
    }
    
    .progress-step {
        min-width: 60px;
        padding: 0.35rem 0.25rem;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    }
    
    .progress-step:hover {
        transform: none;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    }
    
    .progress-step.active {
        transform: none;
        box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
    }
    
    .step-number {
        width: 28px;
        height: 28px;
        font-size: 0.85rem;
        margin-bottom: 0.25rem;
    }
    
    .step-label {
        font-size: 0.65rem;
        line-height: 1;
    }
    
    .progress-step.completed::before {
        width: 18px;
        height: 18px;
        font-size: 0.7rem;
        top: -6px;
        right: -6px;
    }
    
    .progress-container::before,
    .progress-container::after {
        height: 2px;
        left: 10%;
        right: 10%;
    }
    
    .signup-card {
        padding: 1.5rem;
        margin: 0.5rem;
    }
    
    .rating-scale {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .rating-option {
        flex-direction: row;
        justify-content: space-between;
        min-width: auto;
        width: 100%;
        padding: 0.5rem;
        background: #f8f9fa;
        border-radius: 4px;
        margin-bottom: 0.25rem;
    }
    
    .rating-option input[type="radio"] {
        margin-bottom: 0;
        margin-right: 0.5rem;
    }
    
    .rating-label {
        margin: 0;
        flex: 1;
        text-align: left;
    }
    
    #calculatedAge {
        font-size: 0.75rem;
        padding: 0.3rem 0.4rem;
        white-space: normal;
        line-height: 1.3;
        min-height: auto;
    }
}

@media (max-width: 480px) {
    .progress-container {
        gap: 0.15rem;
        padding: 0.75rem 0.25rem;
    }
    
    .progress-step {
        min-width: 55px;
        padding: 0.3rem 0.15rem;
    }
    
    .step-number {
        width: 24px;
        height: 24px;
        font-size: 0.75rem;
        margin-bottom: 0.2rem;
    }
    
    .step-label {
        font-size: 0.6rem;
        line-height: 1;
    }
    
    .progress-step.completed::before {
        width: 16px;
        height: 16px;
        font-size: 0.65rem;
        top: -5px;
        right: -5px;
    }
}

/* Loading States */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

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

/* Age Calculator Styling */
#calculatedAge {
    font-size: 0.85rem;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.9);
    display: inline-block;
    min-height: 1.8rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    letter-spacing: 0.3px;
}

#calculatedAge:empty {
    display: none;
}

#calculatedAge.text-success {
    background: rgba(40, 167, 69, 0.12);
    border: 1px solid rgba(40, 167, 69, 0.25);
    color: #1e7e34 !important;
    box-shadow: 0 1px 3px rgba(40, 167, 69, 0.1);
}

#calculatedAge.text-warning {
    background: rgba(255, 193, 7, 0.12);
    border: 1px solid rgba(255, 193, 7, 0.25);
    color: #856404 !important;
    box-shadow: 0 1px 3px rgba(255, 193, 7, 0.1);
}

#calculatedAge.text-danger {
    background: rgba(220, 53, 69, 0.12);
    border: 1px solid rgba(220, 53, 69, 0.25);
    color: #721c24 !important;
    box-shadow: 0 1px 3px rgba(220, 53, 69, 0.1);
}



/* Calendar button styling */
#datePickerBtn {
    border-left: none;
    background: #f8f9fa;
    color: #6c757d;
    transition: all 0.3s ease;
}

#datePickerBtn:hover {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

#datePickerBtn:active, #datePickerBtn:focus {
    background: #0056b3;
    color: white;
    border-color: #0056b3;
    box-shadow: none;
}

.input-group .form-control:focus + #datePickerBtn {
    border-color: #007bff;
}

.input-group .form-control.is-valid + #datePickerBtn {
    border-color: #28a745;
}

.input-group .form-control.is-invalid + #datePickerBtn {
    border-color: #dc3545;
}

/* Error and Success Messages */
.alert {
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.alert-warning {
    background-color: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

.alert-info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}