/* === Base Font and Layout === */
body {
    height: 100%;
    margin: 0;
    font-family: "Helvetica", "Arial", sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #0b0c0c;
    background-color: #f3f2f1;
    display: flex;
    flex-direction: column;
  }
  
  label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    font-size: 1rem;
  }
  
  h1 {
    font-size: 2.25rem;
    line-height: 1.2;
    font-weight: bold;
    margin-bottom: 20px;
  }
  
  @media (max-width: 600px) {
    h1 {
      font-size: 1.75rem;
    }
  }

  .hidden {
    display: none;
  }

  @media (min-width: 768px) {
    .md\:hidden {
        display: none;
    }

    .md\:inline {
        display: inline;
    }

    .md\:block {
      display: block;
    }

    .md\:list-item {
      display: list-item;
    }
  }
  
  .govuk-width-container {
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
      box-sizing: border-box;
  }
  
  /* === Top Bar and Header === */
  .top-bar {
    background-color: #231f20;
    padding: 10px 20px;
  }
  
  /* This is optional if you want it vertically centered with flex */
  .top-bar .govuk-width-container {
    display: flex;
    align-items: center;
  }
  
  .logo img {
    display: block;
    height: 40px;
  }
  
  .headline {
    background-color: #ecf9e7;
    padding: 20px 20px;
    text-align: left;
  }
  
  .headline h1 {
    margin: 0;
    font-size: 1.8em;
    color: #231f20;
  }
  
  .content {
    background-color: #ffffff;
    padding: 5px 20px;
  }
  
  .question {
    margin-bottom: 20px;
  }
  
  /* === Input Fields === */
  input[type="text"] {
    display: block;
    width: 100%;
    max-width: 400px;
    padding: 14px 12px;
    font-size: 1rem;
    color: #0b0c0c;
    background-color: #ffffff;
    border: 2px solid #0b0c0c;
    border-radius: 4px;
    box-sizing: border-box;
  }
  
  input[type="text"]::placeholder {
    color: #6c757d;
    transition: color 0.2s ease;
  }
  
  input[type="text"]:focus::placeholder {
    color: transparent;
  }
  
  input[type="text"]:focus {
    outline: 3px solid #ffdd00;
    outline-offset: 0;
  }
  
  /* === Select Dropdowns === */
  select {
    font-size: 1rem;
    padding: 10px;
    border: 2px solid #0b0c0c;
    border-radius: 4px;
    background-color: #ffffff;
    color: #0b0c0c;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2010%206'%3E%3Cpath%20fill='%230b0c0c'%20d='M0%200l5%206%205-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px 7px;
    min-width: 60px;
    padding-right: 30px;
  }
  
  select:focus {
    outline: 3px solid #ffdd00;
  }
  
  .marriage-date {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
  }
  
  /* === Buttons === */
  .buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    text-transform: capitalize;
  }
  
  .gov-button {
    display: inline-block;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: bold;
    font-family: "Helvetica", "Arial", sans-serif;
    color: #ffffff;
    background-color: #7fbc03;
    border: none;
    border-radius: 4px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
    line-height: 1.2;
  }
  
  .gov-button:focus {
    outline: 3px solid #ffdd00;
    outline-offset: 0;
  }
  
  .gov-button:hover {
    background-color: #6aa502;
  }
  
  .gov-button.secondary {
    background-color: #f3f2f1;
    color: #0b0c0c;
    border: 2px solid #0b0c0c;
  }
  
  .gov-button.secondary:hover {
    background-color: #e0e0e0;
    color: #0b0c0c;
    border-color: #0b0c0c;
  }
  
  .gov-button.back {
    background-color: transparent;
    color: #0b0c0c;
    text-decoration: underline;
    border: none;
    padding-left: 0;
  }
  
  .gov-button.back:hover {
    color: #00703c;
    text-decoration: none;
  }

  .error {
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: rgb(220, 38, 38);
  }
  
  /* === Footer === */
  
  .footer-divider {
    height: 10px;
    background-color: #b1b4b6; /* stronger GOV.UK grey */
    width: 100%;
    margin-bottom: 0;
  }
  
  .footer {
    background-color: #f3f2f1;
    padding: 30px 20px;
    font-size: 13px;
    line-height: 1.5;
    color: #5a5a5a; /* softer grey */
    margin-top: 10px;
  }
  
  .footer a {
    color: #1d70b8;
    text-decoration: underline;
  }
  
  .footer a:hover {
    text-decoration: none;
  }
  
  .bottom_button {
    margin-bottom: 40px;
  }
  
  img {
    max-width: 100%;
    height: auto;
    display: block;
  }
  
  input[type="email"],
  input[type="tel"] {
    display: block;
    width: 100%;
    max-width: 400px;
    padding: 14px 12px;
    font-size: 1rem;
    font-family: "Helvetica", "Arial", sans-serif;
    color: #0b0c0c;
    background-color: #ffffff;
    border: 2px solid #0b0c0c;
    border-radius: 4px;
    box-sizing: border-box;
  }
  
  input[type="email"]::placeholder,
  input[type="tel"]::placeholder {
    color: #6c757d;
    transition: color 0.2s ease;
  }
  
  input[type="email"]:focus::placeholder,
  input[type="tel"]:focus::placeholder {
    color: transparent;
  }
  
  input[type="email"]:focus,
  input[type="tel"]:focus {
    outline: 3px solid #ffdd00; /* GOV.UK yellow focus ring */
    outline-offset: 0;
  }
  
  .section-title {
    font-size: 1.75rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
  }
  
  .step-caption {
    font-size: 1rem;
    color: #6c757d;
    margin-bottom: 1rem;
    font-weight: bold;
  }
  
  .section-subtext {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
  
  .info-box {
    background-color: #e6f9ed; /* light mint green */
    border: 1px solid #7fbc03; /* brand green border */
    border-radius: 6px;
    padding: 15px 20px;
    font-size: 0.95rem;
    color: #0b0c0c;
    margin-top: 30px;
    line-height: 1.5;
  }
  
  .partner-signature-box {
    background-color: #ffffcc;
    border: 1px solid #d4351c;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 4px;
    font-size: 1rem;
    line-height: 1.6;
  }
  
  .partner-signature-box ul{
      margin: 0;
    padding-left: 20px; 	
  }
  
  .sign-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
  }
  
  .sign-buttons .gov-button {
    padding: 12px 24px;
    font-weight: bold;
    box-sizing: border-box; /* important */
  }
  
  /* On mobile: stacked full width within container */
  @media (max-width: 600px) {
    .sign-buttons {
      flex-direction: column;
      align-items: stretch;
    }
  
    .sign-buttons .gov-button {
      width: 100%; /* 100% of the container */
    }
  }
  
  
  
  
  .extra-refunds-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
  }
  
  .extra-box {
    background-color: #ffffcc;
    border: 1px solid #d4351c;
    padding: 20px;
    border-radius: 4px;
    flex: 1 1 48%; /* allows for equal width on desktop, stack on mobile */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  
  .full-width-box {
    background-color: #ffffcc;
    border: 1px solid #d4351c;
    padding: 20px;
    border-radius: 4px;
    margin-top: 20px;
  }
  
  /* Stack on mobile */
  @media (max-width: 768px) {
    .extra-refunds-wrapper {
      flex-direction: column;
    }
  
    .extra-box {
      width: 100%;
    }
  }
  
  .full-width-box .gov-button {
    display: block;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }
  
  .green-action-box {
    background-color: #e6f9ed;
    border: 1px solid #28a745;
    padding: 20px;
    border-radius: 4px;
    margin-top: 20px;
  }
  
  .green-action-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
  }
  
  .green-action-box {
    background-color: #e6f9ed;
    border: 1px solid #28a745;
    padding: 20px;
    border-radius: 4px;
    box-sizing: border-box;
    flex: 1 1 48%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  
  .green-action-box.full-width {
    flex: 1 1 100%;
    margin-top: 20px;
  }
  
  /* Responsive stack on mobile */
  @media (max-width: 768px) {
    .green-action-wrapper {
      flex-direction: column;
    }
  
    .green-action-box {
      width: 100%;
    }
  }

  /* modal css */
  .modal-bg {
    position: fixed;
    top: 0px;
    left: 0px;
    z-index: 10;
    display: flex;
    height: 100vh;
    width: 100vw;
    align-items: flex-start;
    justify-content: center;
    --tw-bg-opacity: 1;
    background-color: rgba(0, 0, 0, var(--tw-bg-opacity));
    --tw-bg-opacity: 0.5;
  }

  .p-4 {
      padding: 1rem;
  }
  .bg-white {
      --tw-bg-opacity: 1;
      background-color: rgba(255, 255, 255, var(--tw-bg-opacity));
  }
  .rounded {
      border-radius: 0.25rem;
  }
  .w-full {
      width: 100%;
  }
  .fixed {
      position: fixed;
  }

  .text-center {
    text-align: center;
  }

  .text-left {
    text-align: left;
  }

  @media (min-width: 640px) {
    .modal-bg {
        align-items: center;
    }
  }

  @media (min-width: 768px) {
    .md\:w-2\/4 {
        width: 50%;
    }

    .md\:text-left {
      text-align: left;
    }

    .md\:justify-start {
      justify-content: flex-start;
    }

    .md\:mt-0 {
      margin-top: 0px;
    }

    .content {
      flex: 1 0 auto;
      min-height: 75vh;
    }
  }