/*
 * SharkzCoins Coin Enquiry Form
 *
 * Every rule is scoped under .sharkz-enquiry and every class carries the sc-
 * prefix, so nothing here affects the theme and theme class names do not
 * collide with the form. Typography is inherited from the theme (decision 14);
 * no font-family is declared other than "inherit" on form controls, which do
 * not inherit by default.
 */

.sharkz-enquiry {
	--sc-gold: #9a7b2e;
	--sc-gold-dim: #7a6020;
	--sc-red: #a82828;
	--sc-red-dark: #8b1f1f;
	--sc-navy: #2e3c52;
	--sc-navy-dark: #22304a;
	--sc-navy-light: #3a4e6a;
	--sc-bg: #ffffff;
	--sc-bg-mid: #f2f4f7;
	--sc-border: #cdd2da;
	--sc-border-light: #e4e7ec;
	--sc-text: #1e2330;
	--sc-text-muted: #6b7280;
	--sc-invalid: #e57a5a;
	--sc-navy-rgb: 46, 60, 82;
	--sc-red-rgb: 168, 40, 40;
	--sc-radius: 4px;

	max-width: 680px;
	margin: 0 auto;
	color: var(--sc-text);
}

.sharkz-enquiry *,
.sharkz-enquiry *::before,
.sharkz-enquiry *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

/*
 * !important so the hidden attribute always wins over the display rules on
 * classes such as .sc-subfield.is-visible and .sc-status.
 */
.sharkz-enquiry [hidden] {
	display: none !important;
}

.sharkz-enquiry .sc-visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* Honeypot: off-screen rather than display:none, which some bots skip. */
.sharkz-enquiry .sc-hp {
	position: absolute;
	left: -10000px;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Intro */
.sharkz-enquiry .sc-intro {
	color: var(--sc-text-muted);
	font-size: 17px;
	line-height: 1.6;
	margin-bottom: 32px;
}

/* Divider */
.sharkz-enquiry .sc-divider {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 32px 0;
	color: var(--sc-gold-dim);
}

.sharkz-enquiry .sc-divider::before,
.sharkz-enquiry .sc-divider::after {
	content: "";
	flex: 1;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--sc-border), transparent);
}

.sharkz-enquiry .sc-divider-icon {
	font-size: 20px;
}

/* Form card */
.sharkz-enquiry .sc-form-card {
	position: relative;
	background: var(--sc-bg);
	border: 1px solid var(--sc-border-light);
	border-radius: 8px;
	padding: 40px 36px;
	animation: sc-fade-up 0.7s ease 0.1s both;
	box-shadow: 0 4px 24px rgba(var(--sc-navy-rgb), 0.1), 0 1px 4px rgba(var(--sc-navy-rgb), 0.06);
}

@media (max-width: 520px) {
	.sharkz-enquiry .sc-form-card {
		padding: 28px 20px;
	}
}

/* Section headers */
.sharkz-enquiry .sc-section-label {
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.18em;
	color: var(--sc-navy);
	text-transform: uppercase;
	margin-bottom: 20px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.sharkz-enquiry .sc-section-label::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--sc-border);
}

.sharkz-enquiry .sc-form-section {
	margin-bottom: 36px;
}

/* Field groups */
.sharkz-enquiry .sc-field-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

@media (max-width: 480px) {
	.sharkz-enquiry .sc-field-row {
		grid-template-columns: 1fr;
	}
}

.sharkz-enquiry .sc-field {
	margin-bottom: 18px;
}

.sharkz-enquiry .sc-field:last-child {
	margin-bottom: 0;
}

.sharkz-enquiry label:not(.sc-check-item):not(.sc-qty-pill):not(.sc-tile-option),
.sharkz-enquiry .sc-label {
	display: block;
	font-size: 16px;
	font-weight: 500;
	letter-spacing: 0.08em;
	color: var(--sc-navy);
	text-transform: uppercase;
	margin-bottom: 7px;
}

.sharkz-enquiry .sc-label-link {
	text-transform: none;
	letter-spacing: 0;
	font-weight: 400;
	font-size: 13px;
	margin-left: 8px;
	color: var(--sc-red);
	text-decoration: underline;
}

.sharkz-enquiry .sc-label-link:hover {
	color: var(--sc-red-dark);
}

