﻿.photo-modal-dialog {
    max-width: 576px;
}

.photo-modal-content {
    border: none;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    padding: 10px 10px 20px;
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.photo-modal-header {
    border-bottom: none;
    text-align: center;
    padding: 25px 25px 10px;
    position: relative;
}

.photo-modal-title {
    font-family: Lato;
    font-size: 25.9px;
    font-style: normal;
    font-weight: 400;
    line-height: 31px; /* 119.691% */
    letter-spacing: 0;
}

.photo-sub-instructions {
    display: flex;
    gap: 8px;
}

.margin-bottom-4 {
    margin-bottom: 4px;
}

.photo-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    opacity: 0.8;
}

.photo-modal-body {
    padding: 10px 30px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.photo-instructions {
    font-family: Lato;
    font-size: 15px;
    font-style: normal;
    font-weight: 400;
    line-height: 21px;
    letter-spacing: 0;
    margin: 0;
    color: #333;
}

.photo-file-picker {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.photo-file-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1px solid #333;
    border-radius: 6px;
    background: #fff;
    color: #222;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    margin: 0;
    user-select: none;
}

    .photo-file-btn:hover {
        background: #f5f5f5;
    }

    .photo-file-btn:active {
        background: #ececec;
    }

.photo-file-name {
    font-weight: 600;
    font-size: 15px;
    color: #222;
    word-break: break-all;
}

.photo-file-input-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}


.photo-preview-label {
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
}

.preview-card {
    display: flex;
    align-items: center;
    gap: 26px;
    background: #f5f5f5;
    padding: 15px;
    border-radius: 6px;
    margin-top: 8px;
}

.candidate-photo-preview {
    width: 150px;
    height: 150px;
    border-radius: 6px;
    object-fit: contain; /* show the full original image, letterboxed, not cropped */
    background: #fff;
    border: 1px solid #ddd;
    flex-shrink: 0;
}

.preview-name {
    font-size: 20px;
    font-weight: bold;
}

.preview-office {
    font-size: 14px;
    color: #333;
}

.candidate-photo {
    width: 125px;
    height: 125px;
    border-radius: 50%; /* circle look on card only */
    object-fit: cover;
    object-position: top center;
    border: 1px solid #ddd;
}

.photo-modal-footer {
    border-top: none;
    padding: 10px 30px 25px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.photo-btn-cancel,
.photo-btn-upload {
    border-radius: 6px;
    padding: 10px 22px;
    font-weight: 600;
    font-size: 15px;
    border: 1px solid transparent;
}

.photo-btn-cancel {
    background: #fff;
    color: #7a2436;
    border-color: #7a2436;
}

    .photo-btn-cancel:hover {
        background: #f9f0f1;
        color: #7a2436;
    }

.photo-btn-upload {
    background: #7a2436;
    color: #fff;
}

    .photo-btn-upload:hover:not(:disabled) {
        background: #611c2a;
        color: #fff;
    }

    .photo-btn-upload:disabled {
        background: #c79aa3;
        color: #fff;
        cursor: not-allowed;
        opacity: 1;
    }

.full-width {
    width: 100%;
}
