.qcs-widget {
	max-width: 390px;
	margin: 0 auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: #1a1a2e;
	box-sizing: border-box;
}

.qcs-widget *,
.qcs-widget *::before,
.qcs-widget *::after {
	box-sizing: border-box;
}

.qcs-logo {
	text-align: center;
	margin-bottom: 20px;
}

.qcs-logo img {
	max-width: 140px;
	height: auto;
}

/* ---------- shared card shell ---------- */
.qcs-card {
	background: #fff;
	border-radius: 20px;
	box-shadow: 0 10px 30px rgba(20, 30, 60, 0.08);
	padding: 28px 24px;
}

.qcs-card.qcs-form-card {
    align-items: center !important;
    display: flex !important;
    flex-direction: column !important;
}

/* ---------- phone entry form ---------- */
.qcs-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: rgba(var(--qcs-c1-rgb), 0.12);
	color: var(--qcs-c1);
	font-size: 13px;
	font-weight: 600;
	padding: 6px 14px;
	border-radius: 20px;
	margin-bottom: 18px;
}

.qcs-badge-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--qcs-c1);
	display: inline-block;
}

.qcs-amount-row {
	text-align: center;
	line-height: 1;
}

.qcs-amount {
	font-size: 52px;
	font-weight: 800;
	color: var(--qcs-c1);
}

.qcs-amount-off {
	font-size: 22px;
	font-weight: 700;
	color: #1a1a2e;
	margin-left: 4px;
}

.qcs-form-title {
	text-align: center;
	font-size: 20px;
	font-weight: 700;
	margin-top: 10px;
	color: #1a1a2e;
}

.qcs-form-subtitle {
	text-align: center;
	font-size: 15px;
	font-weight: 600;
	margin-top: 2px;
	color: #1a1a2e;
}

.qcs-divider {
	border: none;
	border-top: 1px solid #e6e8ee;
	margin: 20px 0;
}

.qcs-form-copy {
	text-align: center;
	color: #6b7280;
	font-size: 14px;
	margin: 0 0 24px;
	line-height: 1.5;
}

.qcs-label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #4b5563;
	margin-bottom: 6px;
}

.qcs-input-wrap {
	position: relative;
	border: 1px solid #d8dce6;
	border-radius: 10px;
	padding: 0 14px;
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 16px;
}

.qcs-phone-icon {
	width: 18px;
	height: 18px;
	color: #9aa3b2;
	flex-shrink: 0;
}

.qcs-input-wrap input {
	border: none;
	outline: none;
	flex: 1;
	padding: 14px 0;
	font-size: 16px;
	background: transparent;
	color: #1a1a2e;
}

.qcs-submit-btn {
	width: 100%;
	background: var(--qcs-c1);
	background: linear-gradient(90deg, var(--qcs-c1), var(--qcs-c2));
	color: #fff;
	border: none;
	border-radius: 10px;
	padding: 15px;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	box-shadow: 0 8px 20px rgba(var(--qcs-c1-rgb), 0.35);
}

.qcs-submit-btn:disabled {
	opacity: 0.7;
	cursor: default;
}

.qcs-arrow {
	font-size: 18px;
	line-height: 1;
}

.qcs-disclaimer {
	text-align: center;
	color: #9aa3b2;
	font-size: 12px;
	line-height: 1.6;
	margin-top: 18px;
	padding: 0 6px;
}

/* ---------- result screen ---------- */
.qcs-result-wrap {
	text-align: center;
}

.qcs-success-icon {
	width: 56px;
	height: 56px;
	border: 2.5px solid #22c58b;
	border-radius: 50%;
	color: #22c58b;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 16px;
}

.qcs-success-icon svg {
	width: 26px;
	height: 26px;
}

.qcs-result-heading {
	font-size: 21px;
	font-weight: 700;
	color: #1a1a2e;
}

.qcs-result-subtext {
	color: #8b93a3;
	font-size: 14px;
	margin-top: 6px;
	margin-bottom: 22px;
}

.qcs-coupon-card {
	background: #fff;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(20, 30, 60, 0.1);
	text-align: center;
}

.qcs-coupon-header {
	background: linear-gradient(135deg, var(--qcs-c1), var(--qcs-c2));
	color: #fff;
	padding: 26px 20px 22px;
}

.qcs-coupon-business {
	font-size: 12px;
	letter-spacing: 1.5px;
	opacity: 0.85;
	font-weight: 600;
	margin-bottom: 8px;
}

.qcs-coupon-amount {
	font-size: 34px;
	font-weight: 800;
	line-height: 1.1;
}

.qcs-coupon-title {
	font-size: 16px;
	font-weight: 700;
	margin-top: 6px;
}

.qcs-coupon-body {
	padding: 0 22px 22px;
}

.qcs-dashed-line {
	border-top: 2px dashed #d8dce6;
	position: relative;
	margin: 0 -22px 20px;
}

.qcs-dashed-line span {
	position: absolute;
	top: -11px;
	left: 50%;
	transform: translateX(-50%);
	background: #fff;
	padding: 0 8px;
	color: #b6bccb;
	font-size: 14px;
}

.qcs-barcode-wrap {
	margin-bottom: 18px;
}

.qcs-barcode {
	max-width: 100%;
	height: 70px;
	image-rendering: pixelated;
}

.qcs-coupon-code-text {
	font-family: "Courier New", monospace;
	letter-spacing: 2px;
	font-weight: 700;
	font-size: 14px;
	color: #1a1a2e;
	margin-top: 4px;
}

.qcs-redeem-box {
	background: rgba(var(--qcs-c1-rgb), 0.08);
	border-radius: 12px;
	padding: 14px;
	margin-bottom: 16px;
}

.qcs-redeem-text {
	color: var(--qcs-c1);
	font-weight: 700;
	font-size: 14px;
}

.qcs-redeem-sub {
	color: #8b93a3;
	font-size: 12px;
	margin-top: 4px;
}

.qcs-address {
	color: #9aa3b2;
	font-size: 13px;
}

.qcs-pin {
	font-size: 13px;
}

.qcs-save-photo {
	margin-top: 18px;
	background: #fff;
	border: 1px solid #e2e5ec;
	border-radius: 10px;
	padding: 13px 18px;
	width: 100%;
	font-weight: 700;
	font-size: 14px;
	color: #1a1a2e;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.qcs-save-icon {
	font-size: 15px;
}