/* =============================================
   NT Disability Support - Refined Styles
   ============================================= */

/* CSS Variables */
:root {
  /* === FLYER COLOR SCHEME === */

  /* Primary Colors - Burgundy/Maroon */
  --primary-burgundy: #5B1F3B;
  --burgundy-dark: #3A2B3B;
  --burgundy-light: #8B5A6F;

  /* Secondary Colors - Teal/Blue-Gray */
  --primary-teal: #5A7F8E;
  --teal-dark: #4A6B78;
  --teal-light: #7A9FAE;

  /* Accent Colors - Warm Earth Tones */
  --accent-terracotta: #D4926B;
  --accent-warm: #C08B6B;

  /* Background Colors */
  --bg: #F0E4EE;
  --bg-light: #F8F3F6;
  --card: #FDFCFC;

  /* Text Colors */
  --text: #2B1520;
  --text-heading: #3A2B3B;
  --muted: #6B4A58;

  /* UI Elements */
  --line: #E1D2DB;
  --shadow: 0 18px 40px rgba(43, 21, 32, 0.08);
  --shadow2: 0 10px 24px rgba(43, 21, 32, 0.06);

  /* Grayscale - Warm tones */
  --dark: #2B1520;
  --gray-900: #3A2B3B;
  --gray-700: #574753;
  --gray-500: #8B7485;
  --gray-300: #D0C0CB;
  --gray-100: #F5F0F3;
  --white: #FFFFFF;

  /* Border Radius */
  --r: 18px;
  --r2: 26px;
  --container: 1100px;
}

/* Reset & Base */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(var(--container), calc(100% - 40px));
    margin: 0 auto;
}

.page {
    padding: 24px 0 56px;
}

/* =============================================
   HEADER & NAVIGATION
   ============================================= */
.header {
    background: #fff;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);

  background: var(--card);
  border-bottom: 1px solid var(--line);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
}
/*
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    font-size: 1.1rem;
} */
 
/* new*/

.brand {
  display: block;
  color: var(--text-heading);
}

.brand span{
  display:block;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 900;
  font-size: 1.75rem;
  letter-spacing: .2px;
  line-height: 1.05;
  color: #4a2253;
}

.brand span::after{
  content:"Empowering Your Independence";
  display:block;
  margin-top: 6px;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-weight: 500;
  font-style: italic;
  color: rgba(58,26,64,0.72);
  font-size: .95rem;
}
/* finish new*/
.logo {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: linear-gradient(135deg, #4bb37c, var(--blue));
    position: relative;
}

.logo:after {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: 10px;
    background: #fff;
    opacity: .9;
}

.navlinks {
    display: flex;
    gap: 18px;
    align-items: center;
    font-weight: 800;
}

.navlinks a {
    padding: 8px 10px;
    border-radius: 12px;
    color: var(--text-heading);
    transition: background 0.2s ease;
}

.navlinks a.active {
    background: #F5EBF1;
}

.navlinks a:hover {
    background: #F5EBF1;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 3px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 16px;
    border-radius: 14px;
    font-weight: 900;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-cta {
    background: var(--primary-burgundy);
    color: var(--white);
    box-shadow: 0 14px 28px rgba(91, 31, 59, 0.25);
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 32px rgba(91, 31, 59, 0.35);
}

.btn-soft {
    background: #fff;
    border: 1px solid var(--line);
}

.btn-soft:hover {
    background: #F5F0F3;
}

.btn-mini {
    padding: 9px 12px;
    border-radius: 12px;
    font-weight: 900;
    background: rgba(90, 127, 142, 0.12);
    border: 1px solid rgba(90, 127, 142, 0.20);
    color: var(--primary-teal);
    display: inline-block;
    transition: all 0.2s ease;
    font-size: 0.85rem;
}

.btn-mini:hover {
    filter: brightness(.98);
    transform: translateX(4px);
}

/* =============================================
   PAGE CARD WRAP
   ============================================= */
.frame {
    background: #fff;
    border-radius: var(--r2);
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
    overflow: hidden;
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
    position: relative;
    min-height: 650px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--gray-900);
}

.heroGrid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: stretch;
}

.heroCopy {
    padding: 34px 38px 26px;
    z-index: 3;
    width: 100%;
}

.kicker {
    font-weight: 900;
    color: var(--text-heading);
    letter-spacing: .02em;
    font-size: 0.9rem;
}

.h1 {
    font-size: 42px;
    line-height: 1.05;
    margin: 10px 0 10px;
    letter-spacing: -.03em;
    color: var(--text-heading);
}

.hsub {
    margin: 0 0 12px;
    color: var(--muted);
    max-width: 62ch;
    line-height: 1.45;
}

.noteRow {
    margin-top: 14px;
    display: flex;
    gap: 10px;
    align-items: center;
    color: var(--text);
    font-weight: 800;
    font-size: 0.9rem;
}

