/* KEVAL CSC — Premium Homepage Theme
   Add this stylesheet AFTER the existing inline <style> block in index.php.
   Existing PHP, services, popup, forms and database logic remain unchanged. */

:root {
  --kc-blue: #2457e8;
  --kc-violet: #7446e8;
  --kc-cyan: #22c6df;
  --kc-ink: #14233d;
  --kc-muted: #64748b;
  --kc-border: #e2eaf7;
  --kc-shadow: 0 18px 48px rgba(24, 48, 92, .09);
}
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { overflow-x: hidden; }
::selection { background: #6d5ce7; color: #fff; }

/* Header */
.header {
  min-height: 76px;
  backdrop-filter: blur(16px);
  box-shadow: 0 5px 24px rgba(20,35,61,.045);
}
.header nav a {
  position: relative;
  padding: 12px 0;
  transition: color .2s ease;
}
.header nav a::after {
  content: "";
  position: absolute; left: 0; bottom: 4px;
  width: 0; height: 2px; border-radius: 5px;
  background: linear-gradient(90deg,var(--kc-blue),var(--kc-violet));
  transition: width .25s ease;
}
.header nav a:hover { color: var(--kc-blue); }
.header nav a:hover::after { width: 100%; }
.brand-logo { box-shadow: 0 5px 16px rgba(36,87,232,.12); }
.theme { transition: transform .2s, box-shadow .2s, border-color .2s; }
.theme:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(36,87,232,.12); }

/* Buttons and highlights */
.btn {
  position: relative; overflow: hidden;
  background: linear-gradient(110deg,var(--kc-blue),var(--kc-violet)) !important;
  box-shadow: 0 9px 22px rgba(76,83,220,.2);
  transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
}
.btn::after {
  content: ""; position: absolute; top: -60%; left: -70%;
  width: 45%; height: 220%; transform: rotate(25deg);
  background: rgba(255,255,255,.22); transition: left .55s ease;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(76,83,220,.28); filter: saturate(1.12); }
.btn:hover::after { left: 130%; }

/* Hero */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: linear-gradient(120deg,#0d1d3a 0%,#173e70 58%,#284f91 100%) !important;
}
.hero::before, .hero::after {
  content: ""; position: absolute; z-index: -1; border-radius: 50%;
  filter: blur(2px); pointer-events: none;
}
.hero::before {
  width: 430px; height: 430px; right: -110px; top: -190px;
  background: radial-gradient(circle,rgba(45,212,230,.25),transparent 68%);
  animation: kcFloat 9s ease-in-out infinite alternate;
}
.hero::after {
  width: 360px; height: 360px; left: 25%; bottom: -250px;
  background: radial-gradient(circle,rgba(139,92,246,.26),transparent 70%);
}
.hero h1 { text-wrap: balance; text-shadow: 0 5px 22px rgba(0,0,0,.12); }
.hero em {
  background: linear-gradient(90deg,#56d9ef,#a5f3fc,#9b8cff);
  -webkit-background-clip: text; background-clip: text; color: transparent !important;
}
.hero-card {
  border-radius: 25px !important;
  box-shadow: 0 24px 65px rgba(0,0,0,.18), inset 0 1px rgba(255,255,255,.18);
  transition: transform .3s ease, box-shadow .3s ease;
}
.hero-card:hover { transform: translateY(-5px); box-shadow: 0 30px 75px rgba(0,0,0,.23); }
.hero-mini-grid div {
  transition: transform .22s ease, background .22s ease, border-color .22s ease;
}
.hero-mini-grid div:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,.27);
  border-color: rgba(255,255,255,.55);
}
.online { animation: kcPulse 2s ease-in-out infinite; }

/* Trust strip */
.trust-strip {
  position: relative; z-index: 1;
  box-shadow: 0 8px 28px rgba(20,35,61,.05);
}
.trust-strip span { transition: color .2s, transform .2s; }
.trust-strip span:hover { color: var(--kc-blue); transform: translateY(-2px); }

