/* Rajah's College Elementor Widgets */
.rcw {
	--rcw-navy: #172d52;
	--rcw-navy-deep: #10213e;
	--rcw-gold: #f59e0b;
	--rcw-gold-light: #f59e0b;
	--rcw-ink: #26344b;
	--rcw-muted: #657187;
	--rcw-line: #e3e8f0;
	--rcw-shadow: 0 14px 35px rgba(23, 45, 82, .09);
	--rcw-radius: 18px;
	color: var(--rcw-ink);
	line-height: 1.65;
	box-sizing: border-box;
}
.rcw *, .rcw *::before, .rcw *::after { box-sizing: border-box; }
.rcw h1, .rcw h2, .rcw h3 {}

/* Eyebrow */
.rcw-eyebrow {
	display: inline-flex; align-items: center; gap: 10px;
	color: var(--rcw-gold-light);
	font-size: 14px; font-weight: 600; 
}
.rcw-eyebrow::before, .rcw-eyebrow::after { content: ""; width: 30px; height: 1px; background: var(--rcw-gold); }
.rcw-eyebrow--dark { color:#f59e0b; }

/* Hero */
.rcw-hero {
	--rcw-ov1: rgba(13, 29, 55, .92);
	--rcw-ov2: rgba(23, 45, 82, .72);
	--rcw-bg: none;
	position: relative; isolation: isolate; min-height: 310px;
	display: grid; place-items: center; overflow: hidden; text-align: center; color: #fff;
	background: linear-gradient(110deg, var(--rcw-ov1), var(--rcw-ov2)), var(--rcw-bg) center 45% / cover;
	background-color: var(--rcw-navy);
}
.rcw-hero::after {
	content: ""; position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; height: 5px;
	background: linear-gradient(90deg, transparent, var(--rcw-gold), transparent);
}
.rcw-hero__content { padding: 40px 0; }
.rcw-hero__title { margin: 10px 0 12px; color: #fff; font-size: clamp(42px, 6vw, 68px); font-weight: 500; line-height: 1.1; }
.rcw-hero__desc { max-width: 620px; margin: 0 auto; color: rgba(255,255,255,.84); font-size: 16px; }

/* Section heading */
.rcw-contact-section { padding: 40px 0; }
.rcw-section-heading { text-align: center; margin-bottom: 34px; }
.rcw-section-heading h2 { margin: 8px 0 10px; color: var(--rcw-navy); font-size: clamp(29px, 4vw, 40px); line-height: 1.2; }
.rcw-section-heading p { margin: 0 auto; max-width: 650px; color: var(--rcw-muted); }
.rcw-gold-rule { display: block; width: 56px; height: 3px; border-radius: 4px; margin: 16px auto 0; background: var(--rcw-gold); }

/* Cards */
.rcw-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.rcw-card {
	padding: 30px 24px; min-height: 245px; text-align: center;
	border: 1px solid var(--rcw-line); border-radius: var(--rcw-radius);
	background: #fff; box-shadow: var(--rcw-shadow);
	transition: transform .2s ease, border-color .2s ease;
}
.rcw-card:hover { transform: translateY(-5px); border-color: rgba(217,160,46,.7); }
.rcw-icon {
	width: 62px; height: 62px; display: grid; place-items: center;
	margin: 0 auto 16px; border-radius: 50%; color: var(--rcw-navy); background: #edf1f8; font-size: 24px;
}
.rcw-icon svg { width: 27px; height: 27px; fill: currentColor; }
.rcw-icon i { line-height: 1; }
.rcw-card h3 { margin: 0 0 10px; color: var(--rcw-navy); font-size: 23px; }
.rcw-card__text { color: var(--rcw-muted); font-size: 14px; }
.rcw-card__text p { margin: 0 0 8px; }
.rcw-card__text p:last-child { margin-bottom: 0; }
.rcw-card a { color: #245b9d; overflow-wrap: anywhere; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.rcw-card a:hover { color: #b27b0c; }

/* Form + map */
.rcw-message-section { padding: 32px 0 20px; }
.rcw-message-panel {
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 36px; padding: clamp(22px, 4vw, 44px);
	border: 1px solid var(--rcw-line); border-radius: 24px;
	background: linear-gradient(145deg, #f8f9fc, #fff);
}
.rcw-message-panel--single { grid-template-columns: minmax(0, 1fr); }
.rcw-form-heading h2 { margin: 0; color: var(--rcw-navy); font-size: clamp(29px, 3vw, 36px); }
.rcw-form-heading p { margin: 8px 0 24px; color: var(--rcw-muted); font-size: 14px; }
.rcw-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rcw-field { display: flex; flex-direction: column; gap: 6px; }
.rcw-field.rcw-full { grid-column: 1 / -1; }
.rcw-field label { color: var(--rcw-navy); font-size: 13px; font-weight: 700; }
.rcw-field input, .rcw-field textarea {
	width: 100%; border: 1px solid #dce2ec; border-radius: 9px; padding: 13px 14px;
	color: var(--rcw-ink); background: #fff; font: inherit; font-size: 14px; outline: none;
	transition: border-color .2s, box-shadow .2s; margin-bottom:0px;
}
.rcw-field input { min-height: 48px; }
.rcw-field textarea { min-height: 135px; resize: vertical; }
.rcw-field input:focus, .rcw-field textarea:focus { border-color: var(--rcw-gold); box-shadow: 0 0 0 3px rgba(217,160,46,.15); }
.rcw-field ::placeholder { color: #929bad; }
.rcw-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rcw-form-note { margin: 12px 0 0; color: var(--rcw-muted); font-size: 12px; }
.rcw-submit {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	margin-top: 20px; min-height: 50px; padding: 13px 25px; border: 0; border-radius: 9px;
	background: var(--rcw-navy); color: #fff; font: inherit; font-size: 13px; font-weight: 750; letter-spacing: .5px;
	cursor: pointer; transition: background .2s, transform .2s, opacity .2s;
}
.rcw-submit:hover { background: #244779; transform: translateY(-1px); }
.rcw-submit:disabled { opacity: .6; cursor: wait; transform: none; }
.rcw-submit svg { width: 17px; height: 17px; }
.rcw-form-status { margin-top: 14px; color: var(--rcw-navy); font-size: 13px; min-height: 1.5em; }

.rcw-map { min-height: 420px; height: 100%; display: flex; flex-direction: column; overflow: hidden; border: 5px solid #fff; border-radius: 17px; box-shadow: 0 8px 24px rgba(23,45,82,.1); background: #e8edf4; }
.rcw-map iframe { display: block; flex: 1; width: 100%; min-height: 420px; border: 0; }
.rcw-map-caption { padding: 15px 17px; background: #fff; border-top: 1px solid var(--rcw-line); }
.rcw-map-caption strong { display: block; color: var(--rcw-navy);  font-size: 17px; }
.rcw-map-caption span { display: block; margin-top: 3px; color: var(--rcw-muted); font-size: 12px; }
.rcw-error {
    color: red;
    font-size: 12px;
}
/* Responsive */
@media (max-width: 800px) {
	.rcw-message-panel { grid-template-columns: 1fr; }
	.rcw-map, .rcw-map iframe { min-height: 340px; }
	.rcw-card { min-height: 0; padding: 25px 20px; }
}
@media (max-width: 520px) {
	.rcw-hero { min-height: 270px; }
	.rcw-hero__content { padding: 48px 14px 55px; }
	.rcw-hero__desc { font-size: 14px; }
	.rcw-contact-section { padding-top: 48px; }
	.rcw-form-grid { grid-template-columns: 1fr; }
	.rcw-field.rcw-full { grid-column: auto; }
	.rcw-message-section { padding-bottom: 48px; }
	.rcw-message-panel { padding: 22px 16px; border-radius: 17px; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: .01ms !important; }
}
