/* ============================================================
   Emerald Golf Outing Inquiry Form
   Client-mockup match — responsive
   DEFENSIVE: scoped + hardened against Elementor/theme overrides
   ============================================================ */
.ego-wrap {
	--ego-green:      #2f5a2a;
	--ego-green-dark: #274d24;
	--ego-card:       #f7f5ec;
	--ego-border:     #d3d8ce;
	--ego-req:        #c0392b;
	--ego-label:      #2b2b2b;
	--ego-input-bg:   #ffffff;
}

/* -------- Reset: neutralise inherited Elementor/theme styles -------- */
.ego-wrap,
.ego-wrap *,
.ego-wrap *::before,
.ego-wrap *::after {
	box-sizing: border-box !important;
}
.ego-wrap * {
	margin: 0;
	padding: 0;
	float: none !important;
	max-width: none;
	letter-spacing: normal !important;
	text-transform: none !important;
	text-shadow: none !important;
}
.ego-wrap label,
.ego-wrap h2,
.ego-wrap h3,
.ego-wrap p,
.ego-wrap span,
.ego-wrap div {
	background: transparent;
}

/* Outer background */
.ego-wrap {
	background-image: linear-gradient(165deg, #b9d3e6 0%, #cfe4d1 34%, #8fb26a 68%, #6f9a4e 100%);
	background-size: cover;
	background-position: center;
	padding: 40px 16px !important;
	width: 100%;
	box-sizing: border-box;
}

/* Card */
.ego-wrap .ego-card {
	max-width: 860px;
	margin: 0 auto !important;
	background: var(--ego-card) !important;
	border-radius: 26px !important;
	padding: 40px 44px 48px !important;
	box-shadow: 0 18px 50px rgba(0, 0, 0, .18) !important;
	border: none !important;
}

/* Header */
.ego-wrap .ego-header {
	display: flex !important;
	align-items: center;
	gap: 14px;
	margin-bottom: 30px !important;
}
.ego-wrap .ego-flag svg {
	width: 78px !important;
	height: auto !important;
	display: block;
	max-width: 78px !important;
}
.ego-wrap .ego-title {
	font-family: 'Playfair Display', Georgia, 'Times New Roman', serif !important;
	color: var(--ego-green) !important;
	font-size: clamp(30px, 5vw, 52px) !important;
	font-weight: 700 !important;
	line-height: 1.05 !important;
	margin: 0 !important;
	padding: 0 !important;
	text-align: left !important;
	border: none !important;
}

/* Section titles */
.ego-wrap .ego-section-title {
	font-family: 'Playfair Display', Georgia, serif !important;
	color: var(--ego-green) !important;
	font-size: 23px !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	margin: 30px 0 20px !important;
	padding: 0 0 10px !important;
	border-bottom: 1px solid #c9cfc2 !important;
	text-align: left !important;
}

/* Fields */
.ego-wrap .ego-field {
	margin-bottom: 20px !important;
}
.ego-wrap .ego-field > label {
	display: block !important;
	margin-bottom: 8px !important;
	font-family: inherit;
	font-size: 14px !important;
	font-weight: 600 !important;
	line-height: 1.3 !important;
	color: var(--ego-label) !important;
	text-align: left !important;
}
.ego-wrap .ego-req { color: var(--ego-req) !important; }
.ego-wrap .ego-opt { color: #8a8a8a !important; font-weight: 400 !important; }

.ego-wrap .ego-field input[type="text"],
.ego-wrap .ego-field input[type="email"],
.ego-wrap .ego-field input[type="tel"],
.ego-wrap .ego-field input[type="url"],
.ego-wrap .ego-field input[type="number"],
.ego-wrap .ego-field input[type="date"],
.ego-wrap .ego-field select,
.ego-wrap .ego-field textarea {
	width: 100% !important;
	height: auto !important;
	min-height: 0 !important;
	padding: 12px 14px !important;
	margin: 0 !important;
	border: 1px solid var(--ego-border) !important;
	border-radius: 8px !important;
	font-family: inherit !important;
	font-size: 15px !important;
	line-height: 1.4 !important;
	color: #333 !important;
	background: var(--ego-input-bg) !important;
	background-image: none !important;
	box-shadow: none !important;
	-webkit-appearance: none;
	appearance: none;
	text-transform: none !important;
}
.ego-wrap .ego-field select {
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: right 14px center !important;
	padding-right: 40px !important;
}
.ego-wrap .ego-field textarea { resize: vertical !important; }
.ego-wrap .ego-field input:focus,
.ego-wrap .ego-field select:focus,
.ego-wrap .ego-field textarea:focus {
	outline: none !important;
	border-color: var(--ego-green) !important;
	box-shadow: 0 0 0 3px rgba(47, 90, 42, .12) !important;
}
.ego-wrap .ego-field ::placeholder { color: #9a9a9a !important; opacity: 1 !important; }

/* Grids */
.ego-wrap .ego-grid { display: grid !important; gap: 0 26px !important; }
.ego-wrap .ego-grid-2 { grid-template-columns: 1fr 1fr !important; }
.ego-wrap .ego-grid-3 { grid-template-columns: 1fr 1fr 1fr !important; }
.ego-wrap .ego-grid-services { grid-template-columns: 0.9fr 1.1fr !important; gap: 0 32px !important; }

/* Radios & checkboxes */
.ego-wrap .ego-radios { display: flex !important; flex-direction: column !important; gap: 10px !important; padding-top: 2px !important; }
.ego-wrap .ego-radios-inline { flex-direction: row !important; flex-wrap: wrap !important; gap: 8px 26px !important; }
.ego-wrap .ego-radio,
.ego-wrap .ego-check {
	display: flex !important;
	align-items: center !important;
	gap: 9px !important;
	margin: 0 !important;
	font-family: inherit !important;
	font-size: 14.5px !important;
	font-weight: 400 !important;
	line-height: 1.3 !important;
	color: #333 !important;
	cursor: pointer !important;
	text-transform: none !important;
}
.ego-wrap .ego-radio input,
.ego-wrap .ego-check input[type="checkbox"] {
	width: 17px !important;
	height: 17px !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	accent-color: var(--ego-green);
	-webkit-appearance: auto;
	appearance: auto;
	flex: 0 0 auto !important;
	box-shadow: none !important;
}
.ego-wrap .ego-checks { display: flex !important; flex-direction: column !important; gap: 11px !important; padding-top: 2px !important; }
.ego-wrap .ego-check-other { flex-wrap: wrap !important; }
.ego-wrap .ego-other-input {
	flex: 1 1 150px !important;
	min-width: 130px !important;
	width: auto !important;
	padding: 7px 10px !important;
	font-size: 14px !important;
	border: 1px solid var(--ego-border) !important;
	border-radius: 6px !important;
	margin-left: 4px !important;
	background: #fff !important;
}

/* Submit */
.ego-wrap .ego-submit-wrap { text-align: center !important; margin-top: 30px !important; }
.ego-wrap .ego-submit-btn {
	display: inline-block !important;
	width: auto !important;
	background: var(--ego-green-dark) !important;
	background-image: none !important;
	color: #fff !important;
	border: none !important;
	padding: 15px 46px !important;
	font-family: inherit !important;
	font-size: 16px !important;
	font-weight: 600 !important;
	line-height: 1.2 !important;
	border-radius: 8px !important;
	cursor: pointer !important;
	letter-spacing: .2px !important;
	text-transform: none !important;
	text-shadow: none !important;
	box-shadow: none !important;
	transition: background .15s, transform .05s;
}
.ego-wrap .ego-submit-btn:hover { background: #1f3d1d !important; }
.ego-wrap .ego-submit-btn:active { transform: translateY(1px); }

/* Alerts */
.ego-wrap .ego-alert { padding: 14px 18px !important; border-radius: 8px !important; margin-bottom: 22px !important; font-family: inherit !important; font-size: 15px !important; line-height: 1.4 !important; }
.ego-wrap .ego-success { background: #e7f6ec !important; border: 1px solid var(--ego-green) !important; color: #1f5c2f !important; }
.ego-wrap .ego-error { background: #fdecea !important; border: 1px solid #b32d2e !important; color: #a11d1a !important; }

/* Honeypot */
.ego-wrap .ego-hp { position: absolute !important; left: -9999px !important; top: -9999px !important; height: 0 !important; overflow: hidden !important; }

/* ---------------- Responsive ---------------- */
@media (max-width: 820px) {
	.ego-wrap .ego-card { padding: 32px 26px 38px !important; border-radius: 20px !important; }
	.ego-wrap .ego-grid-3 { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 600px) {
	.ego-wrap { padding: 20px 10px !important; }
	.ego-wrap .ego-card { padding: 26px 18px 32px !important; }
	.ego-wrap .ego-header { gap: 10px !important; margin-bottom: 22px !important; }
	.ego-wrap .ego-flag svg { width: 56px !important; max-width: 56px !important; }
	.ego-wrap .ego-grid-2,
	.ego-wrap .ego-grid-3,
	.ego-wrap .ego-grid-services { grid-template-columns: 1fr !important; }
	.ego-wrap .ego-radios-inline { flex-direction: column !important; gap: 10px !important; }
	.ego-wrap .ego-submit-btn { width: 100% !important; }
}