.sharkz-enquiry .sc-label-aside {
	font-size: 12px;
	color: var(--sc-text-muted);
	text-transform: none;
	font-weight: 300;
	letter-spacing: 0;
}

.sharkz-enquiry .sc-required-mark {
	color: var(--sc-red);
	margin-left: 3px;
}

.sharkz-enquiry input[type="text"],
.sharkz-enquiry input[type="email"],
.sharkz-enquiry input[type="tel"],
.sharkz-enquiry input[type="date"],
.sharkz-enquiry select,
.sharkz-enquiry textarea {
	width: 100%;
	background: var(--sc-bg);
	border: 1px solid var(--sc-border);
	color: var(--sc-text);
	font-family: inherit;
	font-size: 16px;
	font-weight: 400;
	padding: 11px 14px;
	border-radius: var(--sc-radius);
	outline: none;
	transition: border-color 0.2s, box-shadow 0.2s;
	appearance: none;
}

.sharkz-enquiry input::placeholder,
.sharkz-enquiry textarea::placeholder {
	color: hsl(220, 9%, 78%);
}

.sharkz-enquiry input:focus,
.sharkz-enquiry select:focus,
.sharkz-enquiry textarea:focus {
	border-color: var(--sc-navy-light);
	box-shadow: 0 0 0 3px rgba(var(--sc-navy-rgb), 0.08);
}

/*
 * Keyboard focus ring (decision 15): 2px solid navy (#2e3c52), offset 2px so it
 * sits on the white card. Contrast is about 11.2:1 against white and about
 * 10:1 against the light grey control background, above the 3:1 minimum.
 * Shown on :focus-visible only, so mouse clicks keep the quieter border change.
 * Visually hidden native radios and checkboxes, and the transparent file input,
 * show the ring on their visible control instead.
 */
.sharkz-enquiry input:focus-visible,
.sharkz-enquiry select:focus-visible,
.sharkz-enquiry textarea:focus-visible,
.sharkz-enquiry button:focus-visible,
.sharkz-enquiry a:focus-visible,
.sharkz-enquiry .sc-check-item:has(input:focus-visible),
.sharkz-enquiry .sc-qty-pill:has(input:focus-visible),
.sharkz-enquiry .sc-tile-option:has(input:focus-visible) .sc-tile-shape,
.sharkz-enquiry .sc-upload-zone:has(input:focus-visible) {
	outline: 2px solid var(--sc-navy);
	outline-offset: 2px;
}

.sharkz-enquiry .sc-invalid,
.sharkz-enquiry .sc-invalid:focus {
	border-color: var(--sc-invalid);
	box-shadow: 0 0 0 3px rgba(229, 122, 90, 0.1);
}

.sharkz-enquiry select {
	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 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-right: 36px;
	cursor: pointer;
}

.sharkz-enquiry select option {
	background: var(--sc-bg);
	color: var(--sc-text);
}

.sharkz-enquiry textarea {
	resize: vertical;
	min-height: 90px;
	line-height: 1.6;
}

.sharkz-enquiry textarea.sc-textarea-tall {
	min-height: 120px;
}

/* Checkbox grid: native checkboxes, visually hidden, inside a styled label. */
.sharkz-enquiry .sc-check-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 8px;
}

.sharkz-enquiry .sc-check-item {
	position: relative;
	display: flex;
	align-items: center;
	gap: 9px;
	background: var(--sc-bg-mid);
	border: 1px solid var(--sc-border);
	padding: 9px 12px;
	border-radius: var(--sc-radius);
	cursor: pointer;
	transition: border-color 0.15s, background 0.15s;
	font-size: 15px;
	color: var(--sc-text);
	user-select: none;
}

.sharkz-enquiry .sc-check-item:hover {
	border-color: var(--sc-navy-light);
}

.sharkz-enquiry .sc-check-item:has(input:checked) {
	border-color: var(--sc-navy);
	background: rgba(var(--sc-navy-rgb), 0.06);
	color: var(--sc-navy-dark);
}


.sharkz-enquiry .sc-check-dot {
	width: 14px;
	height: 14px;
	border: 1px solid var(--sc-border);
	border-radius: 2px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.15s;
}