.badgeCheck {
    width: 22px;
    height: 22px;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(90, 127, 142, 0.15);
    color: var(--primary-teal);
    font-weight: 900;
    flex-shrink: 0;
}

.hero-location {
    color: var(--accent-terracotta);
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.05;
    font-weight: 900;
    margin-bottom: 28px;
    color: var(--white);
    letter-spacing: -0.02em;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(15, 23, 42, 0.88) 0%,
        rgba(15, 23, 42, 0.7) 50%,
        rgba(15, 23, 42, 0.4) 100%
    );
    z-index: 2;
}

.hero-desc {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 36px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.heroMedia {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* .heroMedia img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
} */

.wave {
    position: absolute;
    left: -6%;
    right: -6%;
    bottom: -34px;
    height: 40px;
    background: linear-gradient(90deg, rgba(47, 125, 87, .95), rgba(11, 58, 110, .95));
    border-top-left-radius: 120px;
    border-top-right-radius: 120px;
}

/* =============================================
   SECTION TITLE
   ============================================= */
.sectionTitle {
    padding: 18px 38px 0;
    font-weight: 900;
    color: var(--text-heading);
    font-size: 20px;
}


/* =============================================
   SERVICE GRID
   ============================================= */
.servicesGrid {
    padding: 16px 22px 18px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
}

.serviceCard {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow2);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.serviceCard:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(12, 22, 38, 0.12);
}

.serviceInner {
    padding: 18px 18px 16px;
    display: grid;
    grid-template-columns: 1fr 160px;
    gap: 14px;
    align-items: start;
}

.serviceHead {
    display: flex;
    align-items: center;
    gap: 12px;
}

.iconCircle {
    width: 50px;
    height: 50px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(90, 127, 142, 0.12);
    border: 1px solid rgba(90, 127, 142, 0.20);
    flex-shrink: 0;
}

.iconCircle svg {
    width: 22px;
    height: 22px;
    stroke: var(--primary-teal);
}

.serviceName {
    font-size: 18px;
    font-weight: 900;
    margin: 0;
    color: var(--text-heading);
}

.serviceMeta {
    margin: 2px 0 0;
    color: #64748b;
    font-weight: 800;
    font-size: 12.5px;
}

.serviceText {
    margin: 12px 0 10px;
    color: var(--muted);
    line-height: 1.45;
    font-size: 14.5px;
}

.ticks {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.ticks li {
    display: flex;
    gap: 10px;
    color: var(--text);
    font-size: 14px;
}

.ticks li:before {
    content: "✓";
    width: 20px;
    height: 20px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(47, 125, 87, .18);
    color: var(--green);
    font-weight: 900;
    flex: 0 0 auto;
}

.serviceImg {
    width: 100%;
    height: 120px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--line);
    margin-top: 48px;
}

.serviceImg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.serviceFooter {
    padding: 0 18px 16px;
    display: flex;
    justify-content: flex-end;
}

/* =============================================
   FUNDING STRIP
   ============================================= */
.fundingStripWrap {
    padding: 10px 22px 22px;
}

.fundingStrip {
    background: #f7fafc;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow2);
    padding: 14px 16px;
    display: flex;
    gap: 18px;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
}

.fundingCol {
    display: grid;
    gap: 8px;
    /* font-weight: 900; */
}

.fRow {
    display: flex;
    gap: 10px;
    align-items: center;
    color: var(--text);
    font-size: 0.9rem;
}

.dotOk,
.dotNo {
    width: 20px;
    height: 20px;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    flex-shrink: 0;
}

.dotOk {
    background: rgba(90, 127, 142, 0.15);
    color: var(--primary-teal);
}

.dotNo {
    background: rgba(239, 68, 68, .15);
    color: #ef4444;
}

/* =============================================
   ABOUT BLOCKS
   ============================================= */
.aboutGrid {
    padding: 16px 22px 22px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.block {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow2);
    padding: 18px;
    transition: transform 0.3s ease;
}

.block:hover {
    transform: translateY(-2px);
}

.block h3 {
    margin: 0 0 8px;
    font-size: 18px;
    letter-spacing: -.01em;
    color: var(--text-heading);
}

.block p {
    margin: 0;
    color: var(--muted);
    line-height: 1.45;
    font-size: 14.5px;
}

/* =============================================
   PAGE HEADER
   ============================================= */
.pageHeader {
    padding: 34px 38px 26px;
    border-bottom: 1px solid var(--line);
}

.border-top {
    border-top: 1px solid var(--line);
    padding: 10px 38px 26px;
}

.pageTitle {
    font-size: 36px;
    line-height: 1.1;
    margin: 0 0 10px;
    color: var(--text-heading);
    font-weight: 900;
}

