﻿/* qrez-core.css : nicepage.css 대체용 경량 코어 스타일 */

/* 1. 기본 Reset */
*, *::before, *::after {
    box-sizing: border-box;
}

body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, figcaption, blockquote, dl, dd {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    color: #333;
    background-color: #fff;
}

ul, ol {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

button {
    cursor: pointer;
    background: transparent;
    border: none;
}

/* 2. Nicepage 호환 유틸리티 클래스 (기존 레이아웃 깨짐 방지 최소한의 코드) */
.u-clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* SVG 아이콘 처리: u-svg-content는 정의용이므로 숨기고, u-svg-link만 노출 */
.u-svg-content {
    width: 0;
    height: 0;
    position: absolute;
    visibility: hidden;
}

.u-svg-link {
    width: 100%;
    height: 100%;
    fill: currentColor;
    vertical-align: middle;
}

.u-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.2em;
    height: 1.2em;
    line-height: 1;
}

.u-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.u-accordion-link-icon {
    width: 1.2em;
    height: 1.2em;
    transition: transform 0.3s ease;
}

/* 아코디언 스타일 처리 */
.u-accordion {
    width: 100%;
}
.u-accordion-item {
    margin-bottom: 10px;
}
.u-accordion-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #f8f9fa;
    color: #333;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid #eee;
    transition: background-color 0.2s;
}
.u-accordion-link:hover {
    background-color: #e9ecef;
}
.u-accordion-pane {
    display: none; /* 기본적으로 숨김 */
    padding: 20px;
    background-color: #fff;
    border: 1px solid #eee;
    border-top: none;
    border-radius: 0 0 8px 8px;
    font-size: 14px;
    line-height: 1.6;
    color: #555;
}
/* nicepage.js가 활성화시킬 때 추가하는 클래스 대응 */
.u-accordion-active,
.u-accordion-pane.u-active,
.u-accordion-pane.active {
    display: block !important;
}

.u-sheet {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.u-align-center { text-align: center; }
.u-align-left { text-align: left; }
.u-align-right { text-align: right; }

.u-btn {
    display: inline-block;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    border: none;
}

.u-text-center { text-align: center; }

/* 3. 커스텀 공통 클래스 */
.txt-center { text-align: center; }
.txt-left { text-align: left; }
.txt-right { text-align: right; }
.w-100 { width: 100%; }
.d-flex { display: flex; }
.align-items-center { align-items: center; }
.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }

/* 4. 커스텀 폼 스타일 (Nicepage 대체) */
.custom-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 30px;
    max-width: 800px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
}
.custom-form .u-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}
.custom-form label {
    font-size: 14px;
    font-weight: 700;
    color: #444;
    margin-left: 4px;
}
.custom-form .u-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    color: #333;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    background-color: #fafafa;
    transition: all 0.3s ease;
}
.custom-form .u-input::placeholder {
    color: #aaa;
}
.custom-form .u-input:hover {
    border-color: #ccc;
}
.custom-form .u-input:focus {
    border-color: #4d9596;
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(77, 149, 150, 0.1);
    outline: none;
}
.custom-form .u-input[readonly], .custom-form .u-input[disabled] {
    background-color: #f1f3f5;
    color: #888;
    border-color: #e9ecef;
    cursor: not-allowed;
}
.custom-form .u-btn-1, .custom-form .u-btn-11 {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 14px 24px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    width: 100%;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
.custom-form .u-btn-1:hover, .custom-form .u-btn-11:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}
.custom-form .u-palette-1-base {
    background-color: #4d9596;
    color: #fff;
}
.custom-form .u-palette-1-base:hover {
    background-color: #3d7a7b;
}
.custom-form .u-palette-11-base {
    background-color: #333;
    color: #fff;
}
.custom-form .u-palette-11-base:hover {
    background-color: #222;
}
.custom-form .u-form-checkbox {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #eee;
}
.custom-form .u-form-checkbox label {
    margin: 0;
    cursor: pointer;
    font-weight: 600;
    color: #555;
}
.custom-form input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #4d9596;
    cursor: pointer;
}
