/* ==========================================================================
   mypage_lab_profile.css - Profile-specific styles
   Scoped under #mypage_lab_profile
   ========================================================================== */

/* --- Profile Card / Table Container --- */
#mypage_lab_profile .profile__card {
    background-color: var(--color-static-white, #fff);
    border: 1px solid var(--color-neutral-300, #dde2eb);
    border-radius: 8px;
    box-shadow: 0px 1px 4px 0px rgba(12, 12, 13, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-bottom: 8px;
}

/* --- Section Header --- */
#mypage_lab_profile .profile__section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px;
    width: 100%;
    box-sizing: border-box;
    border-bottom: 1px solid var(--color-neutral-300, #dde2eb);
    overflow: hidden;
}

#mypage_lab_profile .profile__section-header--contact {
    border-top: 1px solid var(--color-neutral-300, #dde2eb);
}

#mypage_lab_profile .profile__section-title {
    flex: 1;
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.6;
    letter-spacing: -0.16px;
    color: var(--color-neutral-800, #484d5e);
    margin: 0;
}

#mypage_lab_profile .profile__section-actions {
    display: flex;
    align-items: center;
}

/* --- Buttons --- */
#mypage_lab_profile .profile__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid var(--color-neutral-300, #dde2eb);
    background-color: var(--color-static-white, #fff);
    cursor: pointer;
    overflow: hidden;
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 15px;
    letter-spacing: -0.14px;
    color: var(--color-neutral-900, #303342);
    white-space: nowrap;
    transition: background-color 0.15s ease;
}

#mypage_lab_profile .profile__btn:hover {
    background-color: var(--color-neutral-100, #f2f6fa);
}

#mypage_lab_profile .profile__btn--primary {
    background-color: var(--color-primary-600, #4165ff);
    border-color: var(--color-primary-600, #4165ff);
    color: var(--color-static-white, #fff);
}

#mypage_lab_profile .profile__btn--primary:hover {
    background-color: var(--color-primary-700, #2c48d9);
}

#mypage_lab_profile .profile__btn--disabled {
    background-color: rgba(72, 77, 94, 0.1);
    border-color: var(--color-neutral-300, #dde2eb);
    color: var(--color-neutral-600, #949aac);
    cursor: default;
    pointer-events: none;
}

/* --- Section Body --- */
#mypage_lab_profile .profile__section-body {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: flex-start;
    justify-content: center;
    padding: 36px 40px 80px;
    width: 100%;
    box-sizing: border-box;
}

/* --- Form Field (Input Field) --- */
#mypage_lab_profile .profile__field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    width: 100%;
}

#mypage_lab_profile .profile__field-label {
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.4;
    color: #1e1e1e;
    margin: 0;
}

#mypage_lab_profile .profile__field-label--required::after {
    content: '*';
    color: var(--color-neutral-900, #303342);
    margin-left: 1px;
}

#mypage_lab_profile .profile__field-label--disabled {
    color: #b3b3b3;
}

/* --- Input / Display Value --- */
#mypage_lab_profile .profile__input {
    width: 100%;
    min-width: 120px;
    padding: 12px 16px;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    background-color: var(--color-static-white, #fff);
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1;
    color: var(--color-neutral-900, #303342);
    box-sizing: border-box;
    overflow: hidden;
    outline: none;
    transition: border-color 0.15s ease;
}

#mypage_lab_profile .profile__input::placeholder {
    color: #b3b3b3;
}

#mypage_lab_profile .profile__input:focus {
    border-color: var(--color-primary-600, #4165ff);
}

#mypage_lab_profile .profile__input--disabled {
    background-color: #d9d9d9;
    border-color: #b3b3b3;
    color: #b3b3b3;
    cursor: not-allowed;
}

#mypage_lab_profile .profile__input--readonly {
    background-color: var(--color-static-white, #fff);
    border-color: #d9d9d9;
    color: #b3b3b3;
    pointer-events: none;
}

/* Textarea */
#mypage_lab_profile .profile__textarea {
    width: 100%;
    min-width: 120px;
    min-height: 80px;
    padding: 12px 16px;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    background-color: var(--color-static-white, #fff);
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.4;
    color: var(--color-neutral-900, #303342);
    box-sizing: border-box;
    resize: vertical;
    outline: none;
    transition: border-color 0.15s ease;
}

#mypage_lab_profile .profile__textarea::placeholder {
    color: #b3b3b3;
}

