/* ===== g-section common  ===== */
.g-section {
	width: 700px;
	margin: 0 auto;
	border-bottom: 1px solid #ddd;
	padding: 0 60px;
}

.g-section-title {
	width: 1100px;
	margin: 100px auto 0;
	padding-bottom: 50px;
	text-align: center;
	border-bottom: 1px solid #ddd;

	font-size: 2em;
	font-weight: 700;
}


.RepresentativeImg { display: flex !important; justify-content: center; align-items: center; min-height: 240px; position: relative; }
.RepresentativeImg img[src=""] { display: none !important; }
.RepresentativeImg img[src=""] + .no-img-text { display: flex !important; }
.RepresentativeImg img[src=""] ~ button { display: none !important; }
.no-img-text { display: none; text-align: center; color: #999; background: #f5f5f5; width: 100%; box-sizing: border-box; border-radius: 4px; }

.g-form-wrap .uploadWrap {
	width: 100%;
	border: 1px solid #ededed;
	padding: 20px 0;
	text-align: center;
	position: relative;
	background: #fafafa;
	border-radius: 6px;
	display: flex !important;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 240px;
}
.g-form-wrap .uploadWrap img {
	max-width: 300px;
	max-height: 200px;
	object-fit: contain;
}
.g-form-wrap .uploadWrap img[src=""] {
	display: none !important;
}
.g-form-wrap .uploadWrap img[src=""] + .no-img-text {
	display: flex !important;
}
.g-form-wrap .uploadWrap .no-img-text {
	display: none;
	align-items: center;
	justify-content: center;
	width: 100%;
	flex: 1;
	background: #f7fafc;
	border-radius: 4px;
	padding: 0;
	color: #a0aec0;
	font-size: 0.95rem;
	box-sizing: border-box;
}

/* gf-row: gf-default/detail/user/settlement 공통 row */
.g-form-wrap .gf-row {
    display: flex;
    flex-direction: column;
    padding: 50px 0;
    border-top: 1px solid #f0f0f0;
}

.g-form-wrap .gf-row:first-child {
    border-top: none;
    padding-top: 0;
}

.g-form-wrap .gf-row.fw {
    flex-wrap: wrap;
}

/* infoBox: ul 안 li 노트 스타일 */
.g-form-wrap .infoBox {
    list-style: none;
    margin-top: 16px;
    padding: 14px 16px;
    background: #fafafa;
    border-radius: 0 6px 6px 0;
    font-size: 0.875rem;
    color: #666;
    line-height: 1.7;
}

.g-form-wrap .infoBox h5 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #444;
    margin-bottom: 6px;
}

/* 기존 cwwInfo 간격 규칙 유지 (다른 페이지 호환) */
.gf-default .cwwInfo + .cwwInfo {
    border-top: 1px solid #f0f0f0;
    margin-top: 0;
    padding-top: 50px;
}

.gf-default .writeLeft {
    width: 700px;
}
.gf-default .writeRight {
    width: 260px;
}

/* 입력 필드 공통 스타일 */
.g-section input[type="text"],
.g-section input[type="number"],
.g-section input[type="password"],
.g-section input[type="date"],
.g-section input[type="time"] {
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 0 14px;
    height: 48px;
    font-size: 0.95rem;
    color: #333;
    font-weight: 400;
    transition: border-color 0.2s ease;
    background: #fff;
}

.g-section input[type="text"]:hover,
.g-section input[type="number"]:hover,
.g-section input[type="date"]:hover,
.g-section input[type="time"]:hover {
    border-color: #aaa;
}

.g-section input[type="text"]:focus,
.g-section input[type="number"]:focus,
.g-section input[type="date"]:focus,
.g-section input[type="time"]:focus {
    border-color: #F86453;
    outline: none;
}

.g-section input::placeholder {
    color: #bbb;
}

.g-section input[readonly],
.g-section input[disabled] {
    background: #fafafa;
    color: #999;
    cursor: default;
    border-color: #ececec;
}

.g-section select {
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 0 14px;
    height: 48px;
    font-size: 0.95rem;
    color: #333;
    font-weight: 400;
    transition: border-color 0.2s ease;
    background: #fff;
    width: 100%;
}