.sharkz-enquiry .sc-check-item:has(input:checked) .sc-check-dot {
	background: var(--sc-navy);
	border-color: var(--sc-navy);
}

.sharkz-enquiry .sc-check-dot::after {
	content: "";
	width: 8px;
	height: 5px;
	border-left: 1.5px solid #ffffff;
	border-bottom: 1.5px solid #ffffff;
	transform: rotate(-45deg) translateY(-1px);
	opacity: 0;
	transition: opacity 0.1s;
}

.sharkz-enquiry .sc-check-item:has(input:checked) .sc-check-dot::after {
	opacity: 1;
}

/* Pills (quantity) */
.sharkz-enquiry .sc-qty-pills {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.sharkz-enquiry .sc-qty-pill {
	position: relative;
	padding: 8px 16px;
	border: 1px solid var(--sc-border);
	border-radius: 50px;
	background: var(--sc-bg-mid);
	color: var(--sc-text-muted);
	font-size: 15px;
	cursor: pointer;
	transition: all 0.15s;
	user-select: none;
}

.sharkz-enquiry .sc-qty-pill:hover {
	border-color: var(--sc-navy-light);
	color: var(--sc-navy);
}

.sharkz-enquiry .sc-qty-pill:has(input:checked) {
	background: var(--sc-red);
	border-color: var(--sc-red);
	color: #ffffff;
	font-weight: 500;
}

/* Tile picker (coin size, buckle style) */
.sharkz-enquiry .sc-tile-options {
	display: flex;
	gap: 12px;
	align-items: flex-end;
	flex-wrap: wrap;
}

.sharkz-enquiry .sc-tile-option {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	user-select: none;
}

.sharkz-enquiry .sc-tile-shape {
	border-radius: 50%;
	background: var(--sc-bg-mid);
	border: 2px solid var(--sc-border);
	transition: all 0.15s;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--sc-text-muted);
	font-size: 12px;
	font-weight: 500;
	overflow: hidden;
}

/* Reserved for the real buckle and patch product images (TODO, Chris). */
.sharkz-enquiry .sc-tile-shape img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Tile sizes (formerly inline styles in the template). */
.sharkz-enquiry .sc-tile-shape--coin-38mm { width: 48px; height: 48px; font-size: 13px; }
.sharkz-enquiry .sc-tile-shape--coin-42mm { width: 56px; height: 56px; }
.sharkz-enquiry .sc-tile-shape--coin-45mm { width: 64px; height: 64px; }
.sharkz-enquiry .sc-tile-shape--coin-50mm { width: 74px; height: 74px; }
.sharkz-enquiry .sc-tile-shape--coin-shaped { width: 60px; height: 60px; font-size: 9px; border-radius: 8px; }
.sharkz-enquiry .sc-tile-shape--coin-other { width: 52px; height: 52px; font-size: 14px; border-radius: 8px; }
.sharkz-enquiry .sc-tile-shape--coin-unsure { width: 52px; height: 52px; font-size: 18px; }
.sharkz-enquiry .sc-tile-shape--buckle-standard,
.sharkz-enquiry .sc-tile-shape--buckle-ceremonial,
.sharkz-enquiry .sc-tile-shape--buckle-custom { width: 70px; height: 54px; border-radius: 8px; font-size: 9px; }
.sharkz-enquiry .sc-tile-shape--buckle-other { width: 54px; height: 54px; border-radius: 8px; font-size: 14px; }

.sharkz-enquiry .sc-tile-option:hover .sc-tile-shape {
	border-color: var(--sc-navy-light);
}

.sharkz-enquiry .sc-tile-option:has(input:checked) .sc-tile-shape {
	border-color: var(--sc-red);
	background: rgba(var(--sc-red-rgb), 0.07);
	box-shadow: 0 0 14px rgba(var(--sc-red-rgb), 0.15);
	color: var(--sc-red);
}

.sharkz-enquiry .sc-tile-label {
	display: flex;
	flex-direction: column;
	align-items: center;
	font-size: 13px;
	color: var(--sc-text-muted);
	text-align: center;
	line-height: 1.3;
	max-width: 90px; /* Wraps the longer buckle labels onto two lines, as in the template. */
}

.sharkz-enquiry .sc-tile-option:has(input:checked) .sc-tile-label {
	color: var(--sc-red-dark);
}

