.brand-header {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(4, 38, 118, 0.8) 100%);
    border-bottom: 3px solid var(--primary-gold);
    padding: 1rem 0;
}

.logo-container {
    max-width: 300px;
    margin: 0 auto;
}

.profile-container {
    max-width: 1000px;
    margin: 2rem auto;
    background: rgba(0, 0, 0, 0.55);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 209, 0, 0.3);
}

.profile-header {
    color: var(--primary-gold);
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 700;
    font-size: 2.2rem;
    position: relative;
    padding-bottom: 1rem;
}

.profile-header:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 25%;
    width: 50%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-gold), transparent);
}

.btn-update {
    background: linear-gradient(145deg, #FFD700, #D4AF37);
    color: #000;
    border: none;
    padding: 14px 25px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 10px rgba(255, 215, 0, 0.3);
    width: 100%;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-update:hover {
    background: linear-gradient(145deg, #D4AF37, #FFD700);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 215, 0, 0.5);
}

@media (max-width: 600px) {

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .birthday-row {
        flex-direction: column;
    }

    .profile-container {
        padding: 1.5rem;
        margin: 1rem auto;
    }
}


/* Readonly fields */
.readonly-field {
    background-color: rgba(0, 0, 0, 0.2) !important;
    color: rgba(255, 255, 255, 0.6) !important;
    cursor: not-allowed;
}

.readonly-select {
    pointer-events: none;
    background-color: rgba(0, 0, 0, 0.2) !important;
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Career info styling */
.career-info {
    background: rgba(21, 20, 20, 0.72);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    border-left: 3px solid var(--primary-gold);
}

.career-info label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--secondary-gold);
}

.career-info p {
    margin: 0;
    padding: 8px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 5px;
}

.warning-text {
    color: var(--secondary-gold);
    font-size: 0.8rem;
    margin-top: 5px;
}


/* .form-group {
    position: relative;
    margin-bottom: 1.8rem;

}

.form-group label {
    position: absolute;
    top: -10px;
    left: 12px;
    font-size: 0.75rem;
    color: var(--secondary-gold);
    background-color: rgba(0, 0, 0, 0.8);
    padding: 0 5px;
    z-index: 1;
    transition: all 0.3s ease;
    pointer-events: none;
    border-radius: 3px;
} */

.form-control {
    margin-bottom: 0;
    padding: 12px 15px;
    position: relative;
    z-index: 0;
}

/* Remove dropdown arrow for select elements */
select.form-control {
    background-image: none !important;
    padding-right: 15px !important;
}

/* Adjust readonly fields */
.readonly-field+label {
    color: rgba(255, 255, 255, 0.6) !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
}

/* Birthday row adjustments */
.birthday-row {
    display: flex;
    gap: 10px;
    margin-top: 5px;
    /* Added space above birthday row */
}

.birthday-row select {
    flex: 1;
}

/* Add to existing CSS */
.border-gold {
    border-color: var(--primary-gold) !important;
}

.border-dashed {
    border-style: dashed !important;
}

.btn-outline-danger {
    border-color: #dc3545;
    color: #dc3545;
    background: transparent;
}

.btn-outline-danger:hover {
    background-color: #dc3545;
    color: white;
}

.profile-img-container:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.upload-area:hover {
    border-color: var(--primary-gold) !important;
    background: rgba(255, 215, 0, 0.05) !important;
}

/* Animation for upload area */
@keyframes pulse {
    0% {
        border-color: rgba(255, 215, 0, 0.3);
    }

    50% {
        border-color: var(--primary-gold);
    }

    100% {
        border-color: rgba(255, 215, 0, 0.3);
    }
}

.upload-area.drag-over {
    animation: pulse 2s infinite;
}

/* Responsive adjustments */
@media (max-width: 768px) {

    .profile-img-container img,
    .profile-placeholder {
        width: 140px !important;
        height: 140px !important;
    }

    .upload-area {
        padding: 20px 10px !important;
    }
}

@media (max-width: 576px) {

    .profile-img-container img,
    .profile-placeholder {
        width: 120px !important;
        height: 120px !important;
    }
}

/* Screen Blur Overlay */
.screen-blur-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.screen-blur-overlay.active {
    display: block;
    opacity: 1;
}

/* Face Detection Modal */
.face-detection-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(145deg, rgba(18, 18, 18, 0.95), rgba(4, 38, 118, 0.95));
    border: 2px solid var(--primary-gold);
    border-radius: 20px;
    padding: 2.5rem;
    width: 90%;
    max-width: 500px;
    z-index: 10000;
    display: none;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8),
        0 0 0 1px rgba(255, 215, 0, 0.1) inset;
}

