/* Complete CSS from OSTDSConstructionApplicationPublic.aspx - Production Ready */
.wizard-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
    background: transparent;
}

.wizard-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    padding: 0;
    list-style: none;
    position: relative;
}

.wizard-step {
    flex: 1;
    text-align: center;
    position: relative;
    padding: 10px 5px;
    z-index: 1;
}

/* Connecting line between steps - connects from right edge of previous circle to left edge of current circle, vertically centered */
.wizard-step::before {
    content: '';
    position: absolute;
    top: 34px;
    left: calc(-50% + 26px);
    right: calc(50% - 26px);
    height: 3px;
    background: #e9ecef;
    z-index: -1;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.wizard-step:first-child::before {
    display: none;
}

/* Completed steps - full green line */
.wizard-step.completed::before {
    background: #28a745;
}

/* Active step - check previous step to determine line color */
.wizard-step.active::before {
    background: #28a745;
}

/* If active step is after a completed step, line should be green */
.wizard-step.active ~ .wizard-step::before {
    background: #e9ecef;
}

/* Inactive steps - grey line (default) */
.wizard-step:not(.active):not(.completed)::before {
    background: #e9ecef;
}

.wizard-step.active .step-number {
    background: #007bff !important;
    background-image: linear-gradient(135deg, #007bff 0%, #0056b3 100%) !important;
    color: white;
    border: none !important;
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.15), 0 4px 12px rgba(0, 123, 255, 0.3);
    transform: scale(1.1);
    animation: pulse-active 2s ease-in-out infinite;
    outline: none;
    position: relative;
}

.wizard-step.completed .step-number {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    color: white;
    border: 3px solid #28a745;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
    position: relative;
}

/* Checkmark for completed steps */
.wizard-step.completed .step-number::after {
    content: '✓';
    position: absolute;
    font-size: 20px;
    font-weight: bold;
    color: white;
    animation: checkmark-appear 0.3s ease-out;
}

.wizard-step.completed .step-number {
    font-size: 0;
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 3px solid #dee2e6;
    background: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 8px;
    position: relative;
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
}

.step-number:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.step-title {
    font-size: 0.875rem;
    color: #6c757d;
    font-weight: 500;
    transition: all 0.3s ease;
    line-height: 1.3;
    margin-top: 4px;
}

.wizard-step.active .step-title {
    color: #007bff;
    font-weight: 600;
    font-size: 0.9rem;
}

.wizard-step.completed .step-title {
    color: #28a745;
    font-weight: 500;
}

/* Pulse animation for active step */
@keyframes pulse-active {
    0%, 100% {
        box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.15), 0 4px 12px rgba(0, 123, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(0, 123, 255, 0.1), 0 4px 12px rgba(0, 123, 255, 0.4);
    }
}

/* Checkmark animation */
@keyframes checkmark-appear {
    0% {
        transform: scale(0) rotate(-45deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotate(5deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.step-content {
    background: #ffffff;
    border-radius: 8px;
    padding: 40px;
    margin-bottom: 30px;
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
}

.step-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: stepFadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes stepFadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-section {
    margin-bottom: 30px;
}

.form-section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 24px;
    padding-bottom: 0;
    border-bottom: none;
}

.form-subsection-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    margin-top: 20px;
    color: #495057;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 5px;
    display: block;
}

.form-label .required {
    color: #dc3545;
}

.form-control-modern {
    width: 100%;
    padding: 10px 15px;
    font-size: 1rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control-modern:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

.btn-modern {
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
}

.btn-primary-modern {
    background-color: #007bff;
    color: white;
}

.btn-primary-modern:hover {
    background-color: #0056b3;
}

.btn-secondary-modern {
    background-color: #6c757d;
    color: white;
}

.btn-secondary-modern:hover {
    background-color: #545b62;
}

.btn-success-modern {
    background-color: #28a745;
    color: white;
}

.btn-success-modern:hover {
    background-color: #218838;
}

.btn-success-modern:disabled,
.btn-success-modern.disabled {
    background-color: #6c757d;
    opacity: 0.65;
    cursor: not-allowed;
    pointer-events: none;
}

/* Spinner for submit button */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
    vertical-align: middle;
    display: inline-block;
    border: 0.15em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border 0.75s linear infinite;
}

@keyframes spinner-border {
    to {
        transform: rotate(360deg);
    }
}

.wizard-actions {
    display: flex;
    justify-content: space-between;
    padding: 20px 0;
    border-top: 1px solid #dee2e6;
    margin-top: 30px;
}

.help-text {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 5px;
}

.alert-modern {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.alert-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.alert-info {
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

.text-danger {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 5px;
    display: none !important;
}

.field-validation-error {
    display: block !important;
}

.row-modern {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
    align-items: flex-start;
}

.col-modern {
    flex: 1;
    padding: 0 10px;
    min-width: 200px;
}

.col-modern .form-group {
    margin-bottom: 20px;
}

.progress-section {
    margin-bottom: 40px;
    padding: 0;
    background: transparent;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.progress-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #495057;
    letter-spacing: 0.3px;
}

.progress-percentage {
    font-size: 1.1rem;
    font-weight: 700;
    color: #007bff;
    background: linear-gradient(135deg, #007bff, #0056b3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.progress-bar-container {
    background: linear-gradient(to bottom, #f8f9fa, #e9ecef);
    border-radius: 12px;
    height: 12px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.progress-bar-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.3), transparent);
    pointer-events: none;
}

.progress-bar-fill {
    background: linear-gradient(90deg, #007bff 0%, #0056b3 50%, #007bff 100%);
    background-size: 200% 100%;
    height: 100%;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.4);
    animation: progress-shimmer 2s ease-in-out infinite;
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: progress-glow 2s ease-in-out infinite;
}

@keyframes progress-shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

@keyframes progress-glow {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
}

.thank-you-container {
    max-width: 800px;
    margin: 50px auto;
    padding: 40px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.thank-you-icon {
    font-size: 64px;
    color: #28a745;
    margin-bottom: 20px;
}

.thank-you-title {
    font-size: 32px;
    color: #28a745;
    margin-bottom: 20px;
    font-weight: bold;
}

.thank-you-message {
    font-size: 18px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 30px;
}

.thank-you-details {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 4px;
    margin-top: 30px;
    text-align: left;
}

.thank-you-details p {
    margin: 10px 0;
    color: #555;
}

/* File Upload Styles */
.file-upload-area {
    border: 2px dashed #ced4da;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-upload-area:hover {
    border-color: #007bff;
    background: #e7f3ff;
}

.file-upload-area.dragover {
    border-color: #007bff;
    background: #e7f3ff;
    box-shadow: 0 0 10px rgba(0,123,255,0.3);
}

.file-upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.file-upload-icon {
    margin-bottom: 10px;
}

.file-upload-text {
    font-size: 1.1rem;
    color: #495057;
    font-weight: 500;
}

.file-upload-link {
    font-size: 0.95rem;
    color: #6c757d;
}

.file-upload-link a {
    color: #007bff;
    text-decoration: underline;
    font-weight: 500;
}

.file-upload-link a:hover {
    color: #0056b3;
}

.file-list-container {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.file-list-group {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.file-list-item {
    display: flex;
    align-items: flex-start;
    padding: 16px;
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: relative;
}

.file-list-item:hover {
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.15);
    transform: translateY(-1px);
}

.file-icon {
    margin-right: 16px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-icon-badge {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.file-list-item:hover .file-icon-badge {
    transform: scale(1.05);
}

.file-icon-badge.pdf {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

.file-icon-badge.doc,
.file-icon-badge.docx {
    background: linear-gradient(135deg, #2b579a 0%, #1e3f73 100%);
}

.file-icon-badge.jpg,
.file-icon-badge.jpeg,
.file-icon-badge.png {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
}

.file-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.file-name {
    font-size: 0.95rem;
    color: #212529;
    font-weight: 600;
    word-wrap: break-word;
    display: block;
    line-height: 1.4;
}

.file-size {
    font-size: 0.8rem;
    color: #6c757d;
    display: block;
    font-weight: 400;
}

.file-doc-type {
    margin-top: 4px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.file-doc-type label {
    font-size: 0.8rem;
    color: #495057;
    font-weight: 600;
    margin-bottom: 0;
    display: block;
}

.file-doc-type select {
    border: 1px solid #ced4da;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 0.875rem;
    color: #495057;
    background-color: #fff;
    transition: all 0.2s ease;
    cursor: pointer;
    width: 100%;
    max-width: 350px;
}

.file-doc-type select:hover {
    border-color: #007bff;
}

.file-doc-type select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.file-remove {
    color: #dc3545;
    cursor: pointer;
    margin-left: 12px;
    font-size: 0.875rem;
    line-height: 1;
    padding: 8px 12px;
    background: transparent;
    border: 1px solid #dc3545;
    border-radius: 6px;
    flex-shrink: 0;
    transition: all 0.2s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 70px;
}

.file-remove:hover {
    color: #ffffff;
    background-color: #dc3545;
    border-color: #dc3545;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.2);
}

.file-remove:active {
    transform: translateY(0);
}

/* File list item animations */
@keyframes fileItemFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.file-list-item {
    animation: fileItemFadeIn 0.3s ease-out;
}

/* Responsive design for file list */
@media (max-width: 768px) {
    .file-list-item {
        flex-direction: column;
        padding: 12px;
    }
    
    .file-icon {
        margin-right: 0;
        margin-bottom: 12px;
    }
    
    .file-info {
        margin-left: 0;
        width: 100%;
    }
    
    .file-doc-type select {
        max-width: 100%;
    }
    
    .file-remove {
        margin-left: 0;
        margin-top: 12px;
        width: 100%;
        justify-content: center;
    }
    
    .file-list-container {
        padding: 16px;
    }
}

/* Document type selected state */
.file-doc-type select:not([value=""]) {
    border-color: #28a745 !important;
    background-color: #f8fff9 !important;
}

.file-doc-type select:focus:not([value=""]) {
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1) !important;
}

/* Agent Loading Indicator Styles */
.agent-loading-spinner {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #007bff;
    font-size: 0.8rem;
    pointer-events: none;
    z-index: 10;
    background: transparent;
}

.agent-loading-spinner .spinner {
    width: 14px;
    height: 14px;
    border: 2px solid #e3e3e3;
    border-top-color: #007bff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.agent-loading-spinner .loading-text {
    white-space: nowrap;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Agent Search Dropdown Results */
.agent-dropdown-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ced4da;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-top: -1px;
}

.agent-result-item {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.15s ease;
}

.agent-result-item:hover {
    background-color: #f8f9fa;
}

.agent-result-item:last-child {
    border-bottom: none;
}

.agent-no-results,
.agent-error {
    color: #6c757d;
    font-style: italic;
    cursor: default;
}

.agent-no-results:hover,
.agent-error:hover {
    background-color: white;
}

/* Remove grey background from disabled state - keep it looking normal */
.form-control-modern:disabled {
    background-color: #fff;
    opacity: 1;
    cursor: default;
}

@media (max-width: 768px) {
    .wizard-container {
        padding: 20px 15px;
        border-radius: 12px;
    }
    
    .wizard-steps {
        flex-direction: column;
        gap: 20px;
    }
    
    .wizard-step {
        display: flex;
        align-items: center;
        text-align: left;
        padding: 15px;
        background: #f8f9fa;
        border-radius: 8px;
    }
    
    .wizard-step::before {
        display: none;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        margin-right: 15px;
        margin-bottom: 0;
        flex-shrink: 0;
    }
    
    .step-title {
        flex: 1;
        margin-top: 0;
        font-size: 0.9rem;
    }
    
    .progress-section {
        padding: 15px;
        margin-bottom: 30px;
    }
    
    .progress-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .progress-percentage {
        font-size: 1rem;
    }
    
    .step-content {
        padding: 25px 20px;
    }
    
    .col-modern {
        flex: 100%;
    }
    
    .agent-loading-spinner {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        margin-top: 8px;
        display: inline-flex;
    }
}

