/**
 * @company MG Technologies
 * @author Manu Mahesh
 * @date 19 Nov 2026
 * MG: Site-wide base styles and the one colour palette. Loaded first on every frontend page (header_v2.php).
 * Replaces the Bootstrap 3 stylesheet that was pasted into the header: only its reset and text defaults are kept
 * (so pages keep their spacing); no grid, no components. Pages build their own layout with mg-* classes.
 * The colour palette and font tokens are in mg-tokens.css (loaded just before this file).
 */


/* ---------- Reset (normalize) ---------- */
html{ -webkit-text-size-adjust:100%; text-size-adjust:100%; -webkit-tap-highlight-color:rgba(0,0,0,0); }
*, *::before, *::after{ box-sizing:border-box; }
body{ margin:0; font-family:var(--mg-font-body); font-size:14px; line-height:1.42857143; color:var(--mg-ink); background:#fff; }
article, aside, details, figcaption, figure, footer, header, main, menu, nav, section, summary{ display:block; }
audio, canvas, progress, video{ display:inline-block; vertical-align:baseline; }
[hidden], template{ display:none; }
a{ background-color:transparent; color:var(--mg-primary); text-decoration:none; }
a:hover, a:focus{ color:var(--mg-primary-dark); }
b, strong{ font-weight:700; }
small{ font-size:85%; }
sub, sup{ position:relative; font-size:75%; line-height:0; vertical-align:baseline; }
sup{ top:-.5em; } sub{ bottom:-.25em; }
img{ border:0; vertical-align:middle; max-width:100%; }
svg:not(:root){ overflow:hidden; }
figure{ margin:0; }
hr{ height:0; margin:20px 0; border:0; border-top:1px solid var(--mg-border); }
pre{ overflow:auto; }
code, kbd, pre, samp{ font-family:ui-monospace,SFMono-Regular,Consolas,monospace; font-size:1em; }
button, input, optgroup, select, textarea{ margin:0; font:inherit; color:inherit; }
button{ overflow:visible; }
button, select{ text-transform:none; }
button, html input[type="button"], input[type="reset"], input[type="submit"]{ -webkit-appearance:button; cursor:pointer; }
button[disabled], html input[disabled]{ cursor:default; }
button::-moz-focus-inner, input::-moz-focus-inner{ padding:0; border:0; }
input{ line-height:normal; }
input[type="checkbox"], input[type="radio"]{ padding:0; }
input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button{ height:auto; }
input[type="search"]{ -webkit-appearance:none; }
input[type="search"]::-webkit-search-cancel-button, input[type="search"]::-webkit-search-decoration{ -webkit-appearance:none; }
fieldset{ min-width:0; padding:0; margin:0; border:0; }
legend{ padding:0; border:0; }
textarea{ overflow:auto; }
table{ border-spacing:0; border-collapse:collapse; }
td, th{ padding:0; }
label{ display:inline-block; max-width:100%; margin-bottom:5px; font-weight:700; }

/* ---------- Text defaults (the sizes pages were built with) ---------- */
h1, h2, h3, h4, h5, h6{ font-family:inherit; font-weight:500; line-height:1.15; color:inherit; }
h1, h2, h3{ margin-top:20px; margin-bottom:10px; }
h4, h5, h6{ margin-top:10px; margin-bottom:10px; }
h1{ font-size:36px; } h2{ font-size:30px; } h3{ font-size:24px; } h4{ font-size:18px; } h5{ font-size:14px; } h6{ font-size:12px; }
p{ margin:0 0 10px; }
ul, ol{ margin-top:0; margin-bottom:10px; }
ul ul, ol ol, ul ol, ol ul{ margin-bottom:0; }
dl{ margin-top:0; margin-bottom:20px; }
dt{ font-weight:700; } dd{ margin-left:0; }
blockquote{ margin:0 0 20px; }
address{ margin-bottom:20px; font-style:normal; }

/* ---------- Helpers ---------- */
.mg-visually-hidden, .mg-sr{ position:absolute !important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.mg-skip-link{ position:absolute; left:12px; top:-60px; z-index:100000; padding:10px 16px; border-radius:10px; background:var(--mg-forest); color:#fff !important; font-weight:700; }
.mg-skip-link:focus{ top:12px; }
.mg-wrap{ width:100%; max-width:1240px; margin:0 auto; padding:0 20px; }
@media (max-width:767px){ .mg-wrap{ padding:0 16px; } }
:focus-visible{ outline:2px solid var(--mg-brand); outline-offset:2px; }

/* ---------- Shared form controls and buttons (for pages without their own) ---------- */
.mg-b-btn{ display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:46px; padding:0 22px; border:1px solid var(--mg-primary); border-radius:12px; background:var(--mg-primary); color:#fff !important; font:700 15px/1.2 var(--mg-font-body); text-decoration:none !important; cursor:pointer; transition:background .15s ease, border-color .15s ease; }
.mg-b-btn:hover{ background:var(--mg-primary-dark); border-color:var(--mg-primary-dark); color:#fff !important; }
.mg-b-btn[disabled]{ opacity:.6; cursor:wait; }
.mg-b-btn--ghost{ background:#fff; color:var(--mg-ink) !important; border-color:var(--mg-border); }
.mg-b-btn--ghost:hover{ background:var(--mg-primary-soft); border-color:var(--mg-primary); color:var(--mg-primary-dark) !important; }
.mg-b-btn--block{ width:100%; }
.mg-field{ display:grid; gap:6px; margin-bottom:16px; }
.mg-field > label, .mg-label{ margin:0; font-size:14px; font-weight:600; color:var(--mg-ink); }
.mg-field small, .mg-help{ color:var(--mg-ink-soft); font-size:13px; font-weight:400; }
.mg-input, .mg-field input[type="text"], .mg-field input[type="email"], .mg-field input[type="url"], .mg-field input[type="tel"], .mg-field input[type="number"], .mg-field input[type="password"], .mg-field input[type="search"], .mg-field select, .mg-field textarea{
  width:100%; min-height:46px; padding:10px 14px; border:1px solid #CDD3DA; border-radius:10px; background:#fff; color:var(--mg-ink); font:15px/1.4 var(--mg-font-body); -webkit-appearance:none; appearance:none; }
.mg-field select{ padding-right:36px; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 12px center; background-size:16px; }
.mg-field textarea{ min-height:120px; resize:vertical; }
.mg-input:focus, .mg-field input:focus, .mg-field select:focus, .mg-field textarea:focus{ outline:none; border-color:var(--mg-primary); box-shadow:0 0 0 3px rgba(17,132,55,.16); }
.mg-field input[type="file"]{ font-size:14px; }
.mg-check{ display:flex; align-items:flex-start; gap:10px; font-weight:400; font-size:14px; cursor:pointer; }
.mg-check input{ margin-top:3px; width:16px; height:16px; accent-color:var(--mg-primary); flex:0 0 auto; }
.mg-notice{ position:relative; margin:0 0 16px; padding:12px 44px 12px 16px; border:1px solid #BCE7C9; border-radius:12px; background:var(--mg-primary-soft); color:var(--mg-ink); font-size:14.5px; line-height:1.5; }
.mg-notice--error{ border-color:#F2B8B8; background:var(--mg-danger-soft); }
.mg-notice--info{ border-color:#C7D2FE; background:#EEF2FF; }
.mg-notice--warn{ border-color:#F1D39A; background:var(--mg-warn-soft); }
.mg-notice__close{ position:absolute; right:8px; top:8px; width:28px; height:28px; border:0; border-radius:8px; background:transparent; color:var(--mg-ink-soft); font-size:20px; line-height:1; cursor:pointer; }
.mg-notice__close:hover{ background:rgba(0,0,0,.06); color:var(--mg-ink); }

/* ---------- Layout primitives for older pages (replace the Bootstrap grid) ---------- */
.mg-grid{ display:grid; gap:16px 24px; grid-template-columns:minmax(0,1fr); }
.mg-grid--2{ grid-template-columns:repeat(2, minmax(0,1fr)); }
.mg-grid--3{ grid-template-columns:repeat(3, minmax(0,1fr)); }
.mg-grid--4{ grid-template-columns:repeat(4, minmax(0,1fr)); }
.mg-narrow{ width:100%; margin-left:auto; margin-right:auto; }
.mg-narrow--10{ max-width:1000px; } .mg-narrow--8{ max-width:800px; } .mg-narrow--6{ max-width:620px; }
.mg-center{ text-align:center; }
.mg-right{ float:right; } .mg-left{ float:left; }
.mg-clear::after{ content:""; display:table; clear:both; }
.mg-img{ display:block; max-width:100%; height:auto; }
.mg-fgroup{ margin-bottom:15px; }
.mg-text-danger, .error_strings{ color:var(--mg-danger); font-size:13px; }
.error_strings:not(:empty){ margin-top:4px; }
.mg-btn-base{ display:inline-block; padding:10px 18px; border:1px solid transparent; border-radius:10px; font-size:14px; font-weight:600; line-height:1.4; text-align:center; white-space:nowrap; cursor:pointer; text-decoration:none !important; }
@media (max-width:1023px){ .mg-grid--4{ grid-template-columns:repeat(2, minmax(0,1fr)); } .mg-grid--3{ grid-template-columns:repeat(2, minmax(0,1fr)); } }
@media (max-width:767px){ .mg-grid--2, .mg-grid--3, .mg-grid--4{ grid-template-columns:minmax(0,1fr); } .mg-hide-sm{ display:none !important; } .mg-right, .mg-left{ float:none; } }
/* Questions and answers (details / summary), no script needed */
.mg-faqs{ border-top:1px solid var(--mg-border); }
.mg-faq{ border-bottom:1px solid var(--mg-border); }
.mg-faq > summary{ display:flex; justify-content:space-between; align-items:center; gap:14px; padding:16px 2px; font-size:16px; font-weight:600; color:var(--mg-ink); cursor:pointer; list-style:none; }
.mg-faq > summary::-webkit-details-marker{ display:none; }
.mg-faq > summary::after{ content:"+"; flex:0 0 auto; font-size:22px; line-height:1; color:var(--mg-primary); }
.mg-faq[open] > summary::after{ content:"\2212"; }
.mg-faq__body{ padding:0 2px 18px; color:var(--mg-ink-soft); font-size:15px; line-height:1.65; }
