/* TVS Social Giveaway — public form
   --tvsg-gold is injected inline via wp_add_inline_style. */

.tvsg-wrap{
	--tvsg-gold: #F1C349;
	--tvsg-gold-deep: #8a6a07;
	--tvsg-ink: #1b1b1f;
	--tvsg-muted: #6b7280;
	--tvsg-faint: #9aa0aa;
	--tvsg-line: #e7e8ec;
	--tvsg-soft: #f7f7f9;
	--tvsg-green: #16a34a;
	--tvsg-radius: 18px;
	--tvsg-shadow: 0 1px 2px rgba(16,24,40,.04), 0 10px 30px rgba(16,24,40,.06);
	--tvsg-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
	--tvsg-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	max-width: 660px;
	margin: 0 auto;
	padding: 4px;
	color: var(--tvsg-ink);
	font-family: var(--tvsg-sans);
	-webkit-font-smoothing: antialiased;
	line-height: 1.5;
	box-sizing: border-box;
}
.tvsg-wrap *, .tvsg-wrap *::before, .tvsg-wrap *::after{ box-sizing: border-box; }
.tvsg-wrap svg{ display: inline-block; vertical-align: middle; }

/* Notices */
.tvsg-notice{
	background: var(--tvsg-soft); border: 1px solid var(--tvsg-line);
	border-radius: var(--tvsg-radius); padding: 30px 24px;
	text-align: center; font-size: 16px; color: var(--tvsg-muted);
}

/* Banner */
.tvsg-banner{ border-radius: var(--tvsg-radius); overflow: hidden; margin-bottom: 18px; }
.tvsg-banner img{ display: block; width: 100%; height: auto; }

/* Hero */
.tvsg-hero{ text-align: center; padding: 10px 10px 6px; }
.tvsg-pill{
	display: inline-block; font-size: 11.5px; font-weight: 800; letter-spacing: .16em;
	color: var(--tvsg-gold-deep); background: #fbf3da; border: 1px solid #f1e2af;
	padding: 5px 13px; border-radius: 999px; margin-bottom: 14px;
}
.tvsg-title{
	font-family: var(--tvsg-serif);
	font-size: clamp(28px, 7vw, 42px); line-height: 1.08;
	margin: 4px 0 12px; font-weight: 700; letter-spacing: -.01em;
}
.tvsg-prize{ font-size: 17px; font-weight: 600; margin: 0 0 8px; display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; }
.tvsg-value{
	font-size: 12px; font-weight: 800; color: var(--tvsg-gold-deep);
	background: #fbf3da; border: 1px solid #f1e2af; padding: 3px 10px; border-radius: 999px;
}
.tvsg-desc{ color: var(--tvsg-muted); font-size: 15.5px; margin: 8px auto 0; max-width: 52ch; }

/* Sticky points bar */
.tvsg-pointsbar{
	position: sticky; top: 10px; z-index: 30;
	display: flex; align-items: center; gap: 12px;
	background: var(--tvsg-ink); color: #fff;
	border-radius: 16px; padding: 13px 18px; margin: 18px 0;
	box-shadow: 0 10px 30px rgba(16,24,40,.18);
}
.tvsg-pb-label{ font-size: 13px; opacity: .8; font-weight: 600; }
.tvsg-pb-total{ margin-left: auto; font-weight: 800; font-size: 26px; line-height: 1; }
.tvsg-pb-total #tvsg-points-total{ color: var(--tvsg-gold); display: inline-block; }
.tvsg-pb-total small{ font-size: 12px; font-weight: 700; opacity: .65; }
.tvsg-pb-hint{ font-size: 11px; opacity: .68; flex-basis: 100%; order: 3; margin-top: -3px; }
.tvsg-pb-bump{ animation: tvsg-bump .35s ease; }
@keyframes tvsg-bump{ 0%{transform:scale(1)} 40%{transform:scale(1.22)} 100%{transform:scale(1)} }

/* Cards */
.tvsg-card{
	background: #fff; border: 1px solid var(--tvsg-line); border-radius: var(--tvsg-radius);
	padding: 20px 20px 8px; margin-bottom: 16px; box-shadow: var(--tvsg-shadow);
}
.tvsg-card-title{ font-size: 16px; font-weight: 700; margin: 0 0 14px; }

/* Section eyebrow titles (structural) */
.tvsg-section-title{
	font-family: var(--tvsg-sans);
	font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
	color: var(--tvsg-faint); margin: 26px 4px 12px;
}
.tvsg-platforms-title{ margin-top: 24px; }

