/**
 * Ipanaxorisi – front-end styles.
 * Scoped under .iw-wrap to avoid clashing with themes.
 */

.iw-wrap {
	--iw-bg: #ffffff;
	--iw-fg: #111827;
	--iw-muted: #6b7280;
	--iw-border: #e5e7eb;
	--iw-primary: #111827;
	--iw-primary-hover: #374151;
	--iw-accent: #16a34a;
	--iw-radius: 12px;
	max-width: 1040px;
	margin: 0 auto;
	color: var(--iw-fg);
	font-size: 16px;
	line-height: 1.65;
}

.iw-wrap *,
.iw-wrap *::before,
.iw-wrap *::after {
	box-sizing: border-box;
}

.iw-header {
	margin-bottom: 28px;
}

.iw-title {
	font-size: clamp(1.6rem, 3vw, 2.1rem);
	line-height: 1.2;
	margin: 0 0 10px;
	font-weight: 700;
}

.iw-lead {
	color: var(--iw-muted);
	margin: 0;
	font-size: 1.02rem;
}

/* Two-column layout: info + form. */
.iw-columns {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 32px;
	align-items: start;
}

@media (max-width: 820px) {
	.iw-columns {
		grid-template-columns: 1fr;
		gap: 24px;
	}
}

.iw-info h2 {
	font-size: 1.25rem;
	margin: 0 0 12px;
}

.iw-info h3 {
	font-size: 1.05rem;
	margin: 22px 0 6px;
}

.iw-info p {
	margin: 0 0 12px;
	color: #374151;
}

.iw-list {
	margin: 0 0 12px;
	padding-left: 20px;
}

.iw-list li {
	margin: 4px 0;
}

.iw-contact {
	margin-top: 24px;
	padding-top: 18px;
	border-top: 1px solid var(--iw-border);
}

.iw-contact p {
	margin: 2px 0;
}

/* Form panel. */
.iw-form-panel {
	background: var(--iw-bg);
	border: 1px solid var(--iw-border);
	border-radius: var(--iw-radius);
	padding: 26px;
	box-shadow: 0 8px 30px rgba(17, 24, 39, 0.06);
}

.iw-field {
	margin: 0 0 16px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.iw-field label {
	font-weight: 600;
	font-size: 0.95rem;
}

.iw-req {
	color: #dc2626;
}

.iw-field input[type="text"],
.iw-field input[type="tel"],
.iw-field input[type="email"],
.iw-field input[type="date"],
.iw-field textarea {
	width: 100%;
	padding: 11px 13px;
	border: 1px solid #d1d5db;
	border-radius: 9px;
	font: inherit;
	color: var(--iw-fg);
	background: #fff;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.iw-field input:focus,
.iw-field textarea:focus {
	outline: none;
	border-color: var(--iw-primary);
	box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.12);
}

.iw-hint {
	color: var(--iw-muted);
	font-size: 0.82rem;
}

.iw-checkbox label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-weight: 500;
	cursor: pointer;
}

.iw-checkbox input {
	margin-top: 4px;
	width: 18px;
	height: 18px;
	flex: 0 0 auto;
}

.iw-error {
	color: #dc2626;
	font-size: 0.85rem;
}

/* Buttons. */
.iw-wrap .iw-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: auto;
	min-width: 160px;
	height: auto;
	min-height: 0;
	padding: 14px 28px;
	border-radius: 10px;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	border: 1px solid transparent;
	box-shadow: none;
	transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.iw-wrap .iw-btn--primary {
	background: var(--iw-primary);
	color: #fff;
}

.iw-wrap .iw-btn--primary:hover,
.iw-wrap .iw-btn--primary:focus {
	background: var(--iw-primary-hover);
	color: #fff;
	box-shadow: 0 6px 18px rgba(17, 24, 39, 0.18);
}

.iw-wrap .iw-btn--ghost {
	background: transparent;
	color: var(--iw-fg);
	border-color: #d1d5db;
}

.iw-wrap .iw-btn--ghost:hover {
	background: #f3f4f6;
}

/* The main form submit spans the panel width for a clean, modern look. */
.iw-form .iw-btn--primary {
	width: 100%;
	margin-top: 6px;
}

.iw-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 8px;
}

/* Notices. */
.iw-notice {
	padding: 13px 16px;
	border-radius: 10px;
	margin: 0 0 20px;
	font-size: 0.95rem;
}

.iw-notice--error {
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #991b1b;
}

.iw-notice--success {
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	color: #166534;
}

/* Review + success summary tables. */
.iw-summary {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 18px;
}

.iw-summary th,
.iw-summary td {
	text-align: left;
	padding: 11px 14px;
	border: 1px solid var(--iw-border);
	vertical-align: top;
	font-size: 0.95rem;
}

.iw-summary th {
	background: #f9fafb;
	width: 45%;
	font-weight: 600;
}

.iw-summary--center {
	max-width: 460px;
	margin: 20px auto;
}

.iw-declaration-box {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 24px;
	padding: 16px 18px;
	background: linear-gradient(0deg, #f0fdf4, #f0fdf4);
	border: 1px solid #bbf7d0;
	border-left: 4px solid var(--iw-accent);
	border-radius: 10px;
	color: #14532d;
	font-weight: 500;
	line-height: 1.45;
}

.iw-declaration-box__icon {
	flex: 0 0 auto;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--iw-accent);
	color: #fff;
	font-size: 16px;
	line-height: 28px;
	text-align: center;
}

/* Centered review / confirmation page. */
.iw-header--center {
	text-align: center;
	max-width: 720px;
	margin-left: auto;
	margin-right: auto;
}

.iw-review {
	max-width: 720px;
	margin: 0 auto;
}

.iw-review .iw-actions {
	justify-content: center;
}

/* Success screen. */
.iw-success {
	max-width: 620px;
	margin: 0 auto;
	text-align: center;
	padding: 12px;
}

.iw-success__icon {
	width: 66px;
	height: 66px;
	margin: 0 auto 18px;
	border-radius: 50%;
	background: var(--iw-accent);
	color: #fff;
	font-size: 34px;
	line-height: 66px;
}

.iw-muted {
	color: var(--iw-muted);
	font-size: 0.92rem;
}

/* Honeypot – visually hidden. */
.iw-honeypot {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
