  :root{
    --red: #06408a;
    --red-dark: #0851af;
    --ink: #26262A;
    --field-bg: #ECECEC;
    --field-bg-focus: #E4E4E4;
    --muted: #7A7A7E;
    --line: #E7E7E7;
    --page: #f5f5f5;
    --font-head: var(--font-heading);
    --font-body: var(--font-body);
    }

  *{ box-sizing: border-box; }
  html,body{ margin:0; padding:0; background: #f5f5f5; }
  body{
    font-family: var(--font-body);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
  }

  .wrap{
    max-width: 860px;
    margin: 150px auto 70px;
    background: #ffffff;
    padding: 60px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
  }

  .top-header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 22px;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--red);
  }
  .top-header .brand{
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 20px;
    color: var(--ink);
    letter-spacing: 0.01em;
  }
  .top-header .brand span{ color: var(--red); }
  .top-header .tagline{
    font-size: 12.5px;
    color: var(--muted);
    margin-top: 2px;
  }
  .top-header .form-title{
    text-align: right;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.5;
  }
  .top-header .form-title strong{
    display:block;
    font-family: var(--font-head);
    font-size: 15px;
    color: var(--ink);
  }

  section.block{ margin-bottom: 34px; }

  .sec-title{
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
  }
  .sec-num{
    flex: 0 0 auto;
    width: 26px; height: 26px;
    border-radius: 50%;
    background: var(--red);
    color: #fff;
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 600;
    display: flex; align-items: center; justify-content: center;
  }
  .sec-title h2{
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 16px;
    color: var(--red);
    margin: 0;
    letter-spacing: 0.01em;
  }

  .row{
    display: grid;
    gap: 14px;
    margin-bottom: 14px;
  }
  .row.cols-2{ grid-template-columns: 1fr 1fr; }
  .row.cols-3{ grid-template-columns: 1fr 1fr 1fr; }
  .row.cols-4{ grid-template-columns: 1.3fr 1fr 1fr 1fr; }

  label.field-label{
    display:block;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 6px;
    font-weight: 500;
  }
  label.field-label .req{ color: var(--red); }

  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  input[type="date"],
  select,
  textarea{
    width: 100%;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--ink);
    background: var(--field-bg);
    border: 1px solid transparent;
    border-radius: 5px;
    padding: 12px 14px;
    transition: background .15s ease, border-color .15s ease;
    appearance: none;
    -webkit-appearance: none;
  }
  select{
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237A7A7E' stroke-width='1.6' fill='none' fill-rule='evenodd'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 34px;
    cursor: pointer;
  }
  textarea{ resize: vertical; min-height: 84px; }

  input::placeholder, textarea::placeholder{ color: #9A9A9E; }

  input:focus, select:focus, textarea:focus{
    outline: none;
    background: var(--field-bg-focus);
    border-color: var(--red);
  }

  /* Yes/No radio pairs */
  .yn-row{
    display: flex;
    align-items: center;
    gap: 26px;
    font-size: 14px;
    margin-bottom: 4px;
  }
  .yn-row .yn-q{ color: var(--ink); font-weight: 500; }
  .yn-opt{
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
  }
  .yn-opt input{ accent-color: var(--red); width: 15px; height: 15px; cursor: pointer; }
  .yn-opt span{ font-size: 13.5px; color: var(--ink); }

  #proficiency-detail, #visit-detail{
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height .3s ease, opacity .25s ease, margin .25s ease;
  }
  #proficiency-detail.open, #visit-detail.open{
    max-height: 200px;
    opacity: 1;
    margin-top: 12px;
  }

  /* checkbox chip grid for "how did you hear" */
  .check-grid{
    display: grid;
    grid-template-columns: repeat(4, auto);
    gap: 10px 22px;
    margin-bottom: 4px;
  }
  .check-opt{
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13.5px;
    color: var(--ink);
    cursor: pointer;
  }
  .check-opt input{ accent-color: var(--red); width: 15px; height: 15px; cursor: pointer; }

  /* contact mode chips */
  .mode-grid{
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 4px;
  }
  .mode-grid input{ position:absolute; opacity:0; pointer-events:none; }
  .mode-grid label{
    font-size: 13.5px;
    font-weight: 500;
    color: var(--ink);
    background: var(--field-bg);
    padding: 10px 16px;
    border-radius: 999px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all .15s ease;
    margin: 0;
  }
  .mode-grid input:checked + label{
    background: var(--red);
    color: #fff;
  }

  .submit-wrap{
    text-align: center;
    margin-top: 40px;
  }
  button.submit-btn{
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    background: var(--red-dark); 
    border: none;
    padding: 14px 54px;
    border-radius: 5px;
    cursor: pointer;
    transition: background .15s ease, transform .1s ease;
  }
  button.submit-btn:hover{ background: var(--red); }
  button.submit-btn:active{ transform: translateY(1px); }

  .success-panel{
    display: none;
    text-align: center;
    padding: 60px 20px;
  }
  .success-panel.show{ display: block; }
  .success-badge{
    width: 52px; height: 52px;
    border-radius: 50%;
    background: var(--red);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px;
    margin: 0 auto 18px;
  }
  .success-panel h3{
    font-family: var(--font-head);
    font-size: 20px;
    margin: 0 0 8px;
  }
  .success-panel p{
    color: var(--muted);
    font-size: 14px;
    max-width: 420px;
    margin: 0 auto;
    line-height: 1.6;
  }
  .success-panel button{
    margin-top: 22px;
    background: none;
    border: 1px solid var(--line);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 13.5px;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
  }

  #enquiry-form.hidden{ display: none; }

  @media (max-width: 640px){
    .wrap{ padding: 30px 20px; margin-top: 100px; border-radius: 12px; }
    .row.cols-2, .row.cols-3, .row.cols-4{ grid-template-columns: 1fr; }
    .check-grid{ grid-template-columns: repeat(2, auto); }
    .top-header{ flex-direction: column; align-items: flex-start; gap: 10px; }
    .top-header .form-title{ text-align: left; }
  }

  @media (prefers-reduced-motion: reduce){ *{ transition: none !important; } }