/* Fields */
.tvsg-field{ margin-bottom: 16px; }
.tvsg-row{ display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tvsg-field label{ display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.tvsg-req{ color: #e11d48; }
.tvsg-field input, .tvsg-field select{
	width: 100%; font-size: 16px; padding: 13px 14px;
	border: 1px solid var(--tvsg-line); border-radius: 12px; background: #fff; color: var(--tvsg-ink);
	transition: border-color .15s ease, box-shadow .15s ease; -webkit-appearance: none; appearance: none;
}
.tvsg-field select{
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 13px center; padding-right: 38px;
}
.tvsg-field input:focus, .tvsg-field select:focus{
	outline: none; border-color: var(--tvsg-gold); box-shadow: 0 0 0 3px rgba(241,195,73,.35);
}
.tvsg-help{ display: block; font-size: 12px; color: var(--tvsg-muted); margin-top: 6px; font-weight: 400; }

/* ===== How-to-enter steps ===== */
.tvsg-steps{
	background: #fff; border: 1px solid var(--tvsg-line); border-radius: var(--tvsg-radius);
	padding: 6px 20px 18px; box-shadow: var(--tvsg-shadow); margin-bottom: 16px;
}
.tvsg-steps .tvsg-section-title{ margin-top: 18px; }
.tvsg-steplist{ list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.tvsg-steplist li{ display: flex; gap: 13px; align-items: flex-start; }
.tvsg-step-n{
	flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%;
	background: var(--tvsg-gold); color: #1a1500; font-weight: 800; font-size: 14px;
	display: flex; align-items: center; justify-content: center;
}
.tvsg-steplist li div{ font-size: 14px; color: var(--tvsg-muted); }
.tvsg-steplist li strong{ display: block; color: var(--tvsg-ink); font-size: 14.5px; margin-bottom: 1px; }
.tvsg-steps-benefit{
	display: flex; gap: 10px; align-items: center; margin: 16px 0 0; padding: 13px 15px;
	background: #fbf3da; border: 1px solid #f1e2af; border-radius: 12px;
	font-size: 13.5px; font-weight: 600; color: #5a4708;
}
.tvsg-steps-benefit svg{ width: 20px; height: 20px; color: var(--tvsg-gold-deep); flex: 0 0 auto; }

/* ===== Points guide ===== */
.tvsg-guide{
	background: #fff; border: 1px solid var(--tvsg-line); border-radius: var(--tvsg-radius);
	padding: 6px 20px 14px; box-shadow: var(--tvsg-shadow); margin-bottom: 16px;
}
.tvsg-guide-head{ display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.tvsg-guide-head .tvsg-section-title{ margin: 18px 0 10px; }
.tvsg-guide-sub{ font-size: 11.5px; font-weight: 700; color: var(--tvsg-faint); letter-spacing: .04em; }
.tvsg-guide-list{ list-style: none; margin: 0; padding: 0; }
.tvsg-guide-list li{ display: flex; align-items: center; gap: 13px; padding: 10px 0; border-top: 1px solid var(--tvsg-line); }
.tvsg-guide-list li:first-child{ border-top: 0; }
.tvsg-guide-pts{
	flex: 0 0 auto; min-width: 46px; text-align: center;
	font-weight: 800; font-size: 15px; color: var(--tvsg-gold-deep);
	background: #fbf3da; border: 1px solid #f1e2af; border-radius: 10px; padding: 6px 8px;
}
.tvsg-guide-act{ display: flex; flex-direction: column; }
.tvsg-guide-act strong{ font-size: 14px; font-weight: 600; }
.tvsg-guide-act em{ font-style: normal; font-size: 12.5px; color: var(--tvsg-faint); }

/* ===== Platform accordions ===== */
.tvsg-platform{
	--p-color: #888;
	border: 1px solid var(--tvsg-line); border-radius: 16px; margin-bottom: 12px;
	background: #fff; overflow: hidden; box-shadow: var(--tvsg-shadow);
	transition: border-color .15s ease, box-shadow .15s ease;
}
.tvsg-platform.is-open{ border-color: color-mix(in srgb, var(--p-color) 45%, var(--tvsg-line)); box-shadow: 0 10px 30px rgba(16,24,40,.10); }
.tvsg-platform.has-points{ border-color: color-mix(in srgb, var(--p-color) 55%, #fff); }

.tvsg-plat-head{
	display: flex; align-items: center; gap: 13px; width: 100%;
	background: none; border: 0; padding: 14px 16px; cursor: pointer; font: inherit; text-align: left; color: var(--tvsg-ink);
}
.tvsg-plat-head:hover{ background: var(--tvsg-soft); }
.tvsg-plat-icon{
	flex: 0 0 auto; width: 42px; height: 42px; border-radius: 12px;
	display: flex; align-items: center; justify-content: center;
	color: var(--p-color); background: color-mix(in srgb, var(--p-color) 12%, #fff);
}
.tvsg-plat-icon svg{ width: 22px; height: 22px; }
.tvsg-plat-text{ display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.tvsg-plat-name{ font-weight: 700; font-size: 15.5px; line-height: 1.2; }
.tvsg-plat-meta{ font-size: 12.5px; color: var(--tvsg-muted); font-weight: 500; margin-top: 2px; }
.tvsg-plat-count{ color: var(--p-color); font-weight: 800; }
.tvsg-platform.has-points .tvsg-plat-icon{ background: color-mix(in srgb, var(--p-color) 18%, #fff); }
.tvsg-chevron{ flex: 0 0 auto; color: var(--tvsg-faint); }
.tvsg-chevron svg{ width: 20px; height: 20px; transition: transform .22s ease; }
.tvsg-plat-head[aria-expanded="true"] .tvsg-chevron svg{ transform: rotate(180deg); }

.tvsg-plat-body{ display: none; padding: 0 16px 16px; }
.tvsg-platform.is-open .tvsg-plat-body{ display: block; }

.tvsg-plat-guide{
	display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
	padding: 4px 0 14px; margin-bottom: 4px; border-bottom: 1px solid var(--tvsg-line);
}
.tvsg-visit{
	display: inline-flex; align-items: center; gap: 7px;
	font-size: 13.5px; font-weight: 700; text-decoration: none;
	color: #fff; background: var(--p-color);
	padding: 9px 15px; border-radius: 10px;
}
.tvsg-visit svg{ width: 15px; height: 15px; }
.tvsg-visit:hover{ filter: brightness(.94); color: #fff; }
.tvsg-visit-empty{ background: var(--tvsg-soft); color: var(--tvsg-muted); cursor: default; }
.tvsg-plat-tip{ font-size: 12.5px; color: var(--tvsg-faint); }

/* Action rows */
.tvsg-action{ display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid var(--tvsg-line); }
.tvsg-action:first-of-type{ border-top: 0; }
.tvsg-action-main{ display: flex; align-items: center; gap: 9px; flex: 1 1 auto; min-width: 0; }
.tvsg-action-label{ font-size: 14px; font-weight: 600; }
.tvsg-points-badge{
	font-size: 12px; font-weight: 800; color: var(--tvsg-gold-deep);
	background: #fbf3da; border: 1px solid #f1e2af; padding: 2px 8px; border-radius: 999px; flex: 0 0 auto;
}

/* Upload control */
.tvsg-upload{
	position: relative; display: inline-flex; align-items: center; gap: 7px;
	font-size: 13px; font-weight: 600; color: var(--tvsg-ink);
	background: var(--tvsg-soft); border: 1px dashed #cfd2da; border-radius: 11px;
	padding: 10px 14px; cursor: pointer; transition: border-color .15s ease, background .15s ease; flex: 0 0 auto;
}
.tvsg-upload::before{
	content: ""; width: 15px; height: 15px; background: center/contain no-repeat
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='17 8 12 3 7 8'/%3E%3Cline x1='12' y1='3' x2='12' y2='15'/%3E%3C/svg%3E");
}
.tvsg-upload:hover{ border-color: var(--tvsg-gold); background: #fdf8ea; }
.tvsg-upload input[type="file"]{ position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.tvsg-action.is-filled .tvsg-upload{ border-style: solid; border-color: var(--tvsg-green); background: #effaf1; color: #15803d; }
.tvsg-action.is-filled .tvsg-upload::before{
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315803d' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}

/* Preview thumb */
.tvsg-preview{ flex: 0 0 auto; position: relative; }
.tvsg-preview:empty{ display: none; }
.tvsg-preview img{ width: 46px; height: 46px; object-fit: cover; border-radius: 10px; border: 1px solid var(--tvsg-line); display: block; }
.tvsg-thumb-x{
	position: absolute; top: -7px; right: -7px; width: 20px; height: 20px; border-radius: 50%;
	background: #ef4444; color: #fff; border: 2px solid #fff; font-size: 12px; line-height: 1;
	display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0;
}

/* Confirm */
.tvsg-confirm{ padding-bottom: 18px; }
.tvsg-check{ display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: #4b5563; margin-bottom: 12px; cursor: pointer; }
.tvsg-check:last-child{ margin-bottom: 0; }
.tvsg-check input[type="checkbox"]{ width: 18px; height: 18px; margin-top: 1px; flex: 0 0 auto; accent-color: var(--tvsg-gold); cursor: pointer; }
.tvsg-check a{ color: var(--tvsg-gold-deep); font-weight: 600; }

/* Errors */
.tvsg-errors{ display: none; }
.tvsg-errors.is-active{
	display: block; background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c;
	border-radius: 12px; padding: 12px 14px; font-size: 14px; font-weight: 600; margin-bottom: 14px;
}

/* Submit */
.tvsg-submit{
	width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px;
	background: var(--tvsg-gold); color: #1a1500; border: 0; border-radius: 14px;
	padding: 17px 22px; font-size: 17.5px; font-weight: 800; cursor: pointer;
	box-shadow: 0 8px 22px rgba(241,195,73,.45);
	transition: transform .08s ease, box-shadow .15s ease, opacity .15s ease;
}
.tvsg-submit:hover{ transform: translateY(-1px); box-shadow: 0 12px 28px rgba(241,195,73,.5); }
.tvsg-submit:active{ transform: translateY(0); }
.tvsg-submit:disabled{ opacity: .6; cursor: not-allowed; transform: none; box-shadow: none; }
.tvsg-submit-pts{ font-size: 14.5px; opacity: .75; font-weight: 800; }
.tvsg-submit.is-loading{ position: relative; color: transparent; }
.tvsg-submit.is-loading .tvsg-submit-pts{ color: transparent; }
.tvsg-submit.is-loading::after{
	content: ""; position: absolute; width: 20px; height: 20px;
	border: 2.5px solid rgba(26,21,0,.35); border-top-color: #1a1500; border-radius: 50%;
	animation: tvsg-spin .7s linear infinite;
}
@keyframes tvsg-spin{ to{ transform: rotate(360deg); } }
.tvsg-fineprint{ text-align: center; font-size: 12px; color: var(--tvsg-muted); margin: 12px 4px 4px; }

/* Success */
.tvsg-success{
	text-align: center; background: #fff; border: 1px solid var(--tvsg-line); border-radius: var(--tvsg-radius);
	padding: 40px 24px; box-shadow: var(--tvsg-shadow); animation: tvsg-pop .3s ease;
}
@keyframes tvsg-pop{ from{opacity:0;transform:scale(.96)} to{opacity:1;transform:scale(1)} }
.tvsg-success-icon{
	width: 62px; height: 62px; margin: 0 auto 16px; border-radius: 50%;
	background: var(--tvsg-green); color: #fff; font-size: 32px;
	display: flex; align-items: center; justify-content: center;
}
.tvsg-success h3{ font-family: var(--tvsg-serif); font-size: 26px; font-weight: 700; margin: 0 0 8px; }
.tvsg-success p{ color: var(--tvsg-muted); font-size: 15px; margin: 0 auto 18px; max-width: 46ch; }
.tvsg-success-code{
	display: inline-block; background: var(--tvsg-soft); border: 1px dashed #cfd2da; border-radius: 12px;
	padding: 10px 18px; font-size: 14px; margin-bottom: 14px;
}
.tvsg-success-code strong{ letter-spacing: .06em; font-size: 16px; }
.tvsg-success-points{ font-size: 15px; font-weight: 800; color: var(--tvsg-gold-deep); }
.tvsg-success-points span{ font-size: 22px; }

/* Honeypot */
.tvsg-hp{ position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
	.tvsg-wrap *{ animation: none !important; transition: none !important; }
}

/* Mobile */
@media (max-width: 480px){
	.tvsg-row{ grid-template-columns: 1fr; }
	.tvsg-action{ align-items: stretch; }
	.tvsg-action-main{ flex: 1 1 100%; }
	.tvsg-upload{ flex: 1 1 auto; justify-content: center; }
	.tvsg-preview{ align-self: center; }
	.tvsg-pb-total{ font-size: 23px; }
	.tvsg-plat-icon{ width: 38px; height: 38px; }
	.tvsg-visit{ flex: 1 1 auto; justify-content: center; }
}

/* color-mix fallback */
@supports not (color: color-mix(in srgb, red 50%, blue)){
	.tvsg-plat-icon{ background: #f5f5f6; }
	.tvsg-platform.is-open{ border-color: #d8d9de; }
}
