/* Contact page – aligned with site visual identity */

.contact-page {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.contact-page__main {
	flex: 1;
	padding-top: 5rem;
	background: #fff;
}

/* Keep content area light in dark mode (match homepage; no black) */
html[data-theme="dark"] .contact-page .contact-page__main {
	background: #f0f4f8 !important;
}

/* Header on contact page – same as homepage (white bar, dark text) – always light for consistency */
body.contact-page .header.header--contact,
.contact-page .header--contact {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	background-color: #ffffff !important;
	background: #ffffff !important;
	box-shadow: 0 2px 28px 0 rgba(0, 0, 0, 0.09);
}

body.contact-page .header--contact .header__links a,
body.contact-page .header--contact .header__menu a,
.contact-page .header--contact .header__links a,
.contact-page .header--contact .header__menu a {
	color: #26233c !important;
}

body.contact-page .header--contact .header__links a:hover,
body.contact-page .header--contact .header__menu a:hover {
	color: #26233c;
}

body.contact-page .header--contact .header__toggle span,
.contact-page .header--contact .header__toggle span {
	background-color: #26233c !important;
}

/* Mobile menu panel – same as homepage (white card with brand shadow) */
body.contact-page .header.open .header__menu,
.contact-page .header.open .header__menu {
	background-color: #ffffff !important;
	background: #ffffff !important;
	box-shadow: 1px 1px 5px rgba(46, 160, 26, 0.2), -1px -2px 5px rgba(0, 184, 255, 0.2);
}

body.contact-page .header.open .header__menu a,
.contact-page .header.open .header__menu a {
	color: #26233c !important;
}

/* Keep header light on contact page even in dark theme (match homepage sticky look) */
html[data-theme="dark"] body.contact-page .header.header--contact,
html[data-theme="dark"] .contact-page .header--contact {
	background-color: #ffffff !important;
	background: #ffffff !important;
	box-shadow: 0 2px 28px 0 rgba(0, 0, 0, 0.09);
}

html[data-theme="dark"] body.contact-page .header--contact .header__links a,
html[data-theme="dark"] body.contact-page .header--contact .header__menu a,
html[data-theme="dark"] .contact-page .header--contact .header__links a,
html[data-theme="dark"] .contact-page .header--contact .header__menu a {
	color: #26233c !important;
}

html[data-theme="dark"] body.contact-page .header--contact .header__toggle span,
html[data-theme="dark"] .contact-page .header--contact .header__toggle span {
	background-color: #26233c !important;
}

html[data-theme="dark"] body.contact-page .header.open .header__menu,
html[data-theme="dark"] .contact-page .header.open .header__menu {
	background-color: #ffffff !important;
	background: #ffffff !important;
}

html[data-theme="dark"] body.contact-page .header.open .header__menu a,
html[data-theme="dark"] .contact-page .header.open .header__menu a {
	color: #26233c !important;
}

/* Hero – matches .about section gradient and site title style */
.contact-hero {
	background: linear-gradient(135deg, #00b8ff9e 0%, #2ea01a9e 100%),
		linear-gradient(135deg, #00000080, #0000);
	padding: 3rem 0 3.5rem;
	text-align: center;
}

.contact-hero__title {
	color: #fff;
	font-size: 2rem;
	font-weight: 700;
	margin-bottom: 0.75rem;
	position: relative;
	display: inline-block;
}

.contact-hero__title::after {
	content: '';
	position: absolute;
	left: 50%;
	bottom: -4px;
	transform: translateX(-50%);
	width: 60%;
	height: 3px;
	background: rgba(255, 255, 255, 0.9);
	border-radius: 2px;
}

.contact-hero__tagline {
	color: rgba(255, 255, 255, 0.95);
	font-size: 1.05rem;
	max-width: 560px;
	margin: 0 auto;
	line-height: 1.6;
}

@media (min-width: 37.5em) {
	.contact-hero {
		padding: 4rem 0 4.5rem;
	}
	.contact-hero__title {
		font-size: 2.5rem;
	}
	.contact-hero__tagline {
		font-size: 1.15rem;
	}
}

/* Section spacing and ensure all section text is visible */
.contact-page .section {
	padding: 2.5rem 0 3rem;
}

.contact-page .section .title,
.contact-page .contact-info .title,
.contact-page .contact-form-section .title {
	color: #26233c !important;
	margin-bottom: 1.5rem;
}

/* Contact info section – light background, matches homepage service/form style (no black) */
.contact-page .contact-info {
	background: #f8fafc;
}

.contact-page .contact-info .title {
	color: #26233c !important;
}

/* Contact cards */
.contact-cards {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25rem;
	margin-bottom: 0.5rem;
}

@media (min-width: 37.5em) {
	.contact-cards {
		grid-template-columns: repeat(3, 1fr);
		gap: 1.5rem;
	}
}

.contact-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 1.75rem 1.25rem;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 184, 255, 0.08);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	text-decoration: none;
	color: #26233c;
}

.contact-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 184, 255, 0.15);
}