/* All homepage sections */
.section, .how-section, .about-section, .contact {
  position: relative;
}
.section { padding-top: 88px; padding-bottom: 88px; }
.section:nth-of-type(even) { background: linear-gradient(180deg,#f8faff,#f1f5ff); }
.heading h2, .about-section h2, .contact h2 {
  color: var(--text); letter-spacing: -.8px;
}
.heading h2 { position: relative; display: inline-block; }
.heading h2::after {
  content: ""; display: block; width: 54px; height: 4px;
  margin: 12px auto 0; border-radius: 10px;
  background: linear-gradient(90deg,var(--kc-blue),var(--kc-violet),var(--kc-cyan));
}

/* Service cards */
.section-cards { align-items: stretch; }
.service {
  position: relative; overflow: hidden;
  border-radius: 20px !important;
  border: 1px solid var(--kc-border) !important;
  box-shadow: 0 8px 24px rgba(27,53,99,.045);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.service::before {
  content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px;
  background: linear-gradient(90deg,var(--kc-blue),var(--kc-violet),var(--kc-cyan));
  transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.service:hover {
  transform: translateY(-8px);
  border-color: rgba(91,91,221,.35) !important;
  box-shadow: 0 20px 42px rgba(35,65,130,.13);
}
.service:hover::before { transform: scaleX(1); }
.service-icon {
  border-radius: 16px !important;
  background: linear-gradient(135deg,#e9efff,#f1eaff) !important;
  transition: transform .25s ease, box-shadow .25s ease;
}
.service:hover .service-icon {
  transform: translateY(-3px) rotate(-4deg) scale(1.06);
  box-shadow: 0 9px 20px rgba(91,91,221,.15);
}
.service h3 { line-height: 1.35; }
.service-link { transition: color .2s, letter-spacing .2s; }
.service-link:hover { color: var(--kc-violet); letter-spacing: .25px; }

/* How to apply */
.how-section {
  background: linear-gradient(135deg,#edf3ff,#f5f0ff) !important;
}
.how-grid article {
  position: relative; overflow: hidden;
  border-radius: 20px !important;
  box-shadow: 0 9px 28px rgba(29,55,105,.06);
  transition: transform .25s ease, box-shadow .25s ease;
}
.how-grid article::after {
  content: ""; position: absolute; width: 130px; height: 130px;
  right: -75px; bottom: -75px; border-radius: 50%;
  background: linear-gradient(135deg,#dbeafe,#ede9fe);
  transition: transform .35s ease;
}
.how-grid article:hover { transform: translateY(-6px); box-shadow: var(--kc-shadow); }
.how-grid article:hover::after { transform: scale(1.5); }
.how-grid article>b { box-shadow: 0 6px 14px rgba(49,95,243,.13); }

/* About */
.about-section {
  background: var(--surface);
}
.about-section h2 { line-height: 1.18; }
.about-points span {
  position: relative; overflow: hidden;
  border-radius: 14px !important;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.about-points span:hover {
  transform: translateY(-3px);
  border-color: rgba(91,91,221,.4);
  box-shadow: 0 10px 24px rgba(27,53,99,.08);
}

/* Contact */
.contact {
  background: linear-gradient(135deg,#f5f8ff,#f4f0ff);
}
.contact-links>a {
  border-radius: 16px !important;
  box-shadow: 0 7px 22px rgba(27,53,99,.045);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.contact-links>a:hover {
  transform: translateX(5px);
  border-color: rgba(91,91,221,.35);
  box-shadow: 0 13px 28px rgba(27,53,99,.1);
}

/* Footer */
footer {
  background: #101d36;
  color: #d6e1f5 !important;
  border: 0 !important;
  padding-top: 28px; padding-bottom: 28px;
}
footer a { color: #91aaff; }
footer a:hover { color: #fff; }

/* Soft reveal animation */
@keyframes kcFloat { from { transform: translate3d(0,0,0); } to { transform: translate3d(-24px,22px,0); } }
@keyframes kcPulse { 0%,100% { opacity: 1; } 50% { opacity: .65; } }
@keyframes kcReveal { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
.hero > div, .heading, .service, .how-grid article, .about-section > div, .contact > div {
  animation: kcReveal .65s ease both;
}
.service:nth-child(2), .how-grid article:nth-child(2) { animation-delay: .08s; }
.service:nth-child(3), .how-grid article:nth-child(3) { animation-delay: .16s; }
.service:nth-child(4) { animation-delay: .22s; }

/* Dark mode compatibility */
body[data-theme="dark"] .section:nth-of-type(even),
body[data-theme="dark"] .how-section,
body[data-theme="dark"] .contact {
  background: linear-gradient(135deg,#101b2d,#151d35) !important;
}
body[data-theme="dark"] .how-grid article {
  background: #172338; border-color: #29384d;
}
body[data-theme="dark"] .how-grid p,
body[data-theme="dark"] .about-section p { color: var(--muted); }
body[data-theme="dark"] footer { background: #070e1b; }

/* Responsive layout */
@media (max-width: 800px) {
  .section { padding-top: 66px; padding-bottom: 66px; }
  .hero { gap: 28px; }
  .hero-card { max-width: 620px; width: 100%; margin-inline: auto; }
  .about-points { gap: 10px; }
}
@media (max-width: 560px) {
  .header { min-height: 68px; }
  .brand b { font-size: 15px; }
  .hero { padding-top: 54px !important; padding-bottom: 54px !important; }
  .hero h1 { font-size: clamp(36px,10vw,43px) !important; letter-spacing: -1.5px; }
  .hero-card { padding: 21px 16px !important; border-radius: 19px !important; }
  .hero-mini-grid { gap: 8px; }
  .hero-mini-grid div { padding: 12px 10px; }
  .section { padding: 58px 6% !important; }
  .heading { margin-bottom: 26px; }
  .heading h2 { font-size: 31px; }
  .section-cards { grid-template-columns: 1fr !important; gap: 14px; }
  .service { padding: 23px !important; }
  .service h3 { font-size: 19px; }
  .how-section, .about-section, .contact { padding: 58px 6% !important; }
  .how-grid { grid-template-columns: 1fr !important; gap: 13px; }
  .how-grid article { padding: 21px; }
  .about-section h2, .contact h2 { font-size: 31px !important; }
  .about-points { grid-template-columns: 1fr 1fr !important; }
  .about-points span { padding: 13px 11px; font-size: 11px; line-height: 1.5; }
  .contact-links>a { padding: 15px; }
  footer { padding: 22px 6%; line-height: 1.7; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* =====================================
   KEVAL CSC - DEEP TEXT & COLOUR HIGHLIGHT
===================================== */

/* Navigation Menu */
header nav a,
nav a {
    color: #102957 !important;
    font-weight: 800 !important;
    transition: all .3s ease;
}

header nav a:hover,
nav a:hover {
    color: #5b21b6 !important;
    text-shadow: 0 2px 8px rgba(91,33,182,.25);
}

/* Hero Main Heading */
.hero h1,
.hero h2 {
    color: #ffffff !important;
    font-weight: 900 !important;
    text-shadow: 0 3px 12px rgba(0,0,0,.25);
}

/* Hero Description */
.hero p {
    color: #f0f9ff !important;
    font-weight: 700 !important;
}

/* Hero Small Labels */
.hero .eyebrow,
.hero .section-label {
    color: #67e8f9 !important;
    font-weight: 900 !important;
    letter-spacing: 2px;
}

/* Hero Service Boxes */
.hero .hero-card,
.hero .service-box {
    color: #ffffff !important;
    font-weight: 800 !important;
}

.hero .hero-card h3,
.hero .service-box h3 {
    color: #ffffff !important;
    font-weight: 900 !important;
}

.hero .hero-card p,
.hero .service-box p {
    color: #e0f2fe !important;
    font-weight: 700 !important;
}

/* Trust Strip / Feature Options */
.trust-strip,
.trust-strip span,
.trust-strip div {
    color: #102957 !important;
    font-weight: 900 !important;
    text-shadow: 0 1px 2px rgba(37,99,235,.12);
}

/* Section Headings */
section h2,
section h3 {
    color: #102957;
    font-weight: 900 !important;
}

/* Section Small Highlight Text */
section .eyebrow,
section .section-label {
    color: #6d28d9 !important;
    font-weight: 900 !important;
    letter-spacing: 1.5px;
}

/* Service Cards */
.service-card,
.service-card h3,
.service-card p {
    color: #142b50 !important;
}

.service-card h3 {
    font-weight: 900 !important;
}

.service-card p {
    font-weight: 700 !important;
}

/* How It Works */
.how-grid,
.how-grid h3,
.how-grid p {
    color: #142b50 !important;
}

.how-grid h3 {
    font-weight: 900 !important;
}

/* About & Contact */
.about-section,
.about-section h2,
.about-section h3,
.about-section p {
    color: #142b50 !important;
}

.about-section p {
    font-weight: 700 !important;
}

/* Animated Text Highlight */
.trust-strip span,
.service-card h3 {
    background: linear-gradient(
        90deg,
        #1d4ed8,
        #7c3aed,
        #0891b2,
        #1d4ed8
    );
    background-size: 250% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: kevalTextHighlight 6s linear infinite;
}

@keyframes kevalTextHighlight {
    to {
        background-position: 250% center;
    }
}

/* Buttons */
.hero a,
.hero button,
.service-card a {
    font-weight: 900 !important;
}

/* Mobile Text */
@media(max-width: 600px) {
    header nav a {
        font-weight: 800 !important;
    }

    .hero p,
    .trust-strip,
    .service-card p {
        font-weight: 700 !important;
    }
}

/* ==========================================
   KEVAL CSC - ALL SERVICE FORMS PREMIUM STYLE
========================================== */

/* Form Page Heading */
.apply-card h1,
.apply-card h2,
.apply-card h3 {
    color: #102957 !important;
    font-weight: 900 !important;
}

/* Service Name and Description */
.apply-card p {
    color: #17345f !important;
    font-weight: 700 !important;
}

/* All Form Labels */
.apply-card label {
    color: #102957 !important;
    font-weight: 900 !important;
    letter-spacing: .2px;
}

/* Input, Select and Textarea */
.apply-card .apply-grid input:not([type="checkbox"]):not([type="radio"]),
.apply-card .apply-grid select,
.apply-card .apply-grid textarea {
    color: #102957 !important;
    font-weight: 700 !important;
    background: #f0f6ff !important;
    border: 1.5px solid #648cff !important;
    border-radius: 11px !important;
    transition: all .25s ease;
}

/* Placeholder Colour */
.apply-card input::placeholder,
.apply-card textarea::placeholder {
    color: #647da5 !important;
    font-weight: 600 !important;
    opacity: 1;
}

/* Focus Highlight */
.apply-card .apply-grid input:focus,
.apply-card .apply-grid select:focus,
.apply-card .apply-grid textarea:focus {
    background: #ffffff !important;
    border: 2px solid #6d28d9 !important;
    box-shadow: 0 0 0 4px rgba(109,40,217,.14) !important;
    outline: none !important;
}

/* File Upload */
.apply-card input[type="file"] {
    background: #eef2ff !important;
    border: 2px dashed #6366f1 !important;
    padding: 12px !important;
    color: #172554 !important;
    font-weight: 800 !important;
}

/* Privacy and Important Notes */
.apply-card .privacy-note {
    background: linear-gradient(120deg, #fff7ed, #ffedd5) !important;
    border: 1.5px solid #f59e0b !important;
    border-left: 5px solid #ea580c !important;
    color: #7c2d12 !important;
    font-weight: 800 !important;
    border-radius: 10px !important;
    padding: 14px !important;
}

/* Small Help Text */
.apply-card small,
.apply-card .field-help {
    color: #1e40af !important;
    font-weight: 700 !important;
}

/* Submit Button */
.apply-card button[type="submit"],
.apply-card input[type="submit"] {
    background: linear-gradient(110deg, #1d4ed8, #7c3aed) !important;
    color: #ffffff !important;
    font-weight: 900 !important;
    border: none !important;
    border-radius: 11px !important;
    box-shadow: 0 5px 15px rgba(79,70,229,.25);
    transition: all .3s ease;
}

.apply-card button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79,70,229,.35);
}

/* Required Star */
.apply-card label .required,
.apply-card label span {
    color: #dc2626;
    font-weight: 900 !important;
}

/* Mobile Responsive */
@media(max-width:600px) {
    .apply-card label {
        font-size: 14px !important;
    }

    .apply-card .apply-grid input,
    .apply-card .apply-grid select,
    .apply-card .apply-grid textarea {
        font-size: 14px !important;
    }
}

.main-navigation .nav-status,
.main-navigation .nav-admin {
    font-weight: 900 !important;
    padding: 10px 13px;
    border-radius: 10px;
    transition: .3s ease;
}

.main-navigation .nav-status {
    color: #075985 !important;
    background: #e0f2fe;
    border: 1px solid #38bdf8;
}

.main-navigation .nav-admin {
    color: #ffffff !important;
    background: linear-gradient(110deg,#1d4ed8,#7c3aed);
    border: 1px solid #6366f1;
}

.main-navigation .nav-status:hover,
.main-navigation .nav-admin:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 14px #64748b55;
}
