/* File Validation Styles */

/* Required field indicator */
.required-asterisk {
    font-weight: bold;
    font-size: 1.1em;
}

/* Optional field indicator */
.optional-text {
    font-style: italic;
    opacity: 0.7;
}

/* File validation states */
.file-valid .form-control {
    border-color: #198754 !important;
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.25) !important;
}

.file-invalid .form-control {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

.file-invalid .form-control:focus {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

/* Alert styles for file size warnings */
.file-size-alert {
    margin-bottom: 1rem;
    border-left: 4px solid #ffc107;
}

.file-size-alert .uil-exclamation-triangle {
    margin-right: 0.5rem;
    color: #856404;
}

/* Disabled submit button styling */
button[type="submit"]:disabled,
input[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
}

button[type="submit"]:disabled:hover,
input[type="submit"]:disabled:hover {
    background-color: #c82333 !important;
    border-color: #bd2130 !important;
}

/* Loading state for file validation */
.file-validating {
    position: relative;
}

.file-validating::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 10px;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* File size display */
.file-size-info {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

.file-size-info.valid {
    color: #198754;
}

.file-size-info.invalid {
    color: #dc3545;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .file-size-alert {
        font-size: 0.875rem;
        padding: 0.75rem;
    }

    .required-asterisk {
        font-size: 1em;
    }
}

/* Custom Premium File Upload Styling */
.custom-file-upload-wrapper {
    position: relative;
    display: block;
    width: 100%;
}

.custom-file-upload-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
    background: #f8fafc;
    border: 2px dashed #b9d8f6;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.custom-file-upload-area:hover {
    background: #f1f7fe;
    border-color: #0074e1;
    box-shadow: 0 4px 12px rgba(0, 116, 225, 0.06);
}

.custom-file-upload-area .upload-icon {
    font-size: 1.8rem;
    color: #0074e1;
    margin-bottom: 0.5rem;
    transition: transform 0.25s ease;
}

.custom-file-upload-area:hover .upload-icon {
    transform: translateY(-2px);
}

.custom-file-upload-area .upload-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: #2b303a;
    margin-bottom: 0.2rem;
}

.custom-file-upload-area .upload-hint {
    font-size: 0.72rem;
    color: #6c757d;
}

.custom-file-input-hidden {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.file-selected-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding: 0.4rem 0.75rem;
    background: #e6f3ff;
    border-radius: 6px;
    border-left: 3px solid #0074e1;
    font-size: 0.8rem;
    color: #0074e1;
}

.file-selected-info i {
    font-size: 1rem;
}

/* Validation Border & Background Utility Classes */
.border-success {
    border-color: #198754 !important;
}
.border-danger {
    border-color: #dc3545 !important;
}
.bg-success-light {
    background: #f4fbf7 !important;
}
.bg-danger-light {
    background: #fdf3f4 !important;
}
.upload-preview-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 0.5rem;
}

/* Finish Button and Card Premium Styling */
.btn-finish-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 116, 225, 0.4) !important;
    opacity: 0.95;
}

.btn-finish-premium:active {
    transform: translateY(0);
}

.finish-icon-box i {
    transition: transform 0.3s ease;
}

.finish-data-card:hover .finish-icon-box i {
    transform: scale(1.15) rotate(5deg);
}

/* Collapsible Card Accordion List Styling */
.collapsible-card-header {
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease;
}

.collapsible-card-header:hover {
    background-color: rgba(0, 116, 225, 0.02) !important;
}

.collapsible-card-header .chevron-icon {
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), color 0.25s ease;
    font-size: 1.25rem;
    line-height: 1;
}

.collapsible-card-header[aria-expanded="true"] .chevron-icon {
    transform: rotate(90deg);
    color: #0074e1 !important;
}

.collapsible-card-body {
    transition: all 0.25s ease;
}
