/* =========================================================
   eh-cta-offer.css  —  CTA Offer Section
   ========================================================= */

/* ── Section wrapper ──────────────────────────────────── */
.eh-cta-offer-block {
	display: block;
	width: 100%;
	background: #ffffff;
	border-top: 2px solid #e2e8f0;
	border-bottom: 2px solid #e2e8f0;
}

.eh-cta-offer__form { margin: 0; padding: 0; }

/* ── 5-column grid ────────────────────────────────────── */
.eh-cta-offer__inner {
	display: grid;
	grid-template-columns: 1.1fr 1.2fr 1.4fr 1fr auto;
	align-items: center;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
	box-sizing: border-box;
}

/* ── Column base ──────────────────────────────────────── */
.eh-cta-offer__col {
	padding: 28px 28px;
	border-right: 1px solid #e2e8f0;
}
.eh-cta-offer__col:first-child  { padding-left: 0; }
.eh-cta-offer__col--submit      { border-right: none; padding-right: 0; }

/* ── Col 1: Heading ───────────────────────────────────── */
.eh-cta-offer__title {
	font-size: 17px;
	font-weight: 700;
	color: #0f172a;
	line-height: 1.3;
	margin: 0 0 5px;
}
.eh-cta-offer__subtitle { font-size: 13px; color: #64748b; margin: 0; }

/* ── Shared label ─────────────────────────────────────── */
.eh-cta-offer__label {
	display: block;
	font-size: 11.5px;
	font-weight: 600;
	color: #64748b;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin-bottom: 7px;
}

/* ── Col 2: Select ────────────────────────────────────── */
.eh-cta-offer__select-wrap { position: relative; }
.eh-cta-offer__select {
	width: 100%;
	appearance: none;
	-webkit-appearance: none;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	padding: 10px 32px 10px 14px;
	font-size: 14px;
	color: #0f172a;
	background: #fff;
	cursor: pointer;
	outline: none;
	box-sizing: border-box;
}
.eh-cta-offer__select:focus {
	border-color: #0d9488;
	box-shadow: 0 0 0 2px rgba(13,148,136,.15);
}
.eh-cta-offer__chevron {
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	width: 14px;
	height: 14px;
	color: #94a3b8;
	pointer-events: none;
}

/* ── Col 3: File upload ───────────────────────────────── */
.eh-cta-offer__file-label {
	display: flex;
	align-items: center;
	gap: 8px;
	border: 1px dashed #cbd5e1;
	border-radius: 6px;
	padding: 8px 12px;
	font-size: 12px;
	color: #64748b;
	cursor: pointer;
	background: #f8fafc;
	transition: border-color .2s, background .2s;
}
.eh-cta-offer__file-label:hover,
.eh-cta-offer__file-label:focus-within { border-color: #0d9488; background: #f0fdfa; box-shadow: 0 0 0 2px rgba(13,148,136,.15); }
.eh-cta-offer__file-label svg   { width: 15px; height: 15px; flex-shrink: 0; }
.eh-cta-offer__file-name        { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 160px; }
.eh-cta-offer__file-input       { display: none; }
.eh-cta-offer__file-hint        { font-size: 10px; color: #94a3b8; margin: 4px 0 0; }

/* ── Col 4: WhatsApp ──────────────────────────────────── */
.eh-cta-offer__wa-row   { display: flex; align-items: center; gap: 8px; }
.eh-cta-offer__wa-icon  { width: 18px; height: 18px; flex-shrink: 0; }
.eh-cta-offer__wa-number { font-size: 15px; font-weight: 600; color: #0f172a; }
.eh-cta-offer__wa-hint  { font-size: 10px; color: #94a3b8; margin: 4px 0 0; }

/* ── Col 5: Kirim button ──────────────────────────────── */
.eh-cta-offer__btn-open-modal {
	display: block;
	background: #0d9488;
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 16px 32px;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	white-space: nowrap;
	letter-spacing: .01em;
	transition: background .2s;
}
.eh-cta-offer__btn-open-modal:hover { background: #0f766e; }

/* ── Success banner ───────────────────────────────────── */
.eh-cta-offer__success-banner {
	background: #f0fdf4;
	border-top: 1px solid #bbf7d0;
	color: #166534;
	font-size: 13px;
	font-weight: 600;
	text-align: center;
	padding: 12px 40px;
}

/* ── Modal overlay ────────────────────────────────────── */
.eh-cta-offer__modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,.45);
	z-index: 1050;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
}
.eh-cta-offer__modal-overlay[hidden] { display: none; }

/* ── Modal card ───────────────────────────────────────── */
.eh-cta-offer__modal-card {
	background: #fff;
	border-radius: 12px;
	padding: 28px 32px;
	width: 100%;
	max-width: 460px;
	box-shadow: 0 20px 60px rgba(0,0,0,.15);
	box-sizing: border-box;
}
.eh-cta-offer__modal-title    { font-size: 18px; font-weight: 700; color: #0f172a; margin: 0 0 4px; }
.eh-cta-offer__modal-subtitle { font-size: 13px; color: #64748b; margin: 0 0 20px; }

/* ── Modal fields ─────────────────────────────────────── */
.eh-cta-offer__field       { margin-bottom: 14px; }
.eh-cta-offer__field-label { display: block; font-size: 12px; font-weight: 600; color: #374151; margin-bottom: 4px; }
.eh-cta-offer__optional    { font-weight: 400; color: #94a3b8; }

.eh-cta-offer__input,
.eh-cta-offer__textarea {
	width: 100%;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	padding: 10px 12px;
	font-size: 13px;
	color: #0f172a;
	background: #fff;
	box-sizing: border-box;
	outline: none;
	font-family: inherit;
	transition: border-color .2s, box-shadow .2s;
}
.eh-cta-offer__input:focus,
.eh-cta-offer__textarea:focus {
	border-color: #0d9488;
	box-shadow: 0 0 0 2px rgba(13,148,136,.15);
}
.eh-cta-offer__textarea { resize: none; }

/* ── Modal error ──────────────────────────────────────── */
.eh-cta-offer__modal-error {
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #dc2626;
	font-size: 12px;
	border-radius: 6px;
	padding: 8px 12px;
	margin-bottom: 14px;
}
.eh-cta-offer__modal-error[hidden] { display: none; }

/* ── Modal actions ────────────────────────────────────── */
.eh-cta-offer__modal-actions { display: flex; gap: 10px; margin-top: 20px; }

.eh-cta-offer__btn-cancel {
	flex: 1;
	background: #f1f5f9;
	color: #64748b;
	border: 1px solid #e2e8f0;
	border-radius: 7px;
	padding: 11px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: background .2s;
}
.eh-cta-offer__btn-cancel:hover { background: #e2e8f0; }

.eh-cta-offer__btn-submit {
	flex: 2;
	background: #0d9488;
	color: #fff;
	border: none;
	border-radius: 7px;
	padding: 11px;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	transition: background .2s;
}
.eh-cta-offer__btn-submit:hover    { background: #0f766e; }
.eh-cta-offer__btn-submit:disabled { background: #94a3b8; cursor: not-allowed; }

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 768px) {
	.eh-cta-offer__inner {
		grid-template-columns: 1fr;
		padding: 0 20px;
	}
	.eh-cta-offer__col {
		border-right: none;
		border-bottom: 1px solid #e2e8f0;
		padding: 18px 0;
	}
	.eh-cta-offer__col:first-child { padding-left: 0; }
	.eh-cta-offer__col--submit     { border-bottom: none; }
	.eh-cta-offer__btn-open-modal  { width: 100%; }
}
