@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;600;700&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ── Variables ─────────────────────────────────────── */
:root {
	--sage:      #5a7a5a;
	--sage-l:    #e8f0e8;
	--sage-xl:   #f4f8f4;
	--earth:     #8b6f47;
	--warm:      #fdf8f2;
	--wa:        #25d366;
	--wa-dark:   #128c7e;
	--ink:       #1a1a1a;
	--muted:     #6b7280;
	--border:    #dde8dd;
	--radius:    14px;
	--shadow:    0 8px 40px rgba(90,122,90,.12);
}

/* ── Wrapper ────────────────────────────────────────── */
.aif-wrap {
	font-family: 'DM Sans', sans-serif;
	max-width: 680px;
	margin: 0 auto;
	padding: 10px;
}

/* ── Card ───────────────────────────────────────────── */
.aif-card {
	background: var(--warm);
	border-radius: 24px;
	box-shadow: var(--shadow);
	overflow: hidden;
	border: 1px solid var(--border);
}

/* ── Header ─────────────────────────────────────────── */
.aif-header {
	background: linear-gradient(135deg, #3d5e3d 0%, #5a7a5a 50%, #7a9a6a 100%);
	padding: 44px 44px 36px;
	text-align: center;
	position: relative;
}
.aif-header::after {
	content: '';
	position: absolute;
	bottom: -1px; left: 0; right: 0;
	height: 24px;
	background: var(--warm);
	border-radius: 24px 24px 0 0;
}
.aif-leaf {
	font-size: 40px;
	display: block;
	margin-bottom: 10px;
	animation: sway 3s ease-in-out infinite;
}
@keyframes sway {
	0%, 100% { transform: rotate(-5deg); }
	50%       { transform: rotate(5deg); }
}
.aif-title {
	font-family: 'Cormorant Garamond', serif;
	font-size: 34px;
	font-weight: 700;
	color: #fff;
	margin: 0 0 8px;
	letter-spacing: -.3px;
	line-height: 1.2;
}
.aif-subtitle {
	color: rgba(255,255,255,.8);
	font-size: 15px;
	font-weight: 300;
	margin: 0;
}

/* ── Form body ──────────────────────────────────────── */
#aif-form {
	padding: 32px 40px 40px;
}
@media (max-width: 580px) {
	#aif-form        { padding: 24px 20px 28px; }
	.aif-header      { padding: 32px 24px 28px; }
	.aif-title       { font-size: 26px; }
}

/* ── Grid row ───────────────────────────────────────── */
.aif-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
}
@media (max-width: 540px) { .aif-row { grid-template-columns: 1fr; } }

/* ── Field ──────────────────────────────────────────── */
.aif-field { margin-bottom: 20px; }

.aif-label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--sage);
	margin-bottom: 7px;
	letter-spacing: .2px;
}
.aif-icon { margin-right: 4px; }
.aif-req  { color: #e57373; }

.aif-input {
	width: 100%;
	padding: 12px 16px;
	border: 2px solid var(--border);
	border-radius: var(--radius);
	font-family: 'DM Sans', sans-serif;
	font-size: 15px;
	color: var(--ink);
	background: #fff;
	transition: border-color .2s, box-shadow .2s;
	box-sizing: border-box;
	outline: none;
}
.aif-input::placeholder { color: #b0bdb0; }
.aif-input:focus {
	border-color: var(--sage);
	box-shadow: 0 0 0 4px rgba(90,122,90,.1);
}
.aif-input.error { border-color: #e57373; box-shadow: 0 0 0 4px rgba(229,115,115,.1); }
.aif-textarea { resize: vertical; min-height: 120px; line-height: 1.6; }

/* ── Consult Mode Cards ──────────────────────────────── */
.aif-modes {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}
@media (max-width: 480px) { .aif-modes { grid-template-columns: 1fr; } }

.aif-mode input[type="radio"] { display: none; }

.aif-mode-card {
	border: 2px solid var(--border);
	border-radius: var(--radius);
	padding: 20px 18px;
	cursor: pointer;
	transition: all .2s;
	background: #fff;
	position: relative;
	text-align: center;
}
.aif-mode-card:hover {
	border-color: var(--sage);
	box-shadow: 0 4px 16px rgba(90,122,90,.12);
	transform: translateY(-2px);
}
.aif-mode input:checked + .aif-mode-card {
	border-color: var(--sage);
	background: var(--sage-l);
	box-shadow: 0 4px 20px rgba(90,122,90,.18);
}
.aif-mode-icon  { font-size: 32px; margin-bottom: 8px; }
.aif-mode-title { font-family: 'Cormorant Garamond', serif; font-size: 20px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.aif-mode-desc  { font-size: 12px; color: var(--muted); line-height: 1.5; }
.aif-mode-check {
	position: absolute;
	top: 10px; right: 12px;
	width: 22px; height: 22px;
	background: var(--sage);
	border-radius: 50%;
	color: #fff;
	font-size: 13px;
	display: flex; align-items: center; justify-content: center;
	opacity: 0;
	transition: opacity .2s, transform .2s;
	transform: scale(.6);
}
.aif-mode input:checked + .aif-mode-card .aif-mode-check {
	opacity: 1;
	transform: scale(1);
}

/* ── Error ───────────────────────────────────────────── */
.aif-error {
	background: #fef2f2;
	border: 1px solid #fca5a5;
	border-radius: 10px;
	padding: 12px 16px;
	color: #991b1b;
	font-size: 14px;
	margin-bottom: 18px;
}

/* ── Button ──────────────────────────────────────────── */
.aif-btn {
	width: 100%;
	padding: 16px 24px;
	background: linear-gradient(135deg, var(--wa-dark), var(--wa));
	color: #fff;
	border: none;
	border-radius: var(--radius);
	font-family: 'DM Sans', sans-serif;
	font-size: 17px;
	font-weight: 600;
	cursor: pointer;
	transition: all .2s;
	margin-top: 8px;
	letter-spacing: .2px;
	box-shadow: 0 4px 20px rgba(37,211,102,.3);
}
.aif-btn:hover:not(:disabled) {
	transform: translateY(-2px);
	box-shadow: 0 8px 28px rgba(37,211,102,.4);
}
.aif-btn:active { transform: translateY(0); }
.aif-btn:disabled { opacity: .7; cursor: not-allowed; transform: none; }

.aif-btn-outline {
	background: transparent;
	border: 2px solid var(--sage);
	color: var(--sage);
	box-shadow: none;
	margin-top: 16px;
}
.aif-btn-outline:hover { background: var(--sage-l); box-shadow: none; }

/* ── Privacy note ────────────────────────────────────── */
.aif-privacy {
	text-align: center;
	font-size: 12px;
	color: var(--muted);
	margin: 12px 0 0;
}

/* ── Success screen ──────────────────────────────────── */
.aif-success {
	padding: 60px 40px;
	text-align: center;
}
.aif-success-icon  { font-size: 60px; margin-bottom: 16px; animation: pop .5s cubic-bezier(.34,1.56,.64,1); }
@keyframes pop { from { transform: scale(.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.aif-success-title { font-family: 'Cormorant Garamond', serif; font-size: 32px; font-weight: 700; color: var(--ink); margin: 0 0 10px; }
.aif-success-msg   { color: var(--muted); font-size: 15px; line-height: 1.6; margin: 0 0 24px; }