.g-section select:hover { border-color: #aaa; }
.g-section select:focus { border-color: #F86453; outline: none; }

/* labelB (날짜 쌍 등) */
.g-section .labelB {
    display: flex;
    flex-direction: column;
}

.g-section .labelB input {
    width: 100%;
}

/* 라디오 공통 (span.icon 패턴 — gf-default, gf-detail 전체 적용) */
.g-form-wrap input[type="radio"] {
    display: none;
}

.g-form-wrap input[type="radio"] + label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    margin-right: 20px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #555;
    user-select: none;
    transition: color 0.2s;
}

.g-form-wrap input[type="radio"] + label .icon {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 2px solid #ccc;
    border-radius: 50%;
    background: #fff;
    position: relative;
    display: inline-block;
    flex-shrink: 0;
    transition: border-color 0.2s;
}

.g-form-wrap input[type="radio"]:checked + label {
    color: #F86453;
    font-weight: 600;
}

.g-form-wrap input[type="radio"]:checked + label .icon {
    border-color: #F86453;
    background: #F86453;
    box-shadow: inset 0 0 0 4px #fff;
}


/* ===== gf-default start ===== */
/* payment_check 체크박스 인디케이터 */
.gf-default .payment_check label.icon,
.gf-settlement .payment_check label.icon {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 2px solid #ccc;
    border-radius: 5px;
    background: #fff;
    position: relative;
    display: inline-block;
    flex-shrink: 0;
    vertical-align: middle;
    transition: background 0.2s, border-color 0.2s;
}

/* 체크박스: 결제수단 */
.gf-default .payment_check,
.gf-settlement .payment_check {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 14px 0;
}

.gf-default .payment_check input[type="checkbox"],
.gf-settlement .payment_check input[type="checkbox"] {
    display: none;
}

.gf-default .payment_check label.icon,
.gf-settlement .payment_check label.icon {
    cursor: pointer;
}

.gf-default .payment_check label.icon::after,
.gf-default .payment_check input[type="checkbox"][disabled]::after,
.gf-settlement .payment_check label.icon::after,
.gf-settlement .payment_check input[type="checkbox"][disabled]::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 5px;
    width: 5px;
    height: 9px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg) scale(0);
    transition: transform 0.15s ease;
}

.gf-default .payment_check input[type="checkbox"]:checked + label.icon,
.gf-settlement .payment_check input[type="checkbox"]:checked + label.icon {
    background: #F86453;
    border-color: #F86453;
}

.gf-default .payment_check input[type="checkbox"]:checked + label.icon::after,
.gf-settlement .payment_check input[type="checkbox"]:checked + label.icon::after {
    transform: rotate(45deg) scale(1);
}

.gf-default .payment_check > span,
.gf-settlement .payment_check > span {
    font-size: 0.875rem;
    color: #555;
    margin-right: 8px;
    vertical-align: middle;
}

/* ===== gf-steps: 단계 진행 표시 ===== */
.gf-steps {
    width: 1100px;
    margin: 0 auto;
    padding: 40px 0 50px;
}

.gf-steps-inner {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
}

.gf-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
    max-width: 180px;
    cursor: default;
}

.gf-step.completed,
.gf-step.active {
    cursor: pointer;
}

.gfs-circle {
	display: flex;
	flex-direction: column-reverse;
}

/* 단계 사이 연결선 */
.gf-step + .gf-step::before {
    content: '';
    position: absolute;
    top: 20px;
    right: calc(50% + 20px);
    left: calc(-50% + 20px);
    height: 2px;
    background: #e0e0e0;
    transition: background 0.3s ease;
}

.gf-step.completed + .gf-step::before {
    background: #F86453;
}

.gfs-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid #e0e0e0;
    background: #fff;
    color: #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95em;
    font-weight: 700;
    position: relative;
    z-index: 1;
    transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.gfs-check { display: none; }

.gf-step.active .gfs-circle {
    border-color: #F86453;
    background: #fff;
    color: #F86453;
}

.gf-step.completed .gfs-circle {
    border-color: #F86453;
    background: #F86453;
    color: #fff;
}