#mypage_lab_profile .profile__textarea:focus {
    border-color: var(--color-primary-600, #4165ff);
}

#mypage_lab_profile .profile__textarea--readonly {
    color: #b3b3b3;
    pointer-events: none;
}

/* --- Name + Photo Row --- */
#mypage_lab_profile .profile__name-photo-row {
    display: flex;
    gap: 60px;
    align-items: flex-start;
    width: 100%;
}

#mypage_lab_profile .profile__name-fields {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 40px;
    min-width: 0;
}

/* --- Photo Upload Area --- */
#mypage_lab_profile .profile__photo-area {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    align-self: stretch;
    flex-shrink: 0;
}

#mypage_lab_profile .profile__photo-label {
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: -0.16px;
    color: var(--color-neutral-900, #303342);
    margin: 0;
}

#mypage_lab_profile .profile__photo-box {
    width: 160px;
    flex: 1;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    justify-content: center;
    background-color: #f4f4f6;
    border-radius: 10px;
    cursor: default;
    position: relative;
    overflow: hidden;
}

#mypage_lab_profile .profile__photo-box--editable {
    cursor: pointer;
    transition: background-color 0.15s ease;
}

#mypage_lab_profile .profile__photo-box--editable:hover {
    background-color: #ebebee;
}

#mypage_lab_profile .profile__photo-icon {
    width: 24px;
    height: 24px;
    opacity: 0.7;
}

#mypage_lab_profile .profile__photo-text {
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: normal;
    color: #6e7681;
    text-align: center;
    margin: 0;
}

#mypage_lab_profile .profile__photo-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    position: absolute;
    top: 0;
    left: 0;
}

/* --- Two-Column Row (email + phone) --- */
#mypage_lab_profile .profile__row-2col {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    width: 100%;
}

#mypage_lab_profile .profile__row-2col .profile__field {
    flex: 1;
    min-width: 0;
}

/* --- Radio Group (representative contact) --- */
#mypage_lab_profile .profile__radio-row {
    display: flex;
    gap: 40px;
    align-items: center;
}

#mypage_lab_profile .profile__radio-label-text {
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: -0.16px;
    color: var(--color-neutral-900, #303342);
    margin: 0;
    white-space: nowrap;
}

#mypage_lab_profile .profile__radio-group {
    display: flex;
    gap: 4px;
    align-items: center;
}

#mypage_lab_profile .profile__radio-option {
    display: flex;
    gap: 12px;
    align-items: center;
    min-width: 120px;
    cursor: pointer;
}

#mypage_lab_profile .profile__radio-option input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border: 1.5px solid #d9d9d9;
    border-radius: 50%;
    background: var(--color-static-white, #fff);
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: border-color 0.15s ease;
}

#mypage_lab_profile .profile__radio-option input[type="radio"]:checked {
    border-color: var(--color-primary-600, #4165ff);
    background: var(--color-static-white, #fff);
}

#mypage_lab_profile .profile__radio-option input[type="radio"]:checked::after {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--color-primary-600, #4165ff);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#mypage_lab_profile .profile__radio-option-label {
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.4;
    color: #1e1e1e;
}

/* --- View Mode: display values as read-only styled text --- */
#mypage_lab_profile .profile__display-value {
    width: 100%;
    min-width: 120px;
    padding: 12px 16px;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    background-color: var(--color-static-white, #fff);
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1;
    color: #b3b3b3;
    box-sizing: border-box;
    overflow: hidden;
}

#mypage_lab_profile .profile__display-value--disabled {
    background-color: #d9d9d9;
    border-color: #b3b3b3;
    color: #b3b3b3;
}

/* --- View/Edit 컨테이너 너비 --- */
#mypage_lab_profile .profile__view-only,
#mypage_lab_profile .profile__edit-only {
    width: 100%;
}

/* --- Edit mode toggle visibility --- */
#mypage_lab_profile .profile__view-mode .profile__edit-only {
    display: none;
}

#mypage_lab_profile .profile__edit-mode .profile__view-only {
    display: none;
}

/* Hide file input */
#mypage_lab_profile .profile__photo-input {
    display: none;
}