.face-detection-modal.active {
    display: block;
    opacity: 1;
    animation: modalAppear 0.6s ease-out forwards;
}

@keyframes modalAppear {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8) rotateX(-10deg);
    }

    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.05);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) rotateX(0);
    }
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.modal-header h3 {
    color: var(--primary-gold);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin: 0;
}

.modal-content {
    text-align: center;
    padding: 1.5rem 0;
}

/* Spinner Animation */
.face-spinner {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    position: relative;
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    animation: spin 2s linear infinite;
}

.spinner-ring:nth-child(1) {
    border: 4px solid transparent;
    border-top: 4px solid var(--primary-gold);
    animation-delay: -0.5s;
}

.spinner-ring:nth-child(2) {
    border: 4px solid transparent;
    border-right: 4px solid var(--secondary-gold);
    animation-delay: -0.25s;
}

.spinner-ring:nth-child(3) {
    border: 4px solid transparent;
    border-bottom: 4px solid rgba(255, 215, 0, 0.5);
}

.spinner-inner {
    position: absolute;
    width: 60%;
    height: 60%;
    top: 20%;
    left: 20%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.face-icon {
    font-size: 2.5rem;
    color: var(--primary-gold);
    margin-bottom: 1.5rem;
    animation: facePulse 2s infinite;
}

@keyframes facePulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.progress-container {
    margin: 2rem auto;
    max-width: 300px;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary-gold), var(--secondary-gold));
    border-radius: 3px;
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.4),
            transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.status-message {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border-left: 3px solid var(--primary-gold);
}

.status-message p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Steps Indicator */
.steps-indicator {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 1.5rem 0;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: var(--primary-gold);
    color: #000;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.step.completed .step-number {
    background: #28a745;
    color: white;
}

.step.inactive .step-number {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

.step-text {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
}

.step.active .step-text {
    color: var(--primary-gold);
    font-weight: 600;
}

.step.completed .step-text {
    color: #28a745;
}

/* Connecting lines between steps */
.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    right: -30px;
    width: 20px;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
}

.step.completed:not(:last-child)::after {
    background: #28a745;
}

/* Success/Error States */
.result-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    animation: iconBounce 0.6s ease;
}

@keyframes iconBounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-20px);
    }

    60% {
        transform: translateY(-10px);
    }
}

.success-icon {
    color: #28a745;
}

.error-icon {
    color: #dc3545;
}

.result-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.result-message {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.action-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 2rem;
}

/* Loading Dots Animation */
.loading-dots {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin: 1rem 0;
}

.loading-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-gold);
    animation: loadingDots 1.4s infinite ease-in-out both;
}

.loading-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.loading-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes loadingDots {

    0%,
    80%,
    100% {
        transform: scale(0);
        opacity: 0.5;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Ensure modal states display properly */
#loadingState,
#successState,
#errorState {
    transition: opacity 0.3s ease;
}

#loadingState.active,
#successState.active,
#errorState.active {
    display: block !important;
    opacity: 1;
}

/* Profile Picture Status Styles - Only for left side */
.profile-pic-status {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 10;
}

.profile-pic-status.approved {
    background-color: #28a745;
    color: white;
}

.profile-pic-status.pending {
    background-color: #ffc107;
    color: #000;
}

.profile-pic-status.rejected {
    background-color: #dc3545;
    color: white;
}

/* Blur effect for pending/rejected photos */
.profile-img-container.pending img,
.profile-img-container.rejected img {
    filter: blur(8px);
    opacity: 0.8;
}

/* Status overlay for profile pics */
.profile-status-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    z-index: 5;
}

.profile-status-overlay i {
    font-size: 2rem;
    margin-bottom: 10px;
}

.profile-status-overlay.pending i {
    color: #ffc107;
}

.profile-status-overlay.rejected i {
    color: #dc3545;
}

.profile-status-overlay span {
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    padding: 0 10px;
}

/* Status text under profile picture */
.status-text {
    margin-top: 5px;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-text.pending {
    color: #ffc107;
}

.status-text.rejected {
    color: #dc3545;
}

.status-text.approved {
    color: #28a745;
}