.gfs-label {
    margin-top: 10px;
    font-size: 0.82em;
    color: #bbb;
    font-weight: 500;
    transition: color 0.25s ease;
    white-space: nowrap;
}

.gf-step.active .gfs-label {
    color: #F86453;
    font-weight: 700;
}

.gf-step.completed .gfs-label {
    color: #888;
}

/* ===== gf-navigation ===== */
.gf-navigation {
    width: 700px;
    margin: 0 auto;
    padding: 36px 0 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn_prev,
.btn_next {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 52px;
    padding: 0 32px;
    border-radius: 10px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.btn_prev {
    border: 2px solid #ddd;
    background: #fff;
    color: #888;
}

.btn_prev:hover {
    border-color: #aaa;
    color: #333;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.btn_next {
    border: 2px solid #F86453;
    background: #F86453;
    color: #fff;
}

.btn_next:hover {
    background: #e5533f;
    border-color: #e5533f;
}

/* ===== gf-type: 무료/유료 선택 ===== */
.gf-type {
	height: 600px;

    display: flex;
    flex-direction: column;
	justify-content: center;
    align-items: center;
    padding: 70px 20px;
}

.gft-heading {
    font-size: 1.5em;
    font-weight: 700;
    color: #222;
    margin-bottom: 40px;
    text-align: center;
}

.gft-list {
    display: flex;
    gap: 24px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.gft-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 260px;
    padding: 44px 28px 36px;
    border: 2px solid #e0e0e0;
    border-radius: 16px;
    background: #fff;
    cursor: pointer;
    text-align: center;
    transition: border-color 0.2s ease;
    user-select: none;
}

.gft-item:hover {
    border-color: #F86453;
}

.gft-item.selected {
    border-color: #F86453;
    background: #fff8f7;
}

.gft-check {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #F86453;
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.7em;
}

.gft-item.selected .gft-check {
    display: flex;
}

.gft-icon {
    font-size: 3em;
    color: #d0d0d0;
    margin-bottom: 20px;
    transition: color 0.2s ease;
}

.gft-item:hover .gft-icon,
.gft-item.selected .gft-icon {
    color: #F86453;
}

.gft-name {
    display: block;
    font-size: 1.2em;
    font-weight: 700;
    color: #222;
    margin-bottom: 10px;
}

.gft-desc {
    font-size: 1em;
    color: #999;
    line-height: 1.7;
}

.gft-error {
    margin-top: 20px;
    font-size: 0.9em;
    color: #F86453;
    font-weight: 500;
}

@keyframes gft-shake {
    0%, 100% { transform: translateX(0); }
    20%       { transform: translateX(-8px); }
    40%       { transform: translateX(8px); }
    60%       { transform: translateX(-5px); }
    80%       { transform: translateX(5px); }
}

.gft-item.shake {
    animation: gft-shake 0.35s ease;
}

@media screen and (max-width: 600px) {
    .gft-list {
        flex-direction: column;
        gap: 16px;
    }
    .gft-item {
        width: 100%;
        max-width: 320px;
    }
}

/* ===== gf-default end ===== */
/* ===== gf-detail start ===== */
.gf-detail .checkbox_wrap {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

/* 새로운 유/무료 토글 디자인 */
.pay-toggle-group { display: flex; gap: 8px; align-items: center; }
.pay-toggle-group input[type="radio"] { display: none; }
.pay-toggle-group label {
	padding: 8px 24px;
	border-radius: 6px;
	background: #f0f0f0;
	color: #666;
	cursor: pointer;
	font-weight: 500;
	transition: all 0.2s ease;
	border: 1px solid transparent;
	margin: 0 !important;
}
.pay-toggle-group input[type="radio"]:checked + label {
	background: #f86453;
	color: #fff;
}
.pay-toggle-group label .icon {
	display: none !important;
}
.pay-toggle-group.free-locked .pay_radio_btn + label {
	opacity: 0.35;
	cursor: not-allowed;
	pointer-events: none;
}
.pay-toggle-group label span {
	font-weight: inherit;
	padding: 0;
	margin: 0;
}

/* 가격 설정 박스 디자인 */
.custom-wrap-box {
	background: #f8f9fa; border-radius: 8px; padding: 15px; margin-top: 15px; border: 1px solid #e9ecef; box-sizing: border-box;
}
.custom-wrap-box input[type="text"], .custom-wrap-box input[type="number"], .custom-wrap-box input[type="password"] {
	border: 1px solid #ddd; border-radius: 4px; padding: 10px; min-width: 0;
}

/* 공통 버튼 디자인 */
.btn-common-add {
	display: inline-flex; align-items: center; justify-content: center;
	padding: 8px 14px; background: #fff; color: #F86453; border: 1px solid #F86453;
	border-radius: 6px; font-weight: bold; cursor: pointer; transition: all 0.2s; font-size: 14px;
	white-space: nowrap;
}
.btn-common-add:hover { background: #F86453; color: #fff; }
.btn-common-add span { font-size: 16px; margin-right: 4px; font-weight: bold; }

.btn-common-del {
	display: inline-flex; align-items: center; justify-content: center;
	padding: 8px 14px; background: #fff; color: #666; border: 1px solid #ddd;
	border-radius: 6px; cursor: pointer; transition: all 0.2s; font-size: 14px;
	white-space: nowrap;
}
.btn-common-del:hover { background: #f0f0f0; }

/* 헬퍼 클래스 */
.dF-ac-gap15 { display: flex; align-items: center; gap: 10px; }
.flex-1 { flex: 1; min-width: 0; }

/* 옵션별 금액 설정 픽스 레이아웃 */
.fixed-btn-80 { width: 80px !important; flex: none !important; }
.w100P-btn { width: 100% !important; }
.dashed-divider { margin: 15px 0; border-top: 1px dashed #ddd; }

/* ===== Responsive Styles ===== */
@media screen and (max-width: 1100px) {
    .g-section-title, .gf-steps {
        width: 100%;
        padding-left: 20px;
        padding-right: 20px;
        box-sizing: border-box;
    }
}

@media screen and (max-width: 768px) {
    .g-section, .gf-navigation {
        width: 100%;
        padding: 0 20px;
        box-sizing: border-box;
    }
    
    .gf-navigation {
        padding: 30px 10px;
    }

    /* gf-steps responsiveness */
    .gfs-circle { 
        width: 32px; 
        height: 32px; 
        font-size: 0.85em; 
    }
    .gf-step { max-width: none; }
    .gf-step + .gf-step::before { 
        top: 15px; 
        right: calc(50% + 15px);
        left: calc(-50% + 15px);
    }
    .gfs-label { 
        font-size: 0.75em; 
        white-space: normal; 
        text-align: center; 
        margin-top: 6px;
    }

    /* Type list responsiveness */
    .gft-list {
        flex-direction: column;
        align-items: center;
    }
    .gft-item {
        width: 100%;
        max-width: 320px;
    }
    .gf-type {
        height: auto;
        padding: 40px 20px;
    }
    
    /* Layout adjustments */
    .g-form-wrap .gf-row { padding: 30px 0; }
    
    .gf-row > ul > li.dF {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    /* Input fields and wrappers */
    .g-section .labelB { width: 100%; }
    
    .dF.dF-ac-gap15 {
        flex-wrap: wrap;
    }
    
    .age_amount_wrap {
        flex-direction: column;
        align-items: stretch;
    }
    
    .age_amount_wrap .fixed-btn-80 {
        width: 100% !important;
    }
    
    .refund_amount_wrap {
        flex-direction: column;
        align-items: stretch;
    }
    
    .refund_amount_wrap .fixed-btn-80 {
        width: 100% !important;
    }

    /* Toggle buttons layout */
    .pay-toggle-group {
        width: 100%;
    }
    .pay-toggle-group label {
        flex: 1;
        text-align: center;
    }
}

/* ===== partners/contact.php ===== */
.partners-contact-intro {
    width: 700px;
    margin: 0 auto 10px;
    padding: 20px 0 30px;
    font-size: 0.9rem;
    color: #666;
    line-height: 2;
	text-align: center;
}

.contact-form-wrap .gf-contact {
    width: 700px;
    margin: 0 auto;
    padding: 0 60px;
    border-bottom: 1px solid #ddd;
    box-sizing: border-box;
}

/* 체크박스 스타일 (g_form 라디오와 통일) */
.contact-form-wrap input[type="checkbox"].contact-chk {
    display: none;
}

.contact-form-wrap input[type="checkbox"].contact-chk + .icon {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 2px solid #ccc;
    border-radius: 5px;
    background: #fff;
    position: relative;
    display: inline-block;
    flex-shrink: 0;
    vertical-align: middle;
    transition: background 0.2s, border-color 0.2s;
    cursor: pointer;
}

.contact-form-wrap input[type="checkbox"].contact-chk + .icon::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 5px;
    width: 5px;
    height: 9px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg) scale(0);
    transition: transform 0.15s ease;
}

.contact-form-wrap input[type="checkbox"].contact-chk:checked + .icon {
    background: #F86453;
    border-color: #F86453;
}

.contact-form-wrap input[type="checkbox"].contact-chk:checked + .icon::after {
    transform: rotate(45deg) scale(1);
}

@media screen and (max-width: 768px) {
    .partners-contact-intro,
    .contact-form-wrap .gf-contact {
        width: 100%;
        padding: 0 20px;
        box-sizing: border-box;
    }
}

/* ===== makersOpenAgree ===== */
.agree-form-wrap input[type="checkbox"].agree-chk { display: none; }

.agree-form-wrap input[type="checkbox"].agree-chk + .icon {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border: 2px solid #ccc;
    border-radius: 6px;
    background: #fff;
    position: relative;
    display: inline-block;
    flex-shrink: 0;
    vertical-align: middle;
    transition: background 0.2s, border-color 0.2s;
    cursor: pointer;
}

.agree-form-wrap input[type="checkbox"].agree-chk + .icon::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 6px;
    width: 5px;
    height: 9px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg) scale(0);
    transition: transform 0.15s ease;
}

.agree-form-wrap input[type="checkbox"].agree-chk:checked + .icon {
    background: #F86453;
    border-color: #F86453;
}

.agree-form-wrap input[type="checkbox"].agree-chk:checked + .icon::after {
    transform: rotate(45deg) scale(1);
}

/* 전체동의 행 */
.agree-all-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    background: #fff8f7;
    border: 2px solid #F86453;
    border-radius: 10px;
    font-size: 1.05em;
    font-weight: 700;
    color: #222;
    cursor: pointer;
}

/* 각 약관 행 헤더 */
.agree-row-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.agree-row-header .agree-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 6px 14px;
    border: 1px solid #F86453;
    border-radius: 20px;
    color: #F86453;
    font-size: 0.88em;
    font-weight: 600;
    flex-shrink: 0;
    transition: background 0.15s, color 0.15s;
}

.agree-row-header .agree-label:hover {
    background: #F86453;
    color: #fff;
}

.agree-form-wrap input[type="checkbox"].agree-chk:checked ~ label.agree-label,
.agree-row-header input.agree-chk:checked + label.agree-label {
    background: #F86453;
    color: #fff;
}

/* 약관 내용 박스 */
.agree-content-box {
    max-height: 200px;
    overflow-y: scroll;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 16px;
    background: #fff;
    font-size: 0.88rem;
    color: #555;
    line-height: 1.7;
}

.agree-content-box h5 { margin: 10px 0 4px; font-size: 0.9em; color: #333; }
.agree-content-box p { margin: 0 0 8px; }
.agree-content-box table { border-top: 2px solid #ddd; width: 100%; border-collapse: collapse; margin-top: 8px; }
.agree-content-box table td,
.agree-content-box table th { text-align: left; border: 1px solid #e0e0e0; padding: 8px 10px; font-size: 0.87em; }
.agree-content-box table td:first-child { width: 22%; color: #555; background: #fafafa; }
.agree-content-box table th { background: #f5f5f5; font-weight: 600; color: #444; }

@media screen and (max-width: 768px) {
    .agree-row-header { flex-direction: column; align-items: flex-start; gap: 10px; }
    .agree-all-row { font-size: 0.95em; }
}

.requiredT::after {
    content: " *";
    color: #ff3a3a !important;
    font-weight: bold;
    display: inline-block;
    margin-left: 2px;
}