.pageSubtitle {
    font-size: 20px;
    color: var(--text-heading);
    margin: 0 0 16px;
    font-weight: 800;
}

.pageIntro {
    color: var(--muted);
    line-height: 1.6;
    max-width: 80ch;
    margin: 0 0 12px;
}

/* =============================================
   SERVICE DETAILS
   ============================================= */
.servicesList {
    padding: 22px;
}

.serviceDetail {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow2);
    padding: 24px;
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 20px;
    align-items: start;
}

.serviceDetailIcon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(90, 127, 142, 0.12);
    border: 1px solid rgba(90, 127, 142, 0.20);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.serviceDetailIcon svg {
    width: 26px;
    height: 26px;
    stroke: var(--primary-teal);
}

.serviceDetailContent h2 {
    font-size: 22px;
    margin: 0 0 6px;
    color: var(--text-heading);
}

.serviceDetailContent h3 {
    font-size: 16px;
    margin: 16px 0 10px;
    color: var(--text-heading);
}

.serviceDetailContent p {
    margin: 0 0 10px;
    color: var(--muted);
    line-height: 1.5;
}

.bulletList {
    margin: 0;
    padding-left: 20px;
    color: var(--muted);
}

.bulletList li {
    margin: 6px 0;
    line-height: 1.5;
}

.serviceDetailImg {
    width: 280px;
    height: 200px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--line);
}

.serviceDetailImg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =============================================
   CONTACT GRID
   ============================================= */
.contactGrid {
    padding: 22px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 18px;
}

.contactCard {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow2);
    padding: 24px;
    text-align: center;
    transition: transform 0.3s ease;
}

.contactCard:hover {
    transform: translateY(-4px);
}

.contactIcon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(90, 127, 142, 0.12);
    border: 1px solid rgba(90, 127, 142, 0.20);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.contactIcon svg {
    width: 26px;
    height: 26px;
    stroke: var(--primary-teal);
}

.contactCard h3 {
    font-size: 18px;
    margin: 0 0 10px;
    color: var(--text-heading);
}

.contactValue {
    font-size: 15px;
    font-weight: 900;
    color: var(--primary-burgundy);
    margin: 0 0 8px;
}

.contactSubtext {
    font-size: 14px;
    color: var(--muted);
    margin: 0;
}

/* =============================================
   TRUST FOOTER
   ============================================= */
.trustFooter {
    margin-top: 24px;
    text-align: center;
    padding: 20px;
    background: #fff;
    border-radius: var(--r2);
    border: 1px solid var(--line);
    box-shadow: var(--shadow2);
}

.trustFooter p {
    margin: 0 0 12px;
    color: var(--text-heading);
}

.trustBadges {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    font-weight: 800;
    font-size: 0.9rem;
}

.trustBadges span {
    color: var(--primary-teal);
}

/* =============================================
REFERRAL FORM
============================================= */

.referralForm {
  display: grid;
  gap: 20px;
}

.referralFieldset {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px 22px 18px;
  background: #fff;
  box-shadow: var(--shadow2);
}

.referralLegend {
  padding: 0 4px;
  margin: 0 0 10px;
  font-weight: 900;
  font-size: 16px;
  color: var(--text-heading);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px 16px;
  margin-bottom: 10px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label,
.form-label {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-heading);
}

.required {
  color: #b91c1c;
  margin-left: 2px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group input[type="file"],
.form-group select,
.form-group textarea {
  border-radius: 10px;
  border: 1px solid var(--gray-300);
  padding: 9px 11px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: var(--card);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-teal);
  box-shadow: 0 0 0 1px rgba(90, 127, 142, 0.25);
}

.form-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 14px;
  color: var(--muted);
}

.form-options label {
  display: flex;
  align-items: center;
  gap: 6px;
}

.form-options input[type="checkbox"],
.form-options input[type="radio"] {
  accent-color: var(--primary-burgundy);
}

.form-options-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px 16px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}

.checkbox-label input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--primary-burgundy);
}

.field-hint {
  font-size: 12px;
  color: var(--gray-500);
  margin: 0;
}

.conditional[hidden] {
  display: none !important;
}

