/* ============================================================
   CONTACT PAGE
   Extracted from the main style.css to cut unused CSS weight on
   every OTHER page - this file now loads ONLY on its own template,
   enqueued conditionally in functions.php. See that file's comment
   for the full explanation (PageSpeed Insights 'Reduce unused CSS'
   finding).
   ============================================================ */

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-hero { position: relative; overflow: hidden; padding: 72px 0; background: linear-gradient(180deg, rgba(247,244,232,0.2) 0%, rgba(238,243,230,0.2) 100%), url('../images/contact-hero-bg.webp') right center/cover no-repeat; }
.contact-hero .container { position: relative; z-index: 1; }
.ch-content { max-width: 620px; }
.ch-title { font-family: var(--font-heading); font-size: clamp(32px, 3.6vw, 44px); font-weight: 700; color: var(--green); margin-bottom: 14px; line-height: 1.2; }
.ch-desc { font-size: 18px; font-weight: 300; color: var(--text-body); line-height: 1.7; max-width: 560px; }

.contact-team { padding: 80px 0; }
.ct-head { text-align: center; margin-bottom: 44px; }
.ct-head .section-title { margin-bottom: 0; }

.cc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cc-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: 16px; padding: 24px; box-shadow: var(--shadow-sm); transition: var(--transition); }
.cc-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.cc-card-span2 { grid-column: span 2; }
.cc-label { display: block; font-size: 14px; font-weight: 600; color: var(--green-mid); margin-bottom: 14px; }
.cc-row { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.cc-icon { flex-shrink: 0; width: 44px; height: 44px; border-radius: 10px; background: var(--green-pale); color: var(--green-mid); display: flex; align-items: center; justify-content: center; }
.cc-icon svg { width: 20px; height: 20px; }
.cc-detail { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cc-phone { font-size: 17px; font-weight: 700; color: var(--text-dark); }
.cc-email { font-size: 14.5px; font-weight: 700; color: var(--text-dark); word-break: break-word; }
.cc-phone:hover, .cc-email:hover { color: var(--green-mid); }
.cc-desc { font-size: 15.5px; color: var(--gray-500); line-height: 1.5; margin: 0; }

.contact-form-section { padding: 0 0 90px; }
.cf-head { text-align: center; margin-bottom: 36px; }
.cf-title { font-family: var(--font-heading); font-weight: 700; font-size: clamp(28px, 3vw, 35px); color: var(--text-dark); margin-bottom: 14px; }
.cf-title .text-green { color: var(--green-mid); }
.cf-sub { font-size: 18px; font-weight: 300; color: var(--text-body); line-height: 1.6; margin: 0 auto; }

.cf-alert { max-width: 1100px; margin: 0 auto 24px; padding: 14px 18px; border-radius: 10px; font-size: 16px; text-align: center; }
.cf-alert-success { background: var(--green-pale); color: var(--green); }
.cf-alert-error { background: #FDECEC; color: #B3261E; }

.cf-grid { display: grid; grid-template-columns: 340px 1fr; gap: 24px; max-width: 1100px; margin: 0 auto; align-items: stretch; }

.cf-details { background: linear-gradient(360deg, var(--green), var(--green-mid)); border-radius: 20px; padding: 36px 32px; color: #fff; }
.cf-details h3 { font-family: var(--font-heading); font-size: 24px; font-weight: 700; margin-bottom: 12px; }
.cf-details-note { font-size: 16px; color: rgba(255,255,255,0.85); line-height: 1.6; margin-bottom: 28px; }
.cf-detail-row { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 22px; }
.cf-detail-row:last-child { margin-bottom: 0; }
.cf-detail-icon { flex-shrink: 0; width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,0.15); display: flex; align-items: center; justify-content: center; color: #fff; }
.cf-detail-icon svg { width: 18px; height: 18px; }
.cf-detail-label { display: block; font-size: 15px; color: rgba(255,255,255,0.75); margin-bottom: 4px; }
.cf-detail-value { display: block; font-size: 17px; font-weight: 600; color: #fff; line-height: 1.5; }

.cf-form-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: 20px; padding: 36px 34px; box-shadow: var(--shadow-sm); }
.cf-form-title { font-family: var(--font-heading); font-size: clamp(22px, 2.2vw, 25px); font-weight: 700; color: var(--text-dark); margin-bottom: 24px; }
.cf-form-title .text-green { color: var(--green-mid); }

.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 18px; }
.cf-field { display: flex; flex-direction: column; margin-bottom: 18px; }
.cf-row .cf-field { margin-bottom: 0; }
.cf-field label { font-size: 14px; font-weight: 500; color: var(--text-dark); margin-bottom: 8px; }
.cf-field label .req { color: var(--green-mid); margin-left: 2px; }
.cf-field input, .cf-field textarea { font-family: var(--font-body); font-size: 16px; padding: 13px 16px; border: 1px solid var(--gray-200); border-radius: 10px; background: var(--gray-100); color: var(--text-dark); transition: var(--transition); }
.cf-field input::placeholder, .cf-field textarea::placeholder { color: var(--gray-500); }
.cf-field input:focus, .cf-field textarea:focus { outline: none; border-color: var(--green-mid); background: var(--white); box-shadow: 0 0 0 3px rgba(28,138,89,0.12); }
.cf-field textarea { resize: vertical; min-height: 120px; }

.cf-actions { display: flex; justify-content: flex-end; margin-top: 8px; }
.cf-submit { display: inline-flex; align-items: center; gap: 14px; background: var(--green-mid); color: #fff; border-radius: 10px; padding: 8px 8px 8px 26px; font-size: 17px; font-weight: 500; transition: var(--transition); }
.cf-submit:hover { background: var(--green-mid); }
.cf-submit-icon { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--white); color: var(--green); flex-shrink: 0; }
.cf-submit-icon svg { width: 16px; height: 16px; }

.office-map-section { padding: 70px 0 90px; background: var(--green-pale); }
.om-head { text-align: center; margin-bottom: 32px; }
.om-title { font-family: var(--font-heading); font-weight: 700; font-size: clamp(26px, 2.8vw, 35px); color: var(--text-dark); margin-bottom: 12px; }
.om-title .text-green { color: var(--green-mid); }
.om-sub { font-size: 18px; font-weight: 300; color: var(--text-body); line-height: 1.6; }
.om-frame { border-radius: 20px; overflow: hidden; aspect-ratio: 1200 / 470; max-width: 1200px; margin: 0 auto; box-shadow: var(--shadow-sm); }
.om-frame iframe { width: 100%; height: 100%; display: block; }

.contact-support { padding: 0 0 90px; }
.cs-title { text-align: center; font-family: var(--font-heading); font-weight: 700; font-size: clamp(26px, 2.6vw, 32px); color: var(--text-dark); margin-bottom: 28px; }
.cc-card-wide { position: relative; max-width: 900px; padding-right: 130px; overflow: hidden; }
.cc-wheat { position: absolute; right: 28px; bottom: 0%; transform: translateY(-0%); width: 34px; height: auto; opacity: 0.9; pointer-events: none; }

@media (max-width: 1024px) {
	.cc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
	.cf-grid { grid-template-columns: 1fr; }
	.cf-details { order: 2; }
	.cf-form-card { order: 1; }
}
/* The .edge-card responsive fragment that used to be here was moved back
   to the main style.css - it's homepage-only CSS (THE RAMAJEYAM EDGE
   carousel on front-page.php), not Contact page content; it had been
   swept into this file's line range by mistake during the original split. */

@media (max-width: 640px) {
	.contact-hero { padding: 44px 0; background: linear-gradient(180deg, rgba(247,244,232,0.2) 0%, rgba(238,243,230,0.2) 100%), url('./images/contact-hero-bg.webp') center/cover no-repeat; }
	.ch-title { font-size: 28px; }
	.ch-desc { font-size: 16.5px; }
	.contact-team { padding: 56px 0; }
	.cc-grid { grid-template-columns: 1fr; gap: 16px; }
	.cc-card-span2 { grid-column: span 1; }
	.contact-form-section { padding: 0 0 56px; }
	.cf-sub br { display: none; }
	.cf-details, .cf-form-card { padding: 26px 22px; }
	.cf-row { grid-template-columns: 1fr; gap: 0; }
	.cf-actions { justify-content: stretch; }
	.cf-submit { width: 100%; justify-content: center; }
	.contact-support { padding: 0 0 56px; }
	.office-map-section { padding: 44px 0 56px; }
	.om-sub br { display: none; }
	.om-frame { aspect-ratio: 4 / 3; }
	.cc-card-wide { padding-right: 24px; }
	.cc-wheat { display: none; }
}

