@charset "UTF-8";

/* ========================================================================= */
/* gc.css : 글로벌 캠페인 신청 페이지                                        */
/* global.css의 CSS 변수 / Pretendard 폰트를 그대로 이어받아 사용합니다.     */
/* (색상, radius, shadow 등은 --primary-color 등 global.css 변수 기준)       */
/* ========================================================================= */

body {
    background: var(--background-light);
}

.gc-container {
    max-width: 520px;
    margin: 0 auto;
    background: #ffffff;
    min-height: 100vh;
    box-shadow: var(--shadow-md);
}

/* ========================================================================= */
/* 대표이미지 */
/* ========================================================================= */

.gc-hero-img img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

/* ========================================================================= */
/* 타이틀 */
/* ========================================================================= */

.gc-title {
    padding: 24px 24px 12px;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.name-ko {
    display: block;
    font-size: 13px;
    font-weight: 400;
    color: var(--text-tertiary);
    margin-top: 6px;
}

/* ========================================================================= */
/* 캠페인 정보 박스 */
/* ========================================================================= */

.gc-info-box {
    margin: 0 24px 24px;
    background: var(--background-light);
    border-radius: var(--radius-md);
    padding: 18px 20px;
}

.gc-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 14px;
    border-bottom: 1px solid var(--border-color);
}

.gc-info-row:last-child { border-bottom: none; }

.gc-info-label {
    color: var(--text-secondary);
    font-weight: 600;
}

.gc-info-value {
    color: var(--primary-color);
    font-weight: 700;
    text-align: right;
}

/* ========================================================================= */
/* 상세 설명 */
/* ========================================================================= */

.gc-detail {
    padding: 0 24px 24px;
}

.gc-detail h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--text-primary);
}

.gc-detail-body {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.8;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.gc-detail-body img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: var(--radius-md);
    margin: 16px 0;
    display: block;
}

.gc-detail-body table {
    max-width: 100%;
    width: 100%;
    display: block;
    overflow-x: auto;
}

.gc-detail-wip {
    font-size: 13px;
    color: var(--text-tertiary);
    font-style: italic;
}

/* ========================================================================= */
/* 마감 안내 */
/* ========================================================================= */

.gc-closed-box {
    margin: 0 24px 24px;
    padding: 32px 20px;
    text-align: center;
    background: var(--background-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 15px;
}

/* ========================================================================= */
/* 신청 폼 */
/* ========================================================================= */

.gc-form-box {
    margin: 0 24px 24px;
    padding: 24px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.gc-form-box h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 20px;
}

.gc-form-row {
    margin-bottom: 16px;
}

.gc-form-row label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.gc-form-row .req {
    color: var(--primary-color);
}

.gc-form-row input,
.gc-form-row textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: inherit;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.gc-form-row input:focus,
.gc-form-row textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.gc-submit-btn {
    width: 100%;
    padding: 16px;
    margin-top: 8px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #ff8f6b 100%);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-md);
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.4);
    transition: all 0.3s ease;
}

.gc-submit-btn:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, #ff7a52 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.5);
}

.gc-submit-btn:active {
    transform: translateY(0);
}

/* ========================================================================= */
/* 선택입력 섹션 (필수 필드와 시각적으로 구분) */
/* ========================================================================= */

.gc-optional-section {
    margin: 8px 0 20px;
    padding: 16px 16px 4px;
    background: #fff9f0;
    border: 1px dashed #ffcf9e;
    border-radius: var(--radius-md);
}

.gc-optional-note {
    font-size: 13px;
    color: #a56a2c;
    margin: 0 0 16px;
    line-height: 1.5;
}

.gc-optional-section .gc-form-row label {
    font-weight: 500;
    color: var(--text-secondary);
}

.gc-date-range {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gc-date-range input {
    flex: 1;
}

.gc-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.gc-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    background: #ffffff;
    transition: all 0.2s ease;
}

.gc-checkbox:has(input:checked) {
    border-color: var(--primary-color);
    background: rgba(255, 107, 53, 0.08);
    color: var(--primary-color);
    font-weight: 700;
}

.gc-checkbox input {
    width: auto;
    accent-color: var(--primary-color);
}

/* ========================================================================= */
/* 반응형 */
/* ========================================================================= */

@media screen and (max-width: 480px) {
    .gc-title { padding: 20px 20px 10px; font-size: 18px; }
    .gc-info-box { margin: 0 20px 20px; }
    .gc-detail { padding: 0 20px 20px; }
    .gc-closed-box, .gc-form-box { margin: 0 20px 20px; }
}
/* 세금신고 라디오버튼 그룹 */
.gc-radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gc-radio-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-primary);
    cursor: pointer;
    background: #fff;
    transition: all 0.2s ease;
}

.gc-radio-item:has(input:checked) {
    border-color: var(--primary-color);
    background: rgba(255, 107, 53, 0.06);
    font-weight: 700;
}

.gc-radio-item input {
    width: auto;
    accent-color: var(--primary-color);
}