/* ===== LoanSure — Contact page styles ===== */
:root {
  --green-900: #0a6b2f;
  --green-700: #12a04a;
  --green-500: #34c759;
  --green-400: #57d465;
  --gold: #ffc93c;
  --ink: #14321f;
  --ink-soft: #4a6152;
  --bg: #f4faf4;
  --card: #ffffff;
  --line: #e4efe6;
  --shadow: 0 18px 45px rgba(18, 122, 58, .12);
  --grad: linear-gradient(135deg, #8fe04a 0%, #21b34a 55%, #0a8c3e 100%);
  --grad-soft: linear-gradient(135deg, #eafbe6 0%, #d6f5d3 100%);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Prompt', 'Kanit', system-ui, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.7; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: 'Kanit', sans-serif; line-height: 1.25; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { width: min(1160px, 92%); margin: 0 auto; }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 30px; border-radius: 999px; font-family: 'Kanit', sans-serif; font-weight: 600; font-size: 1rem; cursor: pointer; border: none; transition: transform .18s, box-shadow .18s; white-space: nowrap; }
.btn-sm { padding: 10px 22px; font-size: .95rem; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 12px 26px rgba(18,160,74,.38); }
.btn-primary:hover { transform: translateY(-2px); }
.btn-block { width: 100%; margin-top: 8px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { width: 38px; height: 38px; border-radius: 10px; }
.brand-name { font-family: 'Kanit', sans-serif; font-weight: 700; font-size: 1.35rem; color: var(--green-900); }
.nav { display: flex; gap: 6px; margin-left: auto; }
.nav a { padding: 8px 14px; border-radius: 999px; font-weight: 500; font-size: .98rem; color: var(--ink-soft); transition: .15s; }
.nav a:hover { color: var(--green-900); background: var(--grad-soft); }
.nav a.active { color: var(--green-900); font-weight: 600; }
.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.menu-toggle span { width: 24px; height: 2.5px; background: var(--green-900); border-radius: 2px; }
.mobile-nav { display: none; flex-direction: column; padding: 8px 4% 16px; gap: 4px; background: #fff; border-bottom: 1px solid var(--line); }
.mobile-nav a { padding: 12px 14px; border-radius: 12px; font-weight: 500; color: var(--ink-soft); }
body.nav-open .mobile-nav { display: flex; }

/* Page hero */
.page-hero { background: var(--grad); color: #fff; padding: 64px 0; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; width: 340px; height: 340px; border-radius: 50%; background: rgba(255,255,255,.12); top: -150px; right: -80px; }
.page-hero .crumb { display: inline-block; font-size: .9rem; opacity: .9; margin-bottom: 14px; }
.page-hero .crumb a { text-decoration: underline; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; }
.page-hero p { margin-top: 12px; font-size: 1.1rem; opacity: .95; max-width: 40em; }

/* Section */
.section { padding: 76px 0; }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 44px; align-items: start; }

/* Info cards */
.contact-info { display: flex; flex-direction: column; gap: 18px; }
.info-card { display: flex; gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 22px 24px; box-shadow: var(--shadow); }
.info-ico { width: 52px; height: 52px; border-radius: 15px; background: var(--grad-soft); display: grid; place-items: center; font-size: 1.5rem; flex-shrink: 0; }
.info-card h3 { font-size: 1.05rem; color: var(--green-900); margin-bottom: 4px; }
.info-card p { color: var(--ink-soft); font-size: .95rem; }
.info-card a { color: var(--green-700); font-size: .95rem; word-break: break-all; }
.info-card a:hover { text-decoration: underline; }

/* Form */
.contact-form-wrap { background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 40px; box-shadow: var(--shadow); }
.contact-form-wrap h2 { font-size: 1.7rem; color: var(--ink); }
.form-lead { color: var(--ink-soft); margin: 8px 0 26px; }
.field { margin-bottom: 18px; display: flex; flex-direction: column; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { font-family: 'Kanit', sans-serif; font-weight: 500; font-size: .92rem; margin-bottom: 7px; color: var(--ink); }
.field input, .field textarea {
  font-family: 'Prompt', sans-serif; font-size: 1rem; padding: 13px 16px; border: 1.5px solid var(--line);
  border-radius: 14px; background: #f8fdf8; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green-500); box-shadow: 0 0 0 4px rgba(52,199,89,.14); background: #fff; }
.field textarea { resize: vertical; }
.form-note { margin-top: 16px; color: var(--green-700); font-weight: 500; background: var(--grad-soft); padding: 12px 16px; border-radius: 12px; }

/* Warning */
.warning { background: #fff8e6; }
.warning-inner { display: flex; gap: 16px; align-items: flex-start; padding: 26px 0; }
.warn-ico { font-size: 1.6rem; flex-shrink: 0; }
.warning-inner p { font-size: .92rem; color: #7a5a12; }
.warning-inner strong { color: #6b4e0a; }

/* Footer */
.site-footer { background: #0c2c18; color: #cfe6d6; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.4fr 1.4fr; gap: 36px; padding: 60px 0 40px; }
.footer-brand .brand-name { color: #fff; }
.footer-brand p { margin-top: 14px; font-size: .92rem; color: #9dbfa8; max-width: 26em; }
.footer-col h4 { color: #fff; font-size: 1.05rem; margin-bottom: 16px; }
.footer-col a, .footer-col p { display: block; color: #9dbfa8; font-size: .92rem; margin-bottom: 9px; }
.footer-col a:hover { color: var(--green-400); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; font-size: .85rem; color: #7fa189; text-align: center; }

/* Responsive */
@media (max-width: 900px) {
  .nav, .nav-cta { display: none; }
  .menu-toggle { display: flex; margin-left: auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 28px 22px; }
  .footer-grid { grid-template-columns: 1fr; }
}
