/* =====================================================================
 * 育欣無卡分期送件表單 — 文青 / 暖米色質感
 * 配色取自參考圖：奶油紙感、暖墨、香檳金、炭灰
 * ===================================================================== */

.ncf-shell {
	--ncf-bg: #f6f2eb;
	--ncf-surface: #ffffff;
	--ncf-surface-2: #fbf8f2;
	--ncf-ink: #3a352e;
	--ncf-ink-soft: #6b6358;
	--ncf-taupe: #a8a29e;
	--ncf-gold: #c2a06b;
	--ncf-gold-deep: #a8895a;
	--ncf-charcoal: #3c3a37;
	--ncf-line: #e7e0d5;
	--ncf-line-soft: #efe9df;
	--ncf-danger: #b4583f;
	--ncf-ok: #7d8a6a;

	--ncf-radius: 16px;
	--ncf-radius-sm: 11px;
	--ncf-shadow: 0 1px 2px rgba(58, 53, 46, .04), 0 18px 50px -28px rgba(58, 53, 46, .28);
	--ncf-serif: "Noto Serif TC", "Songti TC", "Source Han Serif TC", serif;
	--ncf-latin: "Cormorant Garamond", Georgia, serif;
	--ncf-sans: "Noto Sans TC", -apple-system, "PingFang TC", "Microsoft JhengHei", sans-serif;

	box-sizing: border-box;
	max-width: 760px;
	margin: 0 auto;
	padding: clamp(28px, 5vw, 52px) clamp(16px, 4vw, 30px) 60px;
	background:
		radial-gradient(120% 60% at 50% 0%, #fbf8f2 0%, var(--ncf-bg) 60%);
	color: var(--ncf-ink);
	font-family: var(--ncf-sans);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

.ncf-shell *,
.ncf-shell *::before,
.ncf-shell *::after {
	box-sizing: border-box;
}

/* ---------- Hero ---------- */
.ncf-hero {
	text-align: center;
	margin-bottom: clamp(28px, 5vw, 44px);
}

.ncf-eyebrow {
	font-family: var(--ncf-latin);
	font-size: 13px;
	letter-spacing: .42em;
	text-indent: .42em;
	color: var(--ncf-gold-deep);
	text-transform: uppercase;
}

.ncf-crown {
	width: 34px;
	height: 34px;
	margin: 14px auto 6px;
	color: var(--ncf-gold);
}
.ncf-crown svg { width: 100%; height: 100%; display: block; }

.ncf-hero-title {
	font-family: var(--ncf-serif);
	font-weight: 600;
	font-size: clamp(28px, 6vw, 40px);
	letter-spacing: .14em;
	text-indent: .14em;
	color: var(--ncf-ink);
	margin: 4px 0 0;
	line-height: 1.25;
}

.ncf-rule {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin: 18px auto 14px;
	max-width: 220px;
}
.ncf-rule span {
	height: 1px;
	flex: 1;
	background: linear-gradient(90deg, transparent, var(--ncf-gold) 60%, var(--ncf-gold));
}
.ncf-rule span:last-child {
	background: linear-gradient(270deg, transparent, var(--ncf-gold) 60%, var(--ncf-gold));
}
.ncf-rule i {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--ncf-gold);
	transform: rotate(45deg);
}

.ncf-hero-sub {
	color: var(--ncf-ink-soft);
	font-size: 15px;
	margin: 0 auto;
	max-width: 32em;
	line-height: 1.85;
}

/* ---------- Sections ---------- */
.ncf-section {
	border: 1px solid var(--ncf-line);
	background: var(--ncf-surface);
	border-radius: var(--ncf-radius);
	box-shadow: var(--ncf-shadow);
	padding: clamp(20px, 4vw, 30px);
	margin: 0 0 20px;
}

.ncf-section-head {
	display: flex;
	align-items: baseline;
	gap: 14px;
	padding: 0;
	margin-bottom: 22px;
	width: 100%;
	float: none;
}

.ncf-section-step {
	font-family: var(--ncf-latin);
	font-size: 26px;
	font-weight: 600;
	color: var(--ncf-gold);
	line-height: 1;
	min-width: 36px;
}

.ncf-section-text { display: flex; flex-direction: column; gap: 3px; }

.ncf-section-title {
	font-family: var(--ncf-serif);
	font-weight: 600;
	font-size: 19px;
	letter-spacing: .08em;
	color: var(--ncf-ink);
}
.ncf-section-sub {
	font-size: 13px;
	color: var(--ncf-taupe);
	letter-spacing: .02em;
}

/* ---------- Grid + Fields ---------- */
.ncf-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px 20px;
}
.ncf-grid-files { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.ncf-field { display: flex; flex-direction: column; min-width: 0; }
.ncf-field-full { grid-column: 1 / -1; }

.ncf-label {
	font-size: 13.5px;
	font-weight: 500;
	letter-spacing: .04em;
	color: var(--ncf-ink-soft);
	margin-bottom: 7px;
}
.ncf-req { color: var(--ncf-gold-deep); font-style: normal; }

.ncf-input {
	font-family: var(--ncf-sans);
	font-size: 16px;
	color: var(--ncf-ink);
	background: var(--ncf-surface-2);
	border: 1px solid var(--ncf-line);
	border-radius: var(--ncf-radius-sm);
	padding: 13px 15px;
	width: 100%;
	transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
	appearance: none;
}
.ncf-input::placeholder { color: #c3bcb1; }
.ncf-input:hover { border-color: #d8cebd; }
.ncf-input:focus {
	outline: none;
	background: var(--ncf-surface);
	border-color: var(--ncf-gold);
	box-shadow: 0 0 0 4px rgba(194, 160, 107, .14);
}
.ncf-uppercase { text-transform: uppercase; letter-spacing: .08em; }
input.ncf-input[type="date"] { min-height: 49px; }

.ncf-input.is-invalid {
	border-color: var(--ncf-danger);
	background: #fbf3f0;
}

.ncf-error {
	display: none;
	font-size: 12.5px;
	color: var(--ncf-danger);
	margin-top: 6px;
	letter-spacing: .02em;
}
.ncf-error.is-show { display: block; }

/* ---------- Radio (是否保密) ---------- */
.ncf-radio-group { display: flex; gap: 10px; }
.ncf-radio {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	padding: 12px 10px;
	border: 1px solid var(--ncf-line);
	border-radius: var(--ncf-radius-sm);
	background: var(--ncf-surface-2);
	cursor: pointer;
	font-size: 14.5px;
	color: var(--ncf-ink-soft);
	transition: all .18s ease;
	user-select: none;
}
.ncf-radio input { position: absolute; opacity: 0; pointer-events: none; }
.ncf-radio:hover { border-color: #d8cebd; }
.ncf-radio:has(input:checked) {
	border-color: var(--ncf-gold);
	background: #fff;
	color: var(--ncf-ink);
	box-shadow: 0 0 0 3px rgba(194, 160, 107, .14);
}
.ncf-radio:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(194, 160, 107, .3); }

/* ---------- Contact sub-card ---------- */
.ncf-subcard {
	border: 1px dashed var(--ncf-line);
	border-radius: var(--ncf-radius-sm);
	padding: 18px clamp(14px, 3vw, 22px) 20px;
	background: linear-gradient(180deg, #fdfbf7, #fbf8f2);
}
.ncf-subcard + .ncf-subcard { margin-top: 16px; }
.ncf-subcard-title {
	display: flex;
	align-items: center;
	gap: 9px;
	font-family: var(--ncf-serif);
	font-size: 15.5px;
	font-weight: 600;
	letter-spacing: .06em;
	color: var(--ncf-ink);
	margin-bottom: 16px;
}
.ncf-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--ncf-gold);
	color: #fff;
	font-family: var(--ncf-latin);
	font-size: 14px;
	font-weight: 600;
}

/* ---------- File upload ---------- */
.ncf-file { display: flex; flex-direction: column; }
.ncf-dropzone {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	gap: 6px;
	min-height: 132px;
	padding: 20px;
	border: 1.5px dashed #d8cebd;
	border-radius: var(--ncf-radius-sm);
	background: var(--ncf-surface-2);
	cursor: pointer;
	transition: all .2s ease;
}
.ncf-dropzone:hover,
.ncf-dropzone.is-drag {
	border-color: var(--ncf-gold);
	background: #fff;
}
.ncf-dropzone-icon { width: 30px; height: 30px; color: var(--ncf-gold-deep); }
.ncf-dropzone-icon svg { width: 100%; height: 100%; }
.ncf-dropzone-text { font-size: 14.5px; color: var(--ncf-ink); font-weight: 500; }
.ncf-dropzone-hint { font-size: 12px; color: var(--ncf-taupe); }
.ncf-file-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }

.ncf-previews { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.ncf-preview {
	position: relative;
	width: 84px;
	height: 84px;
	border-radius: 10px;
	overflow: hidden;
	border: 1px solid var(--ncf-line);
	background: #fff;
}
.ncf-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ncf-preview-file {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 100%;
	font-size: 11px;
	color: var(--ncf-ink-soft);
	gap: 4px;
	padding: 6px;
	text-align: center;
}
.ncf-preview-file b { font-family: var(--ncf-latin); font-size: 15px; color: var(--ncf-gold-deep); }
.ncf-preview-remove {
	position: absolute;
	top: 4px;
	right: 4px;
	width: 22px;
	height: 22px;
	border: none;
	border-radius: 50%;
	background: rgba(60, 58, 55, .82);
	color: #fff;
	font-size: 14px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
}
.ncf-preview-remove:hover { background: var(--ncf-danger); }

/* ---------- Footer / submit ---------- */
.ncf-foot { margin-top: 26px; text-align: center; }
.ncf-privacy {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	justify-content: center;
	font-size: 12.5px;
	color: var(--ncf-taupe);
	line-height: 1.7;
	max-width: 34em;
	margin: 0 auto 20px;
	text-align: left;
}
.ncf-privacy svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 2px; color: var(--ncf-gold-deep); }

.ncf-alert {
	display: none;
	margin: 0 auto 16px;
	max-width: 30em;
	padding: 12px 16px;
	border-radius: var(--ncf-radius-sm);
	background: #fbf3f0;
	border: 1px solid #e8c8bd;
	color: var(--ncf-danger);
	font-size: 14px;
}
.ncf-alert.is-show { display: block; }

.ncf-submit {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-width: 240px;
	padding: 17px 40px;
	border: none;
	border-radius: 999px;
	background: var(--ncf-charcoal);
	color: #f6f2eb;
	font-family: var(--ncf-sans);
	font-size: 16px;
	font-weight: 500;
	letter-spacing: .14em;
	text-indent: .14em;
	cursor: pointer;
	transition: transform .18s ease, box-shadow .25s ease, background .25s ease;
	box-shadow: 0 14px 30px -14px rgba(60, 58, 55, .65);
}
.ncf-submit:hover { background: #2c2a28; transform: translateY(-1px); box-shadow: 0 18px 34px -14px rgba(60, 58, 55, .7); }
.ncf-submit:active { transform: translateY(0); }
.ncf-submit:focus-visible { outline: 2px solid var(--ncf-gold); outline-offset: 3px; }
.ncf-submit-arrow { transition: transform .2s ease; }
.ncf-submit:hover .ncf-submit-arrow { transform: translateX(4px); }

.ncf-spinner {
	display: none;
	width: 17px;
	height: 17px;
	border: 2px solid rgba(246, 242, 235, .35);
	border-top-color: #f6f2eb;
	border-radius: 50%;
	animation: ncf-spin .7s linear infinite;
}
.ncf-submit.is-loading { pointer-events: none; opacity: .9; }
.ncf-submit.is-loading .ncf-submit-arrow { display: none; }
.ncf-submit.is-loading .ncf-spinner { display: inline-block; }
@keyframes ncf-spin { to { transform: rotate(360deg); } }

/* ---------- Success ---------- */
.ncf-success {
	text-align: center;
	padding: clamp(40px, 8vw, 70px) 24px;
	animation: ncf-fade .5s ease both;
}
.ncf-success-icon {
	width: 64px;
	height: 64px;
	margin: 0 auto 22px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	background: var(--ncf-gold);
	box-shadow: 0 12px 30px -10px rgba(194, 160, 107, .7);
}
.ncf-success-icon svg { width: 30px; height: 30px; }
.ncf-success-title {
	font-family: var(--ncf-serif);
	font-size: 25px;
	font-weight: 600;
	letter-spacing: .12em;
	color: var(--ncf-ink);
	margin: 0 0 12px;
}
.ncf-success-msg { color: var(--ncf-ink-soft); font-size: 15px; max-width: 26em; margin: 0 auto; line-height: 1.85; }
@keyframes ncf-fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* honeypot */
.ncf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Responsive ---------- */
@media (max-width: 560px) {
	.ncf-grid,
	.ncf-grid-files { grid-template-columns: 1fr; }
	.ncf-submit { width: 100%; }
	.ncf-section-step { font-size: 22px; min-width: 30px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	.ncf-shell *,
	.ncf-shell *::before,
	.ncf-shell *::after {
		animation-duration: .001ms !important;
		transition-duration: .001ms !important;
	}
}
