/* 성형모델 신청 페이지 공통 스타일 */

body {
    margin: 0;
    padding: 0;
    font-family: 'Noto Sans KR', sans-serif;
    background: #f8f9fa;
}

.container {
    max-width: 100%;
    padding: 80px 20px 100px;
    background: #fff;
}

.page-title {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #333;
}

.page-title h1 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0 0 10px 0;
}

.page-title p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.form-section {
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.form-group label.required:after {
    content: '*';
    color: #e74c3c;
    margin-left: 4px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

.form-control:focus {
    outline: none;
    border-color: #007bff;
}

.input-group {
    display: flex;
    gap: 8px;
}

.input-group input {
    flex: 1;
}

.input-group select {
    flex: 1;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 400;
    margin: 0;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 6px;
    width: 18px;
    height: 18px;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.file-input-wrapper {
    margin-bottom: 15px;
}

.file-input-wrapper label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #666;
}

.file-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f8f9fa;
    font-size: 14px;
}

.privacy-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.privacy-content {
    max-height: 200px;
    overflow-y: auto;
    padding: 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 15px;
}

.privacy-agree {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.privacy-agree input[type="checkbox"] {
    margin-right: 8px;
    width: 20px;
    height: 20px;
}

.privacy-agree label {
    font-size: 15px;
    font-weight: 500;
    margin: 0;
}

.recaptcha-wrapper {
    display: flex;
    justify-content: center;
    margin: 25px 0;
}

.btn-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 30px;
}

.btn {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    -webkit-tap-highlight-color: transparent;
    text-align: center;
    text-decoration: none;
    display: block;
    box-sizing: border-box;
}

.btn-primary {
    background: #007bff;
    color: #fff;
}

.btn-primary:active {
    background: #0056b3;
}

.btn-secondary {
    background: #6c757d;
    color: #fff;
}

.btn-secondary:active {
    background: #545b62;
}

.btn-delete {
    background: #dc3545;
    color: #fff;
}

.btn-delete:active {
    background: #c82333;
}

.info-text {
    font-size: 13px;
    color: #666;
    margin-top: 8px;
    line-height: 1.5;
}

/* 수정 페이지 전용 스타일 */
.file-section {
    margin-bottom: 20px;
}

.file-section h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.existing-file {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.existing-file-label {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.existing-file-preview {
    position: relative;
    width: 150px;
    height: 150px;
    margin-bottom: 10px;
}

.existing-file-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.file-input-wrapper {
    margin-top: 10px;
}

/* 결과 페이지 전용 스타일 */
.info-section {
    margin-bottom: 30px;
}

.info-group {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.info-row {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    min-width: 80px;
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.info-value {
    flex: 1;
    color: #212529;
    font-size: 14px;
    word-break: break-all;
}

.photos-section {
    margin-bottom: 30px;
}

.photos-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.photo-item {
    position: relative;
    padding-top: 100%;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
}

.photo-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.no-photos {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 14px;
}

/* 이미지 모달 */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 100%;
    max-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
}

.close-modal:hover {
    color: #ccc;
}

/* 로딩 오버레이 */
#loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
}

.loading-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

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

.loading-text {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
}
