* {
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #fff;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
}

/* 로고 섹션 - 전체 너비 */
.logo-section {
    text-align: center;
    padding: 40px 0 13px 0;
    border-bottom: 1px solid #161616;
    margin-bottom: 40px;
    width: 100%;
}

.logo-section .logo-image {
    height: 60px;
    margin: 0 0 10px 0;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.logo-section h1 {
    font-size: 16px;
    font-weight: 400;
    color: #161616;
    letter-spacing: 0.5px;
    margin: 0;
}

.form-container {
    background-color: #fff;
    padding: 0 40px;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
}

/* 미디어 쿼리 */
.mobile-br {
    display: none;
}

.mobile-indent {
    margin-left: 0;
}

@media (max-width: 768px) {
    .mobile-br {
        display: inline;
    }

    .mobile-indent {
        margin-left: 12px;
    }

    .form-container {
        width: 100%;
        padding: 0 20px;
    }

    .logo-section .logo-image {
        height: 45px;
    }

    .logo-section h1 {
        font-size: 14px;
    }

    .logo-section {
        padding: 30px 0 10px 0;
        margin-bottom: 30px;
    }

    .form-section h2 {
        font-size: 14px;
    }

    .form-row input,
    .form-row select,
    .form-row textarea {
        font-size: 16px; /* iOS 자동 확대 방지 */
    }

    select, textarea {
        font-size: 16px; /* iOS 자동 확대 방지 */
    }

    .form-row-double {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .file-label {
        width: 100%;
    }

    .form-row.basic-input {
        max-width: 100%;
    }

    button {
        padding: 12px 30px;
        font-size: 14px;
    }

    .red-text {
        font-size: 12px;
    }

    .checkbox-group {
        flex-direction: column;
        gap: 15px;
    }

    .notice-list li {
        font-size: 12px;
    }

    .submit-wrapper {
        margin-top: 40px;
        padding-top: 20px;
    }
}

.form-container h1 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8rem;
    font-weight: 700;
}

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

.form-section h2 {
    margin-bottom: 10px;
    font-size: 15px;
    font-weight: 400;
    color: #161616;
}

.form-row {
    display: flex;
    position: relative;
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 15px;
}

.form-row label {
    font-weight: 500;
    font-size: 13px;
    color: #161616;
    margin-bottom: 8px;
}

.form-row.basic-input {
    max-width: 300px;
}

.form-row input,
.form-row select,
.form-row textarea {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid #161616;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 14px;
    font-family: 'Noto Sans KR', sans-serif;
    background: #fff;
    color: #161616;
    transition: border-color 0.2s;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    outline: none;
    border-color: #999;
}

.form-row select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
}

.form-row.basic-input {
    position: relative;
}

.form-row.basic-input select + i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #161616;
    font-size: 14px;
}

.form-row textarea {
    resize: none;
    min-height: 80px;
}

.form-row textarea::placeholder {
    white-space: pre-line;
}

.form-group {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1;
}

select, textarea {
    padding: 14px 15px;
    font-size: 14px;
    border: 1px solid #161616;
    border-radius: 8px;
}

select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

textarea {
    resize: none;
}

label {
    margin-bottom: 8px;
    font-size: 13px;
}

/* 체크박스 그룹 */
.checkbox-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.checkbox-container {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    position: relative;
}

.checkbox-container input[type="checkbox"] {
    display: none;
}

.checkmark {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 1px solid #ddd;
    background-color: #fff;
    border-radius: 3px;
    margin-right: 8px;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
    flex-shrink: 0;
}

.checkbox-container input[type="checkbox"]:checked + .checkmark {
    background-color: #000;
    border-color: #000;
}

.checkbox-container input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 5px;
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-container:hover .checkmark {
    border-color: #999;
}

.red-text {
    color: #999;
    font-size: 13px;
    margin-top: 6px;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.hint-circle {
    display: inline-block;
    width: 14px;
    height: 14px;
    line-height: 14px;
    text-align: center;
    border: 1px solid #999;
    border-radius: 50%;
    font-size: 10px;
    color: #999;
    margin-right: 4px;
    font-weight: bold;
}

.fa-info-circle,
.fa-circle-info {
    font-size: 12px !important;
    color: #999 !important;
}

/* 커스텀 info 아이콘 (배경 투명) */
.custom-info-icon {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 1px solid #999;
    border-radius: 50%;
    text-align: center;
    line-height: 11px;
    font-size: 7px;
    font-weight: bold;
    color: #999;
    font-style: normal;
    vertical-align: middle;
    margin-bottom: 2px;
}

/* 개별 사진 요청 표시 */
.individual-photo-request {
    display: block;
}

#photo-requests-container {
    display: block;
}

button {
    display: inline-block;
    padding: 12px 40px;
    font-size: 14px;
    font-weight: 400;
    color: #161616;
    background-color: #fff;
    border: 1px solid #161616;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    font-family: 'Noto Sans KR', sans-serif;
    transition: background-color 0.2s;
}

button:hover {
    background-color: #f9f9f9;
}

.file-label {
    display: inline-block;
    background-color: #fff;
    color: #161616;
    padding: 14px 15px;
    border: 1px solid #161616;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    text-align: center;
    transition: background-color 0.2s;
    width: 300px;
    box-sizing: border-box;
}

.file-label:hover {
    background-color: #f9f9f9;
}

#file-upload {
    display: none;
}

.file-list {
    margin-top: 15px;
    list-style: none;
    padding: 0;
    font-size: 12px;
}

.file-list li {
    margin-bottom: 5px;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.file-list li i {
    cursor: pointer;
    color: #999;
    margin-left: 10px;
}

.file-list li i:hover {
    color: #666;
}

.photo-request {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    background: #fafafa;
}

/* 유의사항 */
.notice-title {
    font-size: 13px;
    font-weight: 600;
    color: #161616;
    margin-top: 30px;
    margin-bottom: 12px;
}

.notice-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.notice-list li {
    font-size: 13px;
    color: #999;
    margin-bottom: 8px;
    line-height: 1.6;
    padding-left: 12px;
    position: relative;
}

.notice-list li::before {
    content: '○';
    position: absolute;
    left: 0;
    color: #999;
    font-size: 10px;
}

.notice-list .important {
    font-size: 13px;
    color: #161616;
    font-weight: 500;
}

/* loading-overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 15px;
    z-index: 1000;
    transition: opacity 0.3s ease;
    display: none;
}

.loading-overlay p {
    margin: 10px 0;
    text-align: center;
}

.loading-overlay .spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* icon box */
.icon-box {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #161616;
    margin: auto auto 40px;
    border-radius: 50%;
}

.icon-box i {
    color: white;
    font-size: 16px;
}

/* 2열 레이아웃 */
.form-row-double {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
}

.form-row-double .form-group {
    position: relative;
}

.form-row-double .form-group i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #161616;
    font-size: 14px;
}

/* submit wrapper */
.submit-wrapper {
    text-align: center;
    margin-top: 50px;
    padding-top: 30px;
}

.submit-notice {
    background: transparent;
    margin-bottom: 30px;
}

::placeholder {
    color: #bbb;
}
