/* =========================================================
 *  Investwell Custom Lead Form styles
 *  Responsive (desktop + mobile)
 * ========================================================= */

.iw-lead-wrap {
	max-width: 640px;
	margin: 60px auto;
	padding: 0 16px;
	font-family: "Inter", sans-serif;
}

.iw-lead-card {
	background: #ffffff;
	border: 0.5px solid #cccccc;
	border-radius: 8px;
	padding: 32px;
	box-shadow: 0 4px 18px rgba( 0, 0, 0, 0.06 );
}

.iw-lead-title {
	font-size: 28px;
	line-height: 1.2;
	text-align: center;
	margin: 0 0 8px;
	color: #1a1a1a;
}

.iw-lead-sub {
	text-align: center;
	color: #666666;
	font-size: 15px;
	margin: 0 0 24px;
}

/* ---------------- Fields ---------------- */


.iw-field:nth-of-type(5),
.iw-field:nth-of-type(6),
.iw-field:nth-of-type(7) {
    margin-bottom: 10px;
}
.iw-field label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: #333333;
	margin-bottom: 6px;
}

.iw-req {
	color: #e02b2b;
}

.iw-field input[type="text"],
.iw-field input[type="email"],
.iw-field input[type="tel"],
.iw-field select,
.iw-field textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 10px 12px;
	font-size: 15px;
	border: 1px solid #cfcfcf;
	border-radius: 6px;
	background: #fff;
	color: #222;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.iw-field input:focus,
.iw-field select:focus,
.iw-field textarea:focus {
	outline: none;
	border-color: #3498db;
	box-shadow: 0 0 0 3px rgba( 52, 152, 219, 0.15 );
}

.iw-field textarea {
	resize: vertical;
}

/* Phone with +91 prefix */
.iw-phone-wrap {
	display: flex;
	align-items: stretch;
}

.iw-country-code {
	display: flex;
	align-items: center;
	background: #ededed;
	border: 1px solid #cfcfcf;
	border-right: none;
	border-radius: 6px 0 0 6px;
	padding: 0 12px;
	font-size: 14px;
	color: #555;
	white-space: nowrap;
}

.iw-phone-wrap input {
	border-top-left-radius: 0 !important;
	border-bottom-left-radius: 0 !important;
}

/* Inline field errors */
.iw-field-error {
	display: block;
	color: #e02b2b;
	font-size: 12.5px;
	margin-top: 4px;
	min-height: 14px;
}

/* ---------------- Honeypot (hidden off-screen, not display:none) ---------------- */
.iw-hp {
	position: absolute !important;
	left: -9999px !important;
	top: -9999px !important;
	height: 0;
	width: 0;
	overflow: hidden;
}

/* ---------------- Status message ---------------- */
.iw-status {
	display: none;
	margin: 8px 0 16px;
	padding: 10px 14px;
	border-radius: 6px;
	font-size: 14px;
}

.iw-status-error {
	background: #fdecec;
	color: #b3261e;
	border: 1px solid #f5c2c0;
}

.iw-status-success {
	background: #e9f7ef;
	color: #1e7e44;
	border: 1px solid #b6e2c6;
}

.iw-error-box {
	background: #fdecec;
	color: #b3261e;
	padding: 10px 14px;
	border-radius: 6px;
}

/* ---------------- Buttons ---------------- */
.iw-actions {
	display: flex;
	gap: 12px;
	margin-top: 8px;
}

.iw-btn {
	position: relative;
	flex: 1 1 auto;
	border: none;
	border-radius: 6px;
	padding: 13px 18px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
}

.iw-lead-form .iw-btn-primary {
	background: #0a79b6  !important;
	color: #ffffff !important;
	border: none !important;
	font-size: 16px;
}

.iw-lead-form .iw-btn-primary:hover:not( :disabled ) {
	background: #2c81bd !important;
}

/* Brochure (secondary) ENABLED — crisp blue border + blue text */
.iw-lead-form .iw-btn-secondary {
	background: #ffffff !important;
	color: #066ba2 !important;
	border: 1.5px solid #066ba2 !important;
	font-size: 16px;
}
.iw-actions button {
    max-width: 265px;
}

.iw-lead-form .iw-btn-secondary:hover:not( :disabled ) {
	background: #f1f8fd !important;
}

/* Primary button disabled (e.g. while submitting) — mild fade */
.iw-lead-form .iw-btn-primary:disabled {
	opacity: 0.6 !important;
	cursor: not-allowed !important;
}

/* Brochure (secondary) DISABLED — neutral grey until Name + Email + Phone valid.
   Covers both :disabled and [disabled] so it always wins. */
.iw-lead-form .iw-btn-secondary:disabled,
.iw-lead-form .iw-btn-secondary[disabled] {
	background: #ffffff !important;
	color: #b9c0c7 !important;
	border: 1.5px solid #e2e6ea !important;
	opacity: 1 !important;
	cursor: not-allowed !important;
}

.iw-lead-form .iw-btn-secondary:disabled:hover {
	background: #ffffff !important; /* no hover effect while disabled */
}

/* Spinner inside button */
.iw-spinner {
	display: none;
	width: 16px;
	height: 16px;
	margin-left: 8px;
	border: 2px solid rgba( 255, 255, 255, 0.5 );
	border-top-color: #ffffff;
	border-radius: 50%;
	vertical-align: middle;
	animation: iw-spin 0.7s linear infinite;
}

.iw-btn-secondary .iw-spinner {
	border: 2px solid rgba( 52, 152, 219, 0.35 );
	border-top-color: #3498db;
}

.iw-btn.is-loading .iw-spinner {
	display: inline-block;
}

.iw-btn.is-loading .iw-btn-text {
	opacity: 0.85;
}

@keyframes iw-spin {
	to {
		transform: rotate( 360deg );
	}
}

.iw-hint {
	font-size: 12.5px;
	color: #888;
	margin: 10px 0 0;
	text-align: center;
}

/* ---------------- Mobile ---------------- */
@media ( max-width: 600px ) {
	.iw-lead-wrap {
		margin: 30px auto;
	}

	.iw-lead-card {
		padding: 22px 18px;
	}

	.iw-lead-title {
		font-size: 23px;
	}

	.iw-actions {
		flex-direction: column;
	}
}