.referralActions {
  margin-top: 4px;
  padding: 0 22px 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.referralNote {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.referralSuccess {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: var(--primary-teal);
}

/* Error state */
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
  border-color: #b91c1c;
}

.form-error-message {
  font-size: 12px;
  color: #b91c1c;
  margin: 0;
}

/* =============================================
   RESPONSIVE DESIGN
   ============================================= */
@media (max-width: 960px) {
    .heroGrid {
        grid-template-columns: 1fr;
    }

    .heroMedia {
        min-height: 220px;
    }

    .servicesGrid {
        grid-template-columns: 1fr;
    }

    .serviceInner {
        grid-template-columns: 1fr;
    }

    .serviceImg {
        margin-top: 10px;
        height: 160px;
    }

    .aboutGrid {
        grid-template-columns: 1fr;
    }

    .h1 {
        font-size: 36px;
    }

    .pageTitle {
        font-size: 30px;
    }

    .serviceDetail {
        grid-template-columns: 1fr;
    }

    .serviceDetailImg {
        width: 100%;
        height: 200px;
    }

    .contactGrid {
        grid-template-columns: 1fr;
    }

    .serviceDetail {
    grid-template-columns: 1fr;
    grid-template-areas:
      "image"
      "icon"
      "content";
  }

  .serviceDetailIcon {
    grid-area: icon;
  }

  .serviceDetailContent {
    grid-area: content;
  }

  .serviceDetailImg {
    grid-area: image;
    width: 100%;
    height: 200px;
    margin: 0 0 14px 0;
  }
}

@media (max-width: 640px) {

    .referralFieldset {
        padding: 16px 16px 14px;
    }

    .referralActions {
        padding: 0 16px 8px;
        align-items: stretch;
    }

    .referralActions .btn {
        width: 100%;
        justify-content: center;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero-desc {
        font-size: 1rem;
        margin-bottom: 28px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .navlinks {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: #fff;
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.1);
        padding: 20px;
        gap: 12px;
        z-index: 40;
    }

    .navlinks.active {
        left: 0;
    }

    .navlinks a {
        width: 100%;
        padding: 12px 16px;
    }

    .h1 {
        font-size: 28px;
    }

    .pageTitle {
        font-size: 26px;
    }

    .heroCopy,
    .pageHeader {
        padding: 24px 20px;
        z-index: 3;
        width: 100%;
    }

    .sectionTitle {
        padding: 14px 20px 0;
    }

    .servicesGrid,
    .fundingStripWrap,
    .aboutGrid,
    .servicesList,
    .contactGrid {
        padding: 14px 16px;
    }

    .trustBadges {
        flex-direction: column;
        gap: 10px;
    }

    .serviceCard {
        margin-bottom: 12px;
    }

    .hero-overlay {
        background: linear-gradient(
            to bottom,
            rgba(15, 23, 42, 0.75) 0%,
            rgba(15, 23, 42, 0.88) 100%
        );
    }

    .serviceDetail {
        grid-template-columns: 1fr;
        grid-template-areas:
        "image"
        "icon"
        "content";
    }

    .serviceDetailIcon {
        grid-area: icon;
    }

    .serviceDetailContent {
        grid-area: content;
    }

    .serviceDetailImg {
        grid-area: image;
        width: 100%;
        height: 200px;
        margin: 0 0 14px 0;
    }
}

@media (max-width: 480px) {
    .container {
        width: 100%;
        padding-inline: 10px;
    }

    .hero-desc {
        font-size: 0.95rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .h1 {
        font-size: 24px;
    }

    .hsub,
    .pageIntro {
        font-size: 14px;
    }

    .serviceDetail {
        padding: 18px;
    }
}

/* =============================================
   SMOOTH TRANSITIONS
   ============================================= */
html {
    scroll-behavior: smooth;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* =============================================
   READ MORE FUNCTIONALITY
   ============================================= */

.serviceDetailContent {
  position: relative;
}

.serviceDetailContent.collapsed .expandable-content {
  max-height: 120px;
  overflow: hidden;
  position: relative;
}

.serviceDetailContent.collapsed .expandable-content::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: linear-gradient(to bottom, transparent, #ffffff);
  pointer-events: none;
}

.read-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.85rem;
  background: rgba(90, 127, 142, 0.10);
  border: 1px solid rgba(90, 127, 142, 0.18);
  color: var(--primary-teal);
  cursor: pointer;
  transition: all 0.3s ease;
}

.read-more-btn:hover {
  background: rgba(90, 127, 142, 0.15);
  transform: translateX(2px);
}

.read-more-btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.read-more-btn.expanded svg {
  transform: rotate(180deg);
}

/* Mobile responsive adjustments */
@media (max-width: 640px) {
  .referralForm {
    padding-inline: 0;
  }

  .referralFieldset {
    margin-inline: 0;
    padding: 14px 14px 12px;
  }

  .referralFieldset,
  .referralFieldset * {
    max-width: 100%;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .form-options-columns {
    grid-template-columns: 1fr;
  }

  .referralActions {
    padding-inline: 14px;
  }

  .referralActions .btn {
    width: 100%;
  }

  .serviceDetailContent.collapsed .expandable-content {
    max-height: 100px;
  }

  .read-more-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 360px) {
  .referralFieldset {
    padding: 12px 10px;
  }

  .form-group input[type="text"],
  .form-group input[type="email"],
  .form-group input[type="tel"],
  .form-group input[type="date"],
  .form-group input[type="file"],
  .form-group select,
  .form-group textarea {
    width: 100%;
  }
}