.contact-card__icon {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: linear-gradient(135deg, #00b8ff9e 0%, #2ea01a9e 100%);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 1rem;
}

.contact-card__icon svg {
	flex-shrink: 0;
}

.contact-card__title {
	font-size: 1.1rem;
	font-weight: 700;
	margin-bottom: 0.35rem;
	color: #26233c;
}

.contact-card__value {
	font-size: 0.95rem;
	margin: 0;
	opacity: 0.85;
}

/* Form section – subtle brand tint only, no dark background (matches homepage) */
.contact-form-section {
	background: linear-gradient(180deg, rgba(0, 184, 255, 0.04) 0%, transparent 100%);
}

.contact-form-section__container {
	max-width: 520px;
	margin: 0 auto;
}

.contact-form-section__intro {
	text-align: center;
	color: #26233c;
	margin-bottom: 1.5rem;
	opacity: 0.9;
	font-size: 1rem;
}

/* Form wrapper – white card with brand shadow (same as homepage .contact__form) */
.contact-form-wrapper {
	background: #fff;
	padding: 2rem 1.5rem;
	border-radius: 12px;
	box-shadow: 1px 1px 5px rgba(46, 160, 26, 0.2), -1px -2px 5px rgba(0, 184, 255, 0.2);
}

.contact-form .form-control {
	margin-bottom: 1.25rem;
}

.contact-form label {
	display: block;
	margin-bottom: 0.4rem;
	color: #26233c;
	font-weight: 600;
	font-size: 0.95rem;
}

.contact-form .required {
	color: #c53030;
}

.contact-form input,
.contact-form textarea {
	width: 100%;
	padding: 0.65rem 0.9rem;
	border: 1px solid rgba(0, 184, 255, 0.25);
	border-radius: 8px;
	font-family: 'Cairo', sans-serif;
	font-size: 1rem;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
	outline: none;
	border-color: #00b8ff;
	box-shadow: 0 0 0 3px rgba(0, 184, 255, 0.15);
}

.contact-form textarea {
	resize: vertical;
	min-height: 120px;
}

.contact-form__submit {
	width: 100%;
	max-width: 200px;
	display: block;
	margin: 1rem auto 0;
	padding: 0.75rem 1.5rem;
	font-size: 1rem;
	border: none;
	border-radius: 8px;
	cursor: pointer;
}

.contact-form__submit:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}

/* Form feedback message – success and error */
.form-feedback {
	display: none;
	margin-bottom: 1.25rem;
	padding: 1rem 1.25rem;
	border-radius: 10px;
	font-size: 0.95rem;
	line-height: 1.5;
	align-items: flex-start;
	gap: 0.75rem;
}

.form-feedback[aria-hidden="false"] {
	display: flex;
}

.form-feedback__icon {
	flex-shrink: 0;
	width: 24px;
	height: 24px;
}

.form-feedback--success {
	background: rgba(46, 160, 26, 0.12);
	border: 1px solid rgba(46, 160, 26, 0.35);
	color: #1a5f1a;
}

.form-feedback--success .form-feedback__icon {
	color: #2ea01a;
}

.form-feedback--error {
	background: rgba(197, 48, 48, 0.08);
	border: 1px solid rgba(197, 48, 48, 0.3);
	color: #742a2a;
}

.form-feedback--error .form-feedback__icon {
	color: #c53030;
}

html[data-theme="dark"] .contact-page .form-feedback--success {
	background: rgba(46, 160, 26, 0.2);
	border-color: rgba(46, 160, 26, 0.45);
	color: #7dd87d;
}

html[data-theme="dark"] .contact-page .form-feedback--error {
	background: rgba(197, 48, 48, 0.15);
	border-color: rgba(197, 48, 48, 0.4);
	color: #f5b0b0;
}

/* Dark mode */
html[data-theme="dark"] .contact-hero {
	background: linear-gradient(135deg, #00b8ff9e 0%, #2ea01a9e 100%),
		linear-gradient(135deg, #00000080, #0000);
}

html[data-theme="dark"] .contact-hero__title,
html[data-theme="dark"] .contact-hero__tagline {
	color: #fff;
}

html[data-theme="dark"] .contact-hero__title::after {
	background: rgba(255, 255, 255, 0.9);
}

/* Contact page keeps homepage visual identity: no black/dark backgrounds on form or contact info */
html[data-theme="dark"] .contact-page .contact-info {
	background: #f8fafc !important;
}

html[data-theme="dark"] .contact-page .contact-info .title,
html[data-theme="dark"] .contact-page .contact-form-section .title {
	color: #26233c !important;
}

html[data-theme="dark"] .contact-page .contact-card {
	background: #fff !important;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 184, 255, 0.08);
	color: #26233c;
}

html[data-theme="dark"] .contact-page .contact-card:hover {
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 184, 255, 0.15);
}

html[data-theme="dark"] .contact-page .contact-card__title {
	color: #26233c !important;
}

html[data-theme="dark"] .contact-page .contact-card__value {
	opacity: 0.85;
	color: #26233c;
}

html[data-theme="dark"] .contact-page .contact-form-section {
	background: linear-gradient(180deg, rgba(0, 184, 255, 0.04) 0%, transparent 100%) !important;
}

html[data-theme="dark"] .contact-page .contact-form-wrapper {
	background: #fff !important;
	box-shadow: 1px 1px 5px rgba(46, 160, 26, 0.2), -1px -2px 5px rgba(0, 184, 255, 0.2);
}

html[data-theme="dark"] .contact-page .contact-form label,
html[data-theme="dark"] .contact-page .contact-form-section__intro {
	color: #26233c !important;
}

html[data-theme="dark"] .contact-page .contact-form input,
html[data-theme="dark"] .contact-page .contact-form textarea {
	background: #f8fafc;
	border-color: rgba(0, 184, 255, 0.25);
	color: #26233c;
}

html[data-theme="dark"] .contact-page .contact-form input::placeholder,
html[data-theme="dark"] .contact-page .contact-form textarea::placeholder {
	color: #718096;
}

html[data-theme="dark"] .contact-page .section .title {
	color: #26233c !important;
}
