/* ============================================================
   Ixodia Offer System — Offer Form & Global Button Styles
   Version: 1.4.0
   ============================================================ */

/* ── Wrapper ─────────────────────────────────────────────── */
.ios-offer-wrap {
	max-width: 600px;
	margin: 40px auto;
	padding: 0 16px;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Branding Header ─────────────────────────────────────── */
.ios-brand-header {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 20px;
}

.ios-brand-logo {
	background: #1a1a2e;
	color: #fff;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 1px;
	padding: 4px 12px;
	border-radius: 6px;
}

.ios-brand-tagline {
	font-size: 13px;
	color: #9ca3af;
	font-weight: 500;
}

/* ── Product Summary ─────────────────────────────────────── */
.ios-product-summary {
	display: flex;
	gap: 16px;
	align-items: center;
	padding: 20px;
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	margin-bottom: 28px;
}

.ios-product-summary img {
	width: 80px;
	height: 80px;
	object-fit: cover;
	border-radius: 8px;
	border: 1px solid #e5e7eb;
	flex-shrink: 0;
}

.ios-product-summary h3 {
	margin: 0 0 6px;
	font-size: 16px;
	font-weight: 600;
	color: #111827;
}

.ios-offered-price {
	font-size: 22px;
	font-weight: 700;
	color: var(--color-primary, #2c2c2c);
}

.ios-offered-price span {
	font-size: 13px;
	font-weight: 400;
	color: #6b7280;
	margin-left: 6px;
}

/* ── Form ────────────────────────────────────────────────── */
.ios-offer-form {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 28px;
}

.ios-form-row {
	margin-bottom: 18px;
}

.ios-form-row--2col {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}

@media (max-width: 480px) {
	.ios-form-row--2col {
		grid-template-columns: 1fr;
	}
}

.ios-form-field label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #374151;
	margin-bottom: 6px;
}

.ios-form-field input[type="text"],
.ios-form-field input[type="email"],
.ios-form-field input[type="tel"] {
	width: 100%;
	padding: 11px 13px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font-size: 15px;
	color: #111827;
	box-sizing: border-box;
	transition: border-color .15s, box-shadow .15s;
	outline: none;
}

.ios-form-field input:focus {
	border-color: var(--color-primary, #2c2c2c);
	box-shadow: 0 0 0 3px rgba(0,0,0,.08);
}

.ios-form-field input.ios-error {
	border-color: #ef4444;
}

/* ── Required ────────────────────────────────────────────── */
.ios-required { color: #ef4444; }

/* ── Days Selector ───────────────────────────────────────── */
.ios-days-label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #374151;
	margin-bottom: 10px;
}

.ios-days-selector {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.ios-day-btn {
	width: 44px;
	height: 44px;
	border: 2px solid var(--color-primary, #2c2c2c) !important;
	border-radius: 8px;
	background: #fff;
	font-size: 15px;
	font-weight: 600;
	color: var(--color-primary, #2c2c2c) !important;
	cursor: pointer;
	transition: all .15s;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ios-day-btn:hover {
	background-color: var(--color-primary, #2c2c2c) !important;
	color: #fff !important;
}

.ios-day-btn.active {
	background-color: var(--color-primary, #2c2c2c) !important;
	border-color: var(--color-primary, #2c2c2c) !important;
	color: #fff !important;
}

.ios-days-hint {
	font-size: 12px;
	color: #9ca3af;
	margin-top: 8px;
}

/* ── Account Section ─────────────────────────────────────── */
.ios-account-row {
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 14px 16px;
}

.ios-checkbox-label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	cursor: pointer;
	font-size: 14px;
	color: #374151;
}

.ios-checkbox-label input[type="checkbox"] {
	margin-top: 2px;
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	accent-color: var(--color-primary, #2c2c2c);
}

/* ── Form Note ───────────────────────────────────────────── */
.ios-form-note {
	font-size: 12px;
	color: #9ca3af;
	text-align: center;
	margin-top: 12px;
	line-height: 1.5;
}

/* ── Error ───────────────────────────────────────────────── */
.ios-form-error {
	background: #fef2f2;
	border: 1px solid #fecaca;
	border-radius: 8px;
	padding: 12px 16px;
	color: #dc2626;
	font-size: 14px;
	margin-bottom: 18px;
}

/* ── Success Screen ──────────────────────────────────────── */
.ios-success-wrap {
	max-width: 600px;
	margin: 60px auto;
	padding: 0 16px;
	text-align: center;
}

.ios-success-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	padding: 48px 40px;
}

.ios-success-icon {
	font-size: 52px;
	margin-bottom: 16px;
	display: block;
}

.ios-success-card h2 {
	font-size: 22px;
	font-weight: 700;
	color: #111827;
	margin: 0 0 10px;
}

.ios-success-card p {
	font-size: 15px;
	color: #6b7280;
	line-height: 1.6;
	margin: 0 0 24px;
}

/* ============================================================
   ALL PLUGIN BUTTONS — Theme Colors
   ============================================================ */

/* Offer form submit button */
.ios-submit-btn {
	width: 100%;
	padding: 14px;
	background-color: var(--color-primary, #2c2c2c) !important;
	color: #fff !important;
	border: none !important;
	border-radius: 9px;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	margin-top: 24px;
	transition: opacity .15s;
}

.ios-submit-btn:hover {
	background-color: var(--color-primary-dark, #1a1a1a) !important;
	color: #fff !important;
	opacity: 0.9;
}

/* Success page link button */
.ios-success-card a {
	display: inline-block;
	padding: 12px 28px;
	background-color: var(--color-primary, #2c2c2c) !important;
	color: #fff !important;
	border-radius: 8px;
	text-decoration: none;
	font-weight: 600;
	font-size: 15px;
	transition: opacity .15s;
}

.ios-success-card a:hover {
	opacity: 0.9;
	color: #fff !important;
}

/* Shop loop buttons: Get Deal Now + Name Your Price */
.ios-deal-btn,
.ios-nyp-btn {
	background-color: var(--color-primary, #2c2c2c) !important;
	color: #fff !important;
	font-weight: 700 !important;
	border: none !important;
	transition: opacity .15s !important;
}

.ios-deal-btn:hover,
.ios-nyp-btn:hover {
	background-color: var(--color-primary-dark, #1a1a1a) !important;
	color: #fff !important;
	opacity: 0.9;
}