.sharkz-enquiry .sc-tile-sub {
	font-size: 11px;
	color: var(--sc-text-muted);
}

.sharkz-enquiry .sc-tile-popular {
	font-size: 9px;
	color: var(--sc-gold);
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

/* Helper text */
.sharkz-enquiry .sc-field-hint {
	font-size: 13px;
	color: var(--sc-text-muted);
	margin-top: 6px;
	line-height: 1.5;
}

.sharkz-enquiry .sc-field-hint a,
.sharkz-enquiry .sc-info-note a,
.sharkz-enquiry .sc-upload-error a,
.sharkz-enquiry .sc-status a,
.sharkz-enquiry .sc-success-msg a {
	color: var(--sc-red);
}

.sharkz-enquiry .sc-field-hint a:hover {
	color: var(--sc-red-dark);
}

/* Upload area */
.sharkz-enquiry .sc-upload-zone {
	border: 1px dashed var(--sc-border);
	border-radius: var(--sc-radius);
	padding: 28px 20px;
	text-align: center;
	background: var(--sc-bg-mid);
	cursor: pointer;
	transition: border-color 0.2s, background 0.2s;
	position: relative;
}

.sharkz-enquiry .sc-upload-zone:hover,
.sharkz-enquiry .sc-upload-zone.is-drag-over,
.sharkz-enquiry .sc-upload-zone:focus-within {
	border-color: var(--sc-navy-light);
	background: rgba(var(--sc-navy-rgb), 0.04);
}

.sharkz-enquiry .sc-upload-zone input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: pointer;
}

.sharkz-enquiry .sc-upload-icon {
	width: 36px;
	height: 36px;
	margin: 0 auto 10px;
	color: var(--sc-navy-light);
}

.sharkz-enquiry .sc-upload-title {
	font-size: 15px;
	color: var(--sc-text);
	margin-bottom: 4px;
}

.sharkz-enquiry .sc-upload-hint {
	font-size: 13px;
	color: var(--sc-text-muted);
}

