/* ================================================
   시술후기 등록/수정 전용 스타일
   ================================================ */

/* ── 전체 컨테이너 ── */
.procedure-review-form {
    display: flex;
    gap: 24px;
    width: 100%;
    height: calc(100% - 10px);
}

/* ── 좌측 패널 (폼 영역) ── */
.procedure-review-form .form-panel {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
    padding-right: 8px;
}

/* ── 우측 패널 (이미지 영역) ── */
.procedure-review-form .image-panel {
    flex: 0 0 400px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
}

/* ── 폼 그룹 ── */
.procedure-review-form .pr-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.procedure-review-form .pr-form-row {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.procedure-review-form .pr-form-row .pr-form-group {
    flex: 1;
}

.procedure-review-form .pr-form-row .pr-form-group.pr-category {
    flex: 0 0 180px;
}

/* ── 라벨 ── */
.procedure-review-form .pr-label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.procedure-review-form .pr-label .required {
    color: #EF4444;
    font-size: 12px;
}

/* ── Input / Select 공통 ── */
.procedure-review-form input[type="text"],
.procedure-review-form select {
    width: 100%;
    height: 38px;
    padding: 0 12px;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    font-size: 13px;
    color: #1F2937;
    background: #fff;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.procedure-review-form input[type="text"]:focus,
.procedure-review-form select:focus {
    border-color: #3985EA;
    box-shadow: 0 0 0 3px rgba(57, 133, 234, 0.12);
}

.procedure-review-form input[type="text"]::placeholder {
    color: #9CA3AF;
}

/* ── Quill 에디터 ── */
.procedure-review-form .editor-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 300px;
}

.procedure-review-form .editor-container .ql-toolbar.ql-snow {
    border: 1px solid #D1D5DB;
    border-radius: 6px 6px 0 0;
    background: #F9FAFB;
    padding: 8px;
}

.procedure-review-form .editor-container .ql-container.ql-snow {
    border: 1px solid #D1D5DB;
    border-top: none;
    border-radius: 0 0 6px 6px;
    flex: 1;
    font-size: 14px;
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
    min-height: 250px;
}

.procedure-review-form .editor-container .ql-editor {
    min-height: 240px;
    line-height: 1.7;
    padding: 16px;
}

.procedure-review-form .editor-container .ql-editor.ql-blank::before {
    color: #9CA3AF;
    font-style: normal;
}

/* ── 이미지 카드 ── */
.procedure-review-form .image-card {
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.procedure-review-form .image-card .image-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: #F3F4F6;
    border-bottom: 1px solid #E5E7EB;
}

.procedure-review-form .image-card .image-card-header span {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.procedure-review-form .image-card .image-card-header .image-card-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.procedure-review-form .image-card .image-card-header .image-card-actions label {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    transition: background 0.15s;
}

.procedure-review-form .image-card .image-card-header .image-card-actions label:hover {
    background: #E5E7EB;
}

.procedure-review-form .image-card .image-card-header .image-card-actions label img {
    width: 16px;
    height: 16px;
}

.procedure-review-form .image-card .image-card-header .image-card-actions .img-delete-btn {
    border: none;
    background: none;
    cursor: pointer;
    font-size: 12px;
    color: #9CA3AF;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.15s;
}

.procedure-review-form .image-card .image-card-header .image-card-actions .img-delete-btn:hover {
    background: #FEE2E2;
    color: #EF4444;
}

.procedure-review-form .image-card .image-card-body {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #FAFAFA;
    position: relative;
}

.procedure-review-form .image-card .image-card-body .placeholder-text {
    color: #D1D5DB;
    font-size: 13px;
    text-align: center;
    user-select: none;
}

.procedure-review-form .image-card .image-card-body img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── 가이드 박스 ── */
.procedure-review-form .photo-guide {
    padding: 14px 16px;
    background: #F0F5FF;
    border: 1px solid #DBEAFE;
    border-radius: 8px;
    font-size: 12px;
    color: #4B5563;
}

.procedure-review-form .photo-guide p {
    font-weight: 700;
    margin-bottom: 6px;
    color: #3985EA;
    font-size: 12px;
}

.procedure-review-form .photo-guide ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.procedure-review-form .photo-guide ul li {
    position: relative;
    padding-left: 14px;
    line-height: 1.6;
}

.procedure-review-form .photo-guide ul li::before {
    content: '•';
    position: absolute;
    left: 2px;
    color: #3985EA;
}

/* ── 액션 버튼 영역 ── */
.procedure-review-form .pr-actions {
    display: flex;
    gap: 10px;
    padding-top: 8px;
}

.procedure-review-form .pr-actions .pr-btn {
    width: 90px;
    height: 38px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    outline: none;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.procedure-review-form .pr-actions .pr-btn-primary {
    background: #3985EA;
    color: #fff;
}

.procedure-review-form .pr-actions .pr-btn-primary:hover {
    background: #2563EB;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.procedure-review-form .pr-actions .pr-btn-cancel {
    background: #F3F4F6;
    color: #6B7280;
    border: 1px solid #D1D5DB;
}

.procedure-review-form .pr-actions .pr-btn-cancel:hover {
    background: #E5E7EB;
    color: #374151;
}

/* ── 반응형 ── */
@media only screen and (max-width: 1400px) {
    .procedure-review-form .image-panel {
        flex: 0 0 340px;
    }
}

@media only screen and (max-width: 1200px) {
    .procedure-review-form {
        flex-direction: column;
    }
    .procedure-review-form .image-panel {
        flex: none;
    }
    .procedure-review-form .image-panel .images-row {
        display: flex;
        gap: 16px;
    }
    .procedure-review-form .image-panel .images-row .image-card {
        flex: 1;
    }
}
