/* contact page */
/* =================================================================
     CONTACT PAGE
  ==================================================================*/

  .ct-wrap{ max-width:var(--container); margin:0 auto; padding:12px 12px 0; }

  .ct-hero{
    position:relative;
    overflow:hidden;
    border-radius:16px;
    padding:24px 18px 22px;
    color:#fff;
    background:
      radial-gradient(240px 160px at 100% 0%, rgba(255,255,255,0.18), transparent 70%),
      linear-gradient(135deg, var(--brand-light), var(--brand) 55%, var(--brand-dark));
  }
  .ct-hero::after{
    content:"";
    position:absolute;
    right:-40px; bottom:-60px;
    width:180px; height:180px;
    border-radius:50%;
    border:22px solid rgba(255,255,255,0.07);
  }
  .ct-hero h1{ margin:0 0 6px; font-size:24px; font-weight:700; }
  .ct-hero p{ margin:0; font-size:13px; line-height:1.55; color:rgba(255,255,255,0.88); max-width:420px; }
  .ct-status{
    display:inline-flex;
    align-items:center;
    gap:8px;
    margin-top:14px;
    padding:6px 12px;
    border-radius:999px;
    background:rgba(255,255,255,0.14);
    border:1px solid rgba(255,255,255,0.22);
    font-size:12px;
    font-weight:600;
  }
  .ct-status .led{ width:8px; height:8px; border-radius:50%; background:#9AA3B2; }
  .ct-status.open .led{ background:#3DDC84; box-shadow:0 0 0 3px rgba(61,220,132,0.25); animation:led 1.6s ease-in-out infinite; }
  @keyframes led{ 50%{ box-shadow:0 0 0 6px rgba(61,220,132,0.08); } }

  /* quick contact cards */
  .ct-quick{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
    margin-top:14px;
  }
  .ct-q{
    display:flex;
    flex-direction:column;
    gap:8px;
    padding:14px;
    border-radius:14px;
    border:1px solid var(--line);
    background:#fff;
    text-decoration:none;
    color:var(--text);
    transition:border-color .15s ease, transform .15s ease, box-shadow .15s ease;
  }
  .ct-q:hover{ border-color:var(--brand); transform:translateY(-2px); box-shadow:0 6px 18px rgba(var(--brand-rgb),0.10); }
  .ct-q .ic{
    width:40px; height:40px;
    border-radius:12px;
    display:flex; align-items:center; justify-content:center;
    background:var(--brand-soft);
    color:var(--brand);
  }
  .ct-q .ic svg{ width:20px; height:20px; }
  .ct-q.wa .ic{ background:#E5F7EC; color:#1FAF55; }
  .ct-q strong{ font-size:13.5px; }
  .ct-q span{ font-size:12px; color:var(--muted); line-height:1.4; word-break:break-word; }
  .ct-q em{ font-style:normal; font-size:11.5px; font-weight:700; color:var(--brand); margin-top:auto; }
  .ct-q.wa em{ color:#1A9A4A; }

  /* main grid */
  .ct-main{ margin-top:18px; display:grid; gap:14px; }
  .ct-card{
    background:#fff;
    border:1px solid var(--line);
    border-radius:16px;
    padding:18px 16px;
  }
  .ct-card h2{ margin:0 0 4px; font-size:17px; color:var(--text); }
  .ct-card p.sub{ margin:0 0 16px; font-size:12.5px; color:var(--muted); }

  /* form */
  .ct-form{ display:grid; gap:12px; }
  .ct-row{ display:grid; gap:12px; }
  .ct-field label{ display:block; font-size:12px; font-weight:700; color:var(--text-2); margin:0 0 5px; }
  .ct-field label .opt{ font-weight:500; color:var(--muted-2); }
  .ct-field input,
  .ct-field select,
  .ct-field textarea{
    width:100%;
    border:1.5px solid var(--line-2);
    border-radius:10px;
    padding:0 12px;
    font-size:14px;
    color:var(--text);
    background:#fff;
    outline:none;
    transition:border-color .15s ease;
  }
  .ct-field input, .ct-field select{ height:46px; }
  .ct-field select{
    -webkit-appearance:none;
    appearance:none;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B6577' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat:no-repeat;
    background-position:right 12px center;
    background-size:16px;
    padding-right:36px;
  }
  .ct-field textarea{ min-height:120px; padding:10px 12px; resize:vertical; line-height:1.5; }
  .ct-field input:focus, .ct-field select:focus, .ct-field textarea:focus{ border-color:var(--brand); }
  .ct-field [aria-invalid="true"]{ border-color:#D64545; background:#FFF7F7; }
  .ct-err{ display:none; font-size:11.5px; color:#C0392B; margin-top:4px; }
  .ct-field [aria-invalid="true"] ~ .ct-err{ display:block; }
  .ct-count{ float:right; font-size:11px; font-weight:500; color:var(--muted-2); }
  .ct-field[hidden]{ display:none; }

  .ct-topics{ display:flex; flex-wrap:wrap; gap:8px; }
  .ct-topics label{ position:relative; }
  .ct-topics input{ position:absolute; opacity:0; pointer-events:none; }
  .ct-topics span{
    display:inline-block;
    padding:8px 13px;
    border-radius:999px;
    border:1.5px solid var(--line-2);
    font-size:12.5px;
    font-weight:600;
    color:var(--text-2);
    cursor:pointer;
    transition:all .15s ease;
  }
  .ct-topics input:checked + span{ background:var(--brand); border-color:var(--brand); color:#fff; }
  .ct-topics input:focus-visible + span{ outline:2px solid var(--brand); outline-offset:2px; }

  .ct-consent{ display:flex; gap:10px; align-items:flex-start; font-size:12px; color:var(--muted); line-height:1.5; }
  .ct-consent input{ width:18px; height:18px; margin:1px 0 0; accent-color:var(--brand); flex-shrink:0; }

  .ct-submit{
    height:50px;
    border:none;
    border-radius:10px;
    background:var(--brand);
    color:#fff;
    font-size:14.5px;
    font-weight:700;
    cursor:pointer;
    display:flex; align-items:center; justify-content:center; gap:8px;
  }
  .ct-submit svg{ width:18px; height:18px; }
  .ct-submit .spin{
    width:16px; height:16px;
    border:2px solid rgba(255,255,255,.4);
    border-top-color:#fff;
    border-radius:50%;
    animation:spin .7s linear infinite;
    display:none;
  }
  .ct-submit.loading .spin{ display:block; }
  .ct-submit.loading svg{ display:none; }
  @keyframes spin{ to{ transform:rotate(360deg); } }

  .ct-success{ text-align:center; padding:26px 6px 10px; }
  .ct-success[hidden]{ display:none; }
  .ct-success .tick{
    width:68px; height:68px;
    margin:0 auto 14px;
    border-radius:50%;
    background:#E6F5EC;
    color:#1E8A4C;
    display:flex; align-items:center; justify-content:center;
    animation:popIn .4s ease;
  }
  .ct-success .tick svg{ width:32px; height:32px; }
  @keyframes popIn{ 0%{ transform:scale(.6); opacity:0; } 100%{ transform:scale(1); opacity:1; } }
  .ct-success h3{ margin:0 0 6px; font-size:18px; color:var(--text); }
  .ct-success p{ margin:0 auto 16px; font-size:13px; color:var(--muted); line-height:1.55; max-width:320px; }
  .ct-success .ticket{ display:inline-block; font-size:12px; font-weight:700; color:var(--brand); background:var(--brand-soft); padding:6px 12px; border-radius:8px; margin-bottom:16px; }
  .ct-again{ border:1.5px solid var(--line-2); background:#fff; color:var(--text-2); font-size:13px; font-weight:700; height:42px; padding:0 18px; border-radius:10px; cursor:pointer; }

  /* side info */
  .hours{ list-style:none; margin:0; padding:0; }
  .hours li{ display:flex; justify-content:space-between; padding:9px 0; border-top:1px solid var(--line); font-size:13px; color:var(--muted); }
  .hours li:first-child{ border-top:none; padding-top:0; }
  .hours li b{ color:var(--text-2); font-weight:600; }
  .hours li.today{ color:var(--brand); font-weight:700; }
  .hours li.today b{ color:var(--brand); }
  .hours .closed{ color:#C0392B; }

  .ct-addr{ display:flex; gap:12px; font-size:13px; line-height:1.6; color:var(--muted); }
  .ct-addr svg{ width:20px; height:20px; color:var(--brand); flex-shrink:0; margin-top:2px; }
  .ct-addr b{ color:var(--text); }
  .ct-map{
    position:relative;
    display:block;
    margin-top:14px;
    height:150px;
    border-radius:12px;
    overflow:hidden;
    text-decoration:none;
    background:
      linear-gradient(0deg, rgba(255,255,255,.0), rgba(255,255,255,.0)),
      repeating-linear-gradient(0deg, transparent 0 28px, rgba(var(--brand-rgb),0.07) 28px 30px),
      repeating-linear-gradient(90deg, transparent 0 34px, rgba(var(--brand-rgb),0.07) 34px 36px),
      linear-gradient(135deg, var(--brand-wash), var(--brand-tint));
  }
  .ct-map::before{
    content:"";
    position:absolute;
    left:-10%; right:-10%; top:55%;
    height:14px;
    background:#fff;
    transform:rotate(-8deg);
    box-shadow:0 0 0 1px rgba(var(--brand-rgb),0.08);
  }
  .ct-map .pin{
    position:absolute;
    left:50%; top:42%;
    transform:translate(-50%, -50%);
    width:38px; height:38px;
    color:var(--brand);
    filter:drop-shadow(0 4px 6px rgba(0,0,0,.2));
  }
  .ct-map .open-map{
    position:absolute;
    right:10px; bottom:10px;
    background:#fff;
    color:var(--brand);
    font-size:12px;
    font-weight:700;
    padding:7px 12px;
    border-radius:8px;
    box-shadow:0 2px 8px rgba(0,0,0,.12);
  }

  .ct-vaidya{
    display:flex;
    gap:14px;
    align-items:center;
    padding:16px;
    border-radius:16px;
    color:#fff;
    background:linear-gradient(135deg, var(--brand-dark), var(--brand));
  }
  .ct-vaidya .ic{ width:46px; height:46px; border-radius:50%; background:rgba(255,255,255,0.14); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
  .ct-vaidya .ic svg{ width:22px; height:22px; }
  .ct-vaidya strong{ display:block; font-size:14.5px; }
  .ct-vaidya span{ font-size:12px; color:rgba(255,255,255,0.8); }
  .ct-vaidya a{
    margin-left:auto;
    flex-shrink:0;
    background:#fff;
    color:var(--brand);
    font-size:12.5px;
    font-weight:700;
    text-decoration:none;
    padding:9px 14px;
    border-radius:8px;
  }

  .ct-social{ display:flex; gap:10px; }
  .ct-social a{
    width:42px; height:42px;
    border-radius:12px;
    border:1px solid var(--line);
    display:flex; align-items:center; justify-content:center;
    color:var(--brand);
    transition:background .15s ease, color .15s ease;
  }
  .ct-social a:hover{ background:var(--brand); color:#fff; }
  .ct-social svg{ width:18px; height:18px; }

  .ct-form-err{ margin:0; font-size:13px; font-weight:600; color:#C0392B; }
  .ct-form-err:empty{ display:none; }
  .ct-quick .ct-q:last-child:nth-child(odd){ grid-column:1 / -1; }

  @media (min-width:640px){
    .ct-row{ grid-template-columns:1fr 1fr; }
  }
  @media (min-width:1024px){
    .crumbs{ max-width:var(--page-max); padding:16px 32px 0; }
    .ct-wrap{ max-width:var(--page-max); padding:14px 32px 0; }
    .ct-hero{ padding:40px 44px; }
    .ct-hero h1{ font-size:34px; }
    .ct-hero p{ font-size:14.5px; }
    .ct-quick{ grid-template-columns:repeat(var(--q, 4), 1fr); gap:14px; margin-top:18px; }
    .ct-q{ padding:18px; }
    .ct-main{ grid-template-columns:minmax(0,1.5fr) minmax(0,1fr); gap:18px; align-items:start; margin-top:22px; }
    .ct-card{ padding:24px; }
    .ct-side{ display:grid; gap:14px; }
  }
  @media (max-width:1023px){
    .ct-side{ display:grid; gap:14px; }
  }
  .ct-legend{ display:block; font-size:12px; font-weight:700; color:var(--text-2); margin:0 0 8px; }
  .ct-topics label{ margin:0; font-size:inherit; }

  @media (min-width:1024px){ .ct-quick .ct-q:last-child:nth-child(odd){ grid-column:auto; } }

  /* Simple contact page: just the quick contact cards, centred */
  .ct-wrap{ padding-bottom:8px; }
  @media (min-width:1024px){
    .ct-quick{ grid-template-columns:repeat(var(--q, 4), minmax(0, 300px)); justify-content:center; gap:16px; margin-top:22px; }
    .ct-q{ padding:22px; align-items:flex-start; }
    .ct-q strong{ font-size:15px; }
    .ct-q span{ font-size:13px; }
    .ct-q em{ font-size:12.5px; }
  }

  /* Quick answers */
  .ct-faq{ max-width:820px; margin:28px auto 0; }
  .ct-faq h2{ margin:0 0 12px; font-size:18px; font-weight:700; color:var(--text); text-align:center; }
  .ct-faq-list{ border:1px solid var(--line); border-radius:14px; background:#fff; overflow:hidden; }
  .ct-faq details + details{ border-top:1px solid var(--line); }
  .ct-faq summary{
    list-style:none; cursor:pointer;
    display:flex; align-items:center; justify-content:space-between; gap:12px;
    padding:15px 18px; font-size:14px; font-weight:600; color:var(--text);
  }
  .ct-faq summary::-webkit-details-marker{ display:none; }
  .ct-faq summary svg{ width:16px; height:16px; flex-shrink:0; color:var(--muted-2); transition:transform .2s ease; }
  .ct-faq details[open] summary svg{ transform:rotate(180deg); color:var(--brand); }
  .ct-faq details p{ margin:0; padding:0 18px 16px; font-size:13.5px; line-height:1.6; color:var(--muted); }
  .ct-faq-more{ margin:14px 0 0; text-align:center; font-size:13px; color:var(--muted); }
  .ct-faq-more a{ color:var(--brand); font-weight:600; }
  @media (min-width:1024px){
    .ct-faq{ margin-top:44px; }
    .ct-faq h2{ font-size:22px; margin-bottom:16px; }
    .ct-faq summary{ padding:18px 22px; font-size:15px; }
    .ct-faq details p{ padding:0 22px 18px; font-size:14px; }
  }
