﻿:root {
		--navy: #0B1A33;
		--navy2: #132A4D;
		--gold: #C9A24B;
		--gold-light: #E8CD8A;
		--red: #C0272D;
		--ink: #1A1F2B;
		--paper: #F7F8FC;
		--blue-tint: #EEF3FA;
		--white: #FFFFFF;
		--gray: #6B7280;
		--line: #E4E8F0;
		--cream: #EDE3D0;
		--cream2: #F7F2E7;
		--cream-dark: #D9CDB2;
		--iris1: #F3CBD8;
		--iris2: #BFE0E8;
		--iris3: #DCCBEA;
}
/* ===== FORM ===== */
.form-panel {
		max-width: 640px;
		margin: 3rem auto;
		background: #fff;
		border: 1px solid var(--line);
		border-radius: 20px;
		padding: 36px;
		-webkit-box-shadow: 0 16px 40px rgba(20, 30, 60, 0.1);
		box-shadow: 0 16px 40px rgba(20, 30, 60, 0.1);
}
.form-panel.none {
		max-width: 100%;
		margin: 0 auto;
		background-color: transparent;
		border: 0;
		border-radius: 0;
		padding: 2rem;
		-webkit-box-shadow: none;
		box-shadow: none;
}
.form-panel h3 {
		color: var(--navy);
		font-weight: bold;
		font-size: 20px;
		margin-bottom: 22px;
		text-align: center;
}
.form-panel h3 .icon {
		position: relative;
		top: -3px;
}
.form-panel h3 .icon > img {
		width: 25px;
}
.f-group {
		margin-bottom: 20px;
}
.f-label {
		font-weight: 700;
		font-size: 14.5px;
		color: var(--navy);
		margin-bottom: 8px;
		display: block;
}
.f-label .req {
		color: var(--red);
		margin-left: 2px;
}
.f-input, .f-select {
		width: 100%;
		border: 1px solid var(--line);
		border-radius: 9px;
		padding: 12px 20px 12px 14px;
		font-size: 14.5px;
		background: #fafbfd;
		color: var(--ink);
}
.f-select {
		-moz-appearance: none;
		appearance: none;
		-webkit-appearance: none;
		background-color: #fafbfd;
		background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
		background-repeat: no-repeat;
		background-position: right 16px center;
		background-size: 12px 8px;
		padding-right: 40px;
}
.f-input:focus, .f-select:focus {
		outline: 2px solid var(--gold);
		border-color: var(--gold);
}
.f-row {
		display: -ms-grid;
		display: grid;
		-ms-grid-columns: 1fr 12px 1fr;
		grid-template-columns: 1fr 1fr;
		gap: 12px;
}
.f-note {
		font-size: 12px;
		color: var(--gray);
		margin-top: 10px;
		line-height: 1.6;
}
.f-note.warn {
		color: var(--red);
}
.f-inline {
		display: -webkit-box;
		display: -ms-flexbox;
		display: flex;
		gap: 10px;
		margin-bottom: .5rem;
}
.f-inline .f-input {
		-webkit-box-flex: 1;
		-ms-flex: 1;
		flex: 1;
}
.remark-text {
		font-size: 13px;
}
.btn-otp {
		-ms-flex-negative: 0;
		flex-shrink: 0;
		background: var(--navy);
		color: #fff;
		font-weight: bold;
		font-size: 13px;
		padding: 0 .5rem;
		border-radius: 9px;
		white-space: nowrap;
}
.btn-otp.is-sent {
		background: #8A93A6;
}
.upload-box {
		border: 1.5px dashed var(--line);
		border-radius: 12px;
		padding: 20px;
		text-align: center;
		background: #fafbfd;
}
.upload-box .btn-file {
		background: var(--gold);
		color: var(--navy);
		font-weight: 800;
		font-size: 13.5px;
		padding: 9px 20px;
		border-radius: 8px;
		display: inline-block;
		margin-bottom: 8px;
}
.upload-filename {
		font-size: 13px;
		color: var(--navy);
		font-weight: 700;
		margin-top: 8px;
		display: none;
}
.upload-filename.show {
		display: block;
}
.captcha-row {
		display: -webkit-box;
		display: -ms-flexbox;
		display: flex;
		gap: 10px;
		-webkit-box-align: center;
		-ms-flex-align: center;
		align-items: center;
}
.captcha-img {
		width: 120px;
		height: 46px;
		border-radius: 8px;
		background: repeating-linear-gradient(45deg, #132A4D, #132A4D 6px, #1C3C6B 6px, #1C3C6B 12px);
		color: #fff;
		display: -webkit-box;
		display: -ms-flexbox;
		display: flex;
		-webkit-box-align: center;
		-ms-flex-align: center;
		align-items: center;
		-webkit-box-pack: center;
		-ms-flex-pack: center;
		justify-content: center;
		font-weight: bold;
		letter-spacing: 4px;
		font-size: 15px;
		-ms-flex-negative: 0;
		flex-shrink: 0;
}
.f-check {
		display: -webkit-box;
		display: -ms-flexbox;
		display: flex;
		-webkit-box-align: start;
		-ms-flex-align: start;
		align-items: flex-start;
		gap: 9px;
		margin-bottom: 14px;
		font-size: 13.5px;
		color: #3A455C;
}
.f-check input {
		margin-top: 5px;
		-ms-flex-negative: 0;
		flex-shrink: 0;
}
.form-submit {
		width: 100%;
		background: var(--red);
		color: #fff;
		font-weight: bold;
		font-size: 16.5px;
		padding: 15px;
		border-radius: 10px;
		margin-top: 8px;
}
.form-msg {
		margin-top: 18px;
		border-radius: 12px;
		padding: 16px 18px;
		font-size: 14px;
		font-weight: 700;
		display: none;
}
.form-msg.show {
		display: block;
}
.form-msg.success {
		background: #E9F7EF;
		color: #1E8E4A;
}
.has-sapce {
		display: -webkit-box;
		display: -ms-flexbox;
		display: flex;
		-webkit-box-align: start;
		-ms-flex-align: start;
		align-items: flex-start;
		gap: 9px;
}
.form-panel {
		width: min(100%, 640px);
		margin: 3rem auto 2rem auto;
}
.f-input, .f-select, .btn-otp {
		min-height: 45px;
		min-width: 120px;
}
.f-inline {
		-webkit-box-align: stretch;
		    -ms-flex-align: stretch;
		        align-items: stretch;
}
.f-inline .f-input {
		min-width: 0;
}
.btn-otp {
		border: 0;
		cursor: pointer;
}
.otp-row {
		margin-top: 10px;
}
.f-note.status {}
.upload-box.is-dragging {
		border-color: #32629b;
		background: #eef4fc;
}
.btn-file {
		cursor: pointer;
}
.upload-filename {
		overflow-wrap: anywhere;
}
.preview-box {
		margin-top: 12px;
		border: 1px solid var(--line, #e4e8f0);
		border-radius: 10px;
		background: #fff;
		overflow: hidden;
}
.preview-head {
		display: -webkit-box;
		display: -ms-flexbox;
		display: flex;
		-webkit-box-pack: justify;
		    -ms-flex-pack: justify;
		        justify-content: space-between;
		-webkit-box-align: center;
		    -ms-flex-align: center;
		        align-items: center;
		padding: 10px 14px;
		border-bottom: 1px solid var(--line, #e4e8f0);
		font-size: 13px;
		font-weight: 700;
}
.preview-canvas {
		min-height: 190px;
		display: -webkit-box;
		display: -ms-flexbox;
		display: flex;
		-webkit-box-align: center;
		    -ms-flex-align: center;
		        align-items: center;
		-webkit-box-pack: center;
		    -ms-flex-pack: center;
		        justify-content: center;
		padding: 14px;
		color: #6b7280;
		font-size: 12px;
		text-align: center;
}
.preview-canvas img {
		display: block;
		max-width: 100%;
		max-height: 380px;
		-o-object-fit: contain;
		   object-fit: contain;
}
.preview-remove {
		border: 0;
		background: none;
		color: var(--red, #c0272d);
		cursor: pointer;
		text-decoration: underline;
}
.vip-result-backdrop[hidden] {
		display: none !important;
}
.staff-row {
		display: -webkit-box;
		display: -ms-flexbox;
		display: flex;
		-ms-flex-wrap: wrap;
		    flex-wrap: wrap;
		-webkit-box-align: center;
		    -ms-flex-align: center;
		        align-items: center;
		gap: 8px;
		margin: 14px 0;
}
.staff-row .f-check {
		margin: 0;
}
.staff-row .f-input {
		width: min(100%, 250px);
}
.demo-actions {
		display: -webkit-box;
		display: -ms-flexbox;
		display: flex;
		-ms-flex-wrap: wrap;
		    flex-wrap: wrap;
		-webkit-box-align: center;
		    -ms-flex-align: center;
		        align-items: center;
		gap: 8px;
		margin-top: 22px;
		padding-top: 14px;
		border-top: 1px solid var(--line, #e4e8f0);
		color: #6b7280;
		font-size: 12px;
}
.demo-actions button {
		padding: 7px 6px;
		border: 1px solid #cdd4df;
		border-radius: 6px;
		background: #fff;
		cursor: pointer;
}
.form-msg.show {
		background: #fff2d4;
		color: #503d20;
}
.vip-result-backdrop {
		position: fixed;
		inset: 0;
		z-index: 1200;
		display: -ms-grid;
		display: grid;
		place-items: center;
		padding: 18px;
		background: rgba(8, 18, 37, .66);
}
.vip-result-dialog {
		position: relative;
		width: min(100%, 560px);
		padding: 36px 30px;
		border-radius: 12px;
		background: #fff2ca;
		color: #1a1f2b;
		text-align: center;
		-webkit-box-shadow: 0 15px 50px #0004;
		        box-shadow: 0 15px 50px #0004;
}
.vip-result-dialog h2 {
		margin: 0 0 14px;
		font-size: 20px;
}
.vip-result-dialog p {
		margin: 0;
		line-height: 1.85;
}
.vip-result-close {
		position: absolute;
		top: 8px;
		right: 13px;
		border: 0;
		background: transparent;
		font-size: 26px;
		cursor: pointer;
}
@media (max-width: 767.98px) {
		.form-panel {
				width: min(100%, 640px);
		}
		.f-inline {
				-webkit-box-orient: vertical;
				-webkit-box-direction: normal;
				    -ms-flex-direction: column;
				        flex-direction: column;
		}
		.btn-otp {
				width: 100%;
		}
}
/* 平板與手機：767.98px 以下 */
@media (max-width: 767.98px) {
		.form-panel, .form-panel *, .form-panel *::before, .form-panel *::after {
				-webkit-box-sizing: border-box;
				box-sizing: border-box;
		}
		.form-panel {
				width: calc(100% - 32px);
				max-width: 100%;
				margin: 24px auto;
				padding: 24px;
				border-radius: 16px;
		}
		.form-panel h3 {
				font-size: 19px;
				margin-bottom: 20px;
		}
		.f-row {
				-ms-grid-columns: minmax(0, 1fr);
				grid-template-columns: minmax(0, 1fr);
				gap: 0;
		}
		.f-inline, .captcha-row {
				min-width: 0;
				-webkit-box-orient: vertical;
				-webkit-box-direction: normal;
				-ms-flex-direction: column;
				flex-direction: column;
		}
		.btn-otp {
				width: 100%;
				min-height: 44px;
		}
		.f-input.sp {
				width: 100% !important;
				max-width: calc(100% - 20px) !important;
				margin-left: 20px !important;
		}
		.f-inline .f-input, .captcha-row .f-input {
				min-width: 0;
		}
		.upload-box {
				padding: 18px 14px;
		}
}
/* 小尺寸手機 */
@media (max-width: 576px) {
		.staff-row .f-input.sp {
				margin-left: 1.25rem;
				max-width: calc(100% - 1.5rem);
				width: 100%;
		}
		.form-panel {
				width: 100%;
				margin: 3rem auto 2rem auto;
				padding: 20px;
		}
		.f-inline {
				-ms-flex-wrap: wrap;
				flex-wrap: wrap;
		}
		.f-inline .f-input {
				-webkit-box-flex: 1;
				-ms-flex: 1 1 100%;
				flex: 1 1 100%;
		}
		.btn-otp {
				width: 100%;
				min-height: 44px;
		}
		.captcha-row {
				-ms-flex-wrap: wrap;
				flex-wrap: wrap;
		}
		.captcha-row .f-input {
				-webkit-box-flex: 1;
				-ms-flex: 1 1 100%;
				flex: 1 1 100%;
		}
}