.sharkz-enquiry .sc-upload-list {
	list-style: none;
	margin-top: 10px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.sharkz-enquiry .sc-upload-list:empty {
	display: none;
}

.sharkz-enquiry .sc-upload-item {
	display: flex;
	align-items: center;
	gap: 8px;
	background: rgba(var(--sc-navy-rgb), 0.05);
	border: 1px solid var(--sc-border);
	border-radius: var(--sc-radius);
	padding: 7px 10px;
	font-size: 16px;
	color: var(--sc-text);
}

.sharkz-enquiry .sc-upload-item-icon::before {
	content: "\1F4CE";
	font-size: 16px;
}

.sharkz-enquiry .sc-upload-item-name {
	flex: 1;
	text-align: left;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.sharkz-enquiry .sc-upload-item-size {
	color: var(--sc-text-muted);
	font-size: 13px;
}

.sharkz-enquiry .sc-remove-file {
	background: none;
	border: none;
	color: var(--sc-text-muted);
	cursor: pointer;
	font-size: 16px;
	padding: 0 2px;
	line-height: 1;
	transition: color 0.15s;
}

.sharkz-enquiry .sc-remove-file::before {
	content: "\2715";
}

.sharkz-enquiry .sc-remove-file:hover,
.sharkz-enquiry .sc-remove-file:focus-visible {
	color: var(--sc-red);
}

/* Upload meter */
.sharkz-enquiry .sc-upload-meter-wrap {
	margin-top: 10px;
}

.sharkz-enquiry .sc-upload-meter-track {
	width: 100%;
	height: 8px;
	background: var(--sc-bg-mid);
	border: 1px solid var(--sc-border);
	border-radius: 50px;
	overflow: hidden;
}

.sharkz-enquiry .sc-upload-meter-fill {
	height: 100%;
	width: 0%;
	background: var(--sc-navy);
	transition: width 0.2s ease, background 0.2s ease;
}

.sharkz-enquiry .sc-upload-meter-fill.is-warn {
	background: var(--sc-gold);
}

.sharkz-enquiry .sc-upload-meter-fill.is-over {
	background: var(--sc-red);
}

.sharkz-enquiry .sc-upload-error,
.sharkz-enquiry .sc-status {
	background: rgba(var(--sc-red-rgb), 0.06);
	border: 1px solid rgba(var(--sc-red-rgb), 0.25);
	border-left: 3px solid var(--sc-red);
	border-radius: var(--sc-radius);
	padding: 10px 14px;
	font-size: 13px;
	color: var(--sc-red-dark);
	line-height: 1.5;
	margin-top: 10px;
	text-align: left;
}

/* Status messages sit above the submit button, so they need space below, not above. */
.sharkz-enquiry .sc-status {
	margin: 0 0 16px;
}

.sharkz-enquiry .sc-upload-error-list {
	list-style: none;
}

/* Info note */
.sharkz-enquiry .sc-info-note {
	background: rgba(var(--sc-navy-rgb), 0.04);
	border: 1px solid rgba(var(--sc-navy-rgb), 0.12);
	border-left: 3px solid var(--sc-navy);
	border-radius: var(--sc-radius);
	padding: 12px 16px;
	font-size: 16px;
	color: var(--sc-text-muted);
	line-height: 1.6;
	margin-top: 14px;
}

/* Spacing utilities (formerly inline styles in the template). */
.sharkz-enquiry .sc-mt-0 { margin-top: 0; }
.sharkz-enquiry .sc-mt-10 { margin-top: 10px; }
.sharkz-enquiry .sc-mt-12 { margin-top: 12px; }
.sharkz-enquiry .sc-mt-14 { margin-top: 14px; }
.sharkz-enquiry .sc-mt-18 { margin-top: 18px; }

/* Conditional sections and sub-reveals */
.sharkz-enquiry .sc-conditional {
	display: none;
}

.sharkz-enquiry .sc-conditional.is-visible {
	display: block;
}

.sharkz-enquiry .sc-subfield {
	display: none;
}

.sharkz-enquiry .sc-subfield.is-visible {
	display: block;
}

/* Submit */
.sharkz-enquiry .sc-submit-area {
	margin-top: 36px;
	text-align: center;
}

.sharkz-enquiry .sc-privacy-notice {
	text-align: left;
	margin: 0 0 20px;
}

.sharkz-enquiry .sc-submit-btn {
	background: var(--sc-red);
	color: #ffffff;
	font-family: inherit;
	font-size: 20px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	border: none;
	padding: 16px 56px;
	border-radius: var(--sc-radius);
	cursor: pointer;
	transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
	box-shadow: 0 4px 16px rgba(var(--sc-red-rgb), 0.25);
}

.sharkz-enquiry .sc-submit-btn:hover {
	background: var(--sc-red-dark);
	transform: translateY(-1px);
	box-shadow: 0 6px 20px rgba(var(--sc-red-rgb), 0.35);
}

.sharkz-enquiry .sc-submit-btn:active {
	transform: translateY(0);
}

.sharkz-enquiry .sc-submit-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	transform: none;
}

.sharkz-enquiry .sc-submit-note {
	font-size: 13px;
	color: var(--sc-text-muted);
	margin-top: 12px;
	line-height: 1.5;
}

/* Success state */
.sharkz-enquiry .sc-success-state {
	text-align: center;
	padding: 48px 20px;
	animation: sc-fade-up 0.5s ease both;
}

.sharkz-enquiry .sc-success-icon {
	width: 64px;
	height: 64px;
	background: rgba(var(--sc-navy-rgb), 0.08);
	border: 2px solid var(--sc-navy);
	border-radius: 50%;
	margin: 0 auto 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--sc-navy);
	font-size: 30px;
}

.sharkz-enquiry .sc-success-title {
	font-size: 36px;
	font-weight: 600;
	color: var(--sc-navy);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	margin-bottom: 12px;
}

.sharkz-enquiry .sc-success-msg {
	color: var(--sc-text-muted);
	font-size: 16px;
	line-height: 1.7;
	max-width: 380px;
	margin: 0 auto;
}

.sharkz-enquiry .sc-success-msg p + p {
	margin-top: 1.4em;
}

@keyframes sc-fade-up {
	from { opacity: 0; transform: translateY(16px); }
	to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
	.sharkz-enquiry .sc-form-card,
	.sharkz-enquiry .sc-success-state {
		animation: none;
	}
}
