/* Contract Progress Bars Styles */

.progress-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid rgba(123, 99, 140, 0.2);
}

.progress-section h4 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 1rem;
    text-align: center;
}

/* Linear Progress Bar */
.linear-progress-container {
    margin-bottom: 2rem;
}

.linear-progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    color: var(--text-light);
}

.linear-progress-bar {
    width: 100%;
    height: 25px;
    background: #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.linear-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #7b638c, #5e486d);
    border-radius: 12px;
    transition: width 0.8s ease-in-out;
    position: relative;
    overflow: hidden;
}

.linear-progress-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: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.linear-progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 1rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.linear-progress-info {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 1rem;
    color: var(--text-light);
}

/* ==================== Curve Photo Modal ==================== */

/* Hidden by default – JS adds .open to show it */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    animation: fadeInOverlay 0.2s ease;
}

.modal-overlay.open {
    display: flex;
}

@keyframes fadeInOverlay {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.modal-box {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.35);
    max-width: 680px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUpModal 0.25s ease;
}

@keyframes slideUpModal {
    from { transform: translateY(40px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 16px;
    border-bottom: 1px solid #e5e7eb;
}

.modal-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #5e486d;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.4rem;
    color: #6b7280;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
    line-height: 1;
}

.modal-close:hover {
    background: #fee2e2;
    color: #dc2626;
}

.modal-body {
    padding: 24px;
}

.modal-doctor-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 16px;
    text-align: center;
}

.modal-img-wrap {
    position: relative;
    width: 100%;
    min-height: 260px;
    border-radius: 12px;
    overflow: hidden;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-license-img {
    width: 100%;
    height: auto;
    max-height: 65vh;
    object-fit: contain;
    display: none;
    border-radius: 10px;
}

.modal-img-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: #9ca3af;
    font-size: 1rem;
    padding: 40px;
}

.modal-img-placeholder i {
    font-size: 3rem;
    color: #d1d5db;
}

.modal-license-num {
    text-align: center;
    color: #6b7280;
    font-size: 0.95rem;
    margin-top: 12px;
}

