/* Simple GOV.UK-style CSS */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

* {
  box-sizing: border-box;
}

html {
  height: 100%;
  width: 100%;
  font-family: "Segoe UI", arial, sans-serif;
}

body {
  margin: 0;
  padding: 0;
  color: #0b0c0c;
  background-color: #ffffff;
  font-size: 19px;
  line-height: 1.5;
}

a {
  color: #101827;
  text-decoration: underline;
}

a:hover {
  color: #101827;
}

a:visited {
  color: #4c2c92;
}

.govuk-width-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px;
}

.govuk-header {
  background-color: #101827;
  color: white;
  padding: 10px 0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.govuk-header__link {
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 24px;
}

.govuk-header__logotype {
  height: 60px;
  width: auto;
  fill: white;
}

.gem-c-layout-super-navigation-header {
  background-color: #ffffff;
  color: white;
  padding: 20px 0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.gem-c-layout-super-navigation-header__container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px;
}

.govuk-skip-link {
  position: absolute;
  left: -9999px;
}

.page-title {
  font-family: "Segoe UI", sans-serif;
  font-size: 30px;
  font-weight: 700;
  color: #000000;
  margin: 40px 0 25px 5px;
  text-align: left;
}

.content-area {
  max-width: 800px;
  margin: 10px 0;
  padding: 0 5px;
}

.section-title {
  font-family: "Segoe UI", sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #000000;
  margin-top: 20px;
  margin-bottom: 10px;
}

.section-title:first-child {
  margin-top: 0;
}

.section-text {
  font-family: "Segoe UI", arial, sans-serif;
  font-size: 16px;
  line-height: 1.4;
  color: #000000;
  margin-bottom: 12px;
}

/* Desktop layout */
.myimg {
    display: none;
}

/* Mobile layout */
@media (max-width: 700px) {
    .myimg {
        display: none;
    }
}

.bank-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.bank-option {
  cursor: pointer;
}

.bank-option input {
  display: none;
}

.bank-option .content {
  border: 2px solid #e5e5e5;
  border-radius: 12px;
  padding: 12px 10px;
  text-align: center;
  transition: 0.18s;
  background: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 140px; /* uniform box height */
  box-sizing: border-box;
}

.bank-option .content img {
  width: 60px;
  height: auto;
  margin: 0 0 8px 0;
  display: block;
}

.bank-option input:checked + .content {
  border-color: #7c1df0; /* purple highlight like your screenshot */
  background: #f7eefe;
  box-shadow: 0 0 10px rgba(124, 29, 240, 0.2);
}

 .bank-option .content span {
  font-size: 14px;
  font-weight: 500;
  display: block;
  text-align: center;
  line-height: 1.2;
}

/* Selected banks shown on payment page */
.selected-banks {
  margin: 12px 0 20px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

/* Match selection page card style for payment buttons */
.selected-bank-button {
  background: white;
  border: 2px solid #e5e5e5;
  border-radius: 12px;
  padding: 12px 10px;
  text-align: center;
  transition: 0.18s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 140px; /* same as selection */
  box-sizing: border-box;
  width: 160px;
  cursor: pointer;
}

.selected-bank-button + .selected-bank-button {
  margin-left: 6px;
}

.selected-bank-button img {
  width: 60px;
  height: auto;
  margin: 0 auto 8px auto; /* center the image horizontally */
  display: block;
}

.selected-bank-button span {
  font-size: 14px;
  font-weight: 500;
  display: block;
  text-align: center;
  line-height: 1.2;
  color: #000000;
  margin-top: 4px; /* ensure label sits directly under image */
  word-break: break-word;
  width: 100%;
}

/* Selected state: outlined and highlighted to match selection page */
.selected-bank-button.govuk-button--secondary,
.selected-bank-button:focus {
  border-color: #7c1df0;
  background: #f7eefe;
  box-shadow: 0 0 10px rgba(124, 29, 240, 0.2);
  outline: none;
}

/* Keep button text color consistent; allow background/outline styles
   (including selected-state) to apply so the payment buttons match
   the selection page visuals. */
.selected-bank-button,
.selected-bank-button:hover,
.selected-bank-button:active {
  color: #000000 !important;
}

/* Ensure govuk button base styles (green) don't override our card look.
   Increase specificity and use !important for properties that govuk sets. */
.selected-bank-button.govuk-button,
.selected-bank-button.govuk-button:hover,
.selected-bank-button.govuk-button:active,
.selected-bank-button.govuk-button:focus {
  background: #ffffff !important;
  border-color: #e5e5e5 !important;
  box-shadow: none !important;
  color: #000000 !important;
}

/* Ensure selected (secondary) state still shows purple outline/pale background */
.selected-bank-button.govuk-button--secondary,
.selected-bank-button.govuk-button--secondary:focus {
  border: 2px solid #7c1df0 !important;
  background: #f7eefe !important;
  box-shadow: 0 0 10px rgba(124, 29, 240, 0.2) !important;
  outline: none !important;
  color: #000000 !important;
}

/* Mobile-friendly smaller buttons */
@media (max-width: 480px) {
  .selected-banks {
    gap: 10px;
  }

  .selected-bank-button {
    width: 110px;
    min-height: 100px;
    padding: 10px 8px;
  }

  .selected-bank-button img {
    width: 44px;
    margin-bottom: 6px;
  }

  .selected-bank-button span {
    font-size: 13px;
    margin-top: 2px;
  }
}

.requirement-list {
  font-family: "Segoe UI", arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #000000;
  margin-left: 20px;
  padding-left: 0;
}

.requirement-list li {
  margin-bottom: 6px;
}

.warning-box {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin: 20px 0;
  padding: 0;
}

.warning-icon {
  background-color: #000000;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  flex-shrink: 0;
}

.warning-text {
  font-family: "Segoe UI", arial, sans-serif;
  font-size: 18px;
  font-weight: bold;
  line-height: 1.4;
  color: #000000;
  margin: 0;
  padding-top: 5px;
}

.start-button {
  background-color: #7A003D;
  color: white;
  font-family: "Segoe UI", sans-serif;
  font-size: 19px;
  font-weight: 700;
  padding: 15px 30px;
  border: none;
  border-radius: 0;
  cursor: pointer;
  margin-top: 15px;
  box-shadow: 0 4px 0 #510029, 0 6px 12px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 430px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s ease;
}

.start-button .arrow {
  font-size: 24px;
  font-weight: normal;
}

.start-button:hover {
  background-color: #7A003D;
  box-shadow: 0 4px 0 #510029, 0 8px 16px rgba(0, 0, 0, 0.4);
  transform: translateY(-1px);
}

.start-button:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #510029, 0 3px 6px rgba(0, 0, 0, 0.2);
}

.govuk-skip-link:focus {
  position: static;
}

.govuk-heading-xl {
  font-size: 48px;
  font-weight: bold;
  margin: 30px 0 20px;
}

.govuk-heading-l {
  font-size: 36px;
  font-weight: bold;
  margin: 30px 0 20px;
}

.govuk-heading-m {
  font-size: 24px;
  font-weight: bold;
  margin: 20px 0 15px;
}

.govuk-heading-s {
  font-size: 19px;
  font-weight: bold;
  margin: 15px 0 10px;
}

.govuk-body {
  font-size: 19px;
  line-height: 1.5;
  margin: 0 0 20px;
}

.govuk-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}

.govuk-list li {
  margin-bottom: 10px;
}

.govuk-link {
  color: #1d70b8;
  text-decoration: underline;
}

.govuk-link:hover {
  color: #003078;
}

.govuk-footer {
  background-color: #f3f2f1;
  border-top: 1px solid #b1b4b6;
  padding: 40px 0 20px;
  margin-top: 40px;
}

.govuk-footer__link {
  color: #1d70b8;
  text-decoration: underline;
}

.govuk-footer__heading {
  font-size: 19px;
  font-weight: bold;
  margin-bottom: 15px;
}

.govuk-footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.govuk-footer__list-item {
  margin-bottom: 10px;
}

.govuk-footer__inline-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.govuk-footer__inline-list-item {
  margin: 0;
}

.fancy-footer {
  background-color: #101827;
  color: white;
  padding: 40px 30px;
  margin: 40px -15px 0 -15px;
  font-family: "Segoe UI", arial, sans-serif;
  width: calc(100% + 30px);
}

.fancy-footer .footer-container {
  max-width: 600px;
  margin: 0 auto;
}

.fancy-footer .footer-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.fancy-footer .footer-icon {
  width: 28px;
  height: 28px;
  color: #9ca3af;
}

.fancy-footer .footer-title {
  font-size: 22px;
  font-weight: 600;
  margin: 0;
  color: white;
}

.fancy-footer .footer-description {
  font-size: 15px;
  color: #9ca3af;
  margin: 0 0 30px 0;
  line-height: 1.5;
}

.fancy-footer .footer-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.fancy-footer .footer-icon-small {
  width: 22px;
  height: 22px;
  color: #9ca3af;
}

.fancy-footer .footer-section-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  color: white;
}

.fancy-footer .footer-section-title.standalone {
  margin-top: 30px;
  margin-bottom: 15px;
}

.fancy-footer .footer-list {
  list-style: disc;
  padding-left: 20px;
  margin: 0 0 10px 0;
}

.fancy-footer .footer-list li {
  font-size: 15px;
  color: #d1d5db;
  margin-bottom: 8px;
  line-height: 1.4;
}

.fancy-footer .footer-contact {
  margin-top: 10px;
}

.fancy-footer .contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 15px;
  color: #d1d5db;
}

.fancy-footer .contact-icon {
  width: 20px;
  height: 20px;
  color: #9ca3af;
}

.fancy-footer .footer-bottom {
  margin-top: 40px;
  padding-top: 25px;
  border-top: 1px solid #374151;
  text-align: center;
}

.fancy-footer .copyright-text {
  font-size: 14px;
  color: #9ca3af;
  margin: 0 0 8px 0;
}

.fancy-footer .registration-text {
  font-size: 14px;
  color: #9ca3af;
  margin: 0;
}

.govuk-grid-row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.govuk-grid-column-full {
  width: 100%;
  padding: 0 15px;
}

.govuk-grid-column-two-thirds {
  width: 66.66%;
  padding: 0 15px;
}

.govuk-grid-column-one-third {
  width: 33.33%;
  padding: 0 15px;
}

.govuk-grid-column-one-half {
  width: 50%;
  padding: 0 15px;
}

@media (max-width: 768px) {
  .govuk-grid-column-two-thirds,
  .govuk-grid-column-one-third,
  .govuk-grid-column-one-half {
    width: 100%;
  }
}

.govuk-main-wrapper {
  padding: 40px 0;
  background-color: white;
}

.brand__color {
  color: #1d70b8 !important;
}

.brand--department-for-work-pensions {
  border-color: #00703c;
}

.organisation__brand-border-top {
  border-top: 2px solid #00703c;
  padding-top: 20px;
}

.organisation__margin-bottom {
  margin-bottom: 40px;
}

.gem-c-organisation-logo {
  font-weight: bold;
  margin-bottom: 20px;
}

.gem-c-translation-nav {
  margin-bottom: 20px;
}

.govuk-visually-hidden {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.govuk-button {
  background-color: #7A003D;
  color: white;
  padding: 10px 20px;
  border: none;
  font-size: 19px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  margin: 5px 5px 5px 0;
}

.govuk-button:hover {
  background-color: #510029;
}

.govuk-cookie-banner {
  background-color: #f3f2f1;
  border-bottom: 1px solid #b1b4b6;
  padding: 20px 0;
  margin-bottom: 20px;
}

[hidden] {
  display: none !important;
}

.govuk-footer__section-break {
  border-bottom: 1px solid #b1b4b6;
  margin: 30px 0;
}

.govuk-footer__meta {
  margin-top: 30px;
}

.govuk-footer__licence-logo {
  width: 40px;
  height: auto;
  margin-right: 10px;
  vertical-align: middle;
}

.govuk-footer__licence-description {
  font-size: 16px;
}

.govuk-footer__copyright-logo {
  font-weight: bold;
}

@media print {
  .govuk-!-display-none-print {
    display: none !important;
  }
}

.form-page-container {
  max-width: 600px;
  margin: 40px auto;
  padding: 0 20px;
  background-color: #f8f8f8;
}

.form-page-title {
  font-family: "Segoe UI", sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: #0b0c0c;
  margin: 0 0 15px 0;
  padding-top: 20px;
}

.form-page-description {
  font-family: "Segoe UI", arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #0b0c0c;
  margin-bottom: 30px;
}

.govuk-form {
  background-color: white;
  padding: 0;
}

.form-section-title {
  font-family: "Segoe UI", sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #0b0c0c;
  margin: 30px 0 20px 0;
  padding-top: 10px;
}

.form-section-title:first-of-type {
  margin-top: 0;
  padding-top: 0;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-family: "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #0b0c0c;
  margin-bottom: 5px;
}

.form-input {
  width: 100%;
  padding: 8px 10px;
  font-family: "Segoe UI", arial, sans-serif;
  font-size: 16px;
  border: 2px solid #0b0c0c;
  border-radius: 0;
  box-sizing: border-box;
  background-color: white;
}

.form-input:focus {
  outline: 3px solid #ffdd00;
  outline-offset: 0;
  border-color: #0b0c0c;
}

.form-continue-button {
  background-color: #7A003D;
  color: white;
  font-family: "Segoe UI", sans-serif;
  font-size: 19px;
  font-weight: 700;
  padding: 12px 30px;
  border: none;
  border-radius: 0;
  cursor: pointer;
  margin-top: 30px;
  margin-bottom: 40px;
  width: 100%;
  max-width: 100%;
  box-shadow: 0 2px 0 #510029;
  transition: background-color 0.2s ease;
}

.form-continue-button:hover {
  background-color: #7A003D;
}

.form-continue-button:active {
  transform: translateY(2px);
  box-shadow: 0 0 0 #510029;
}

.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;

  opacity: 0;
  animation: fadeIn 0.5s forwards;
}

.popup-box {
  background: #ffffff;
  padding: 20px;
  border-radius: 0;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  max-width: 320px;
  width: 320px;

  transform: translateY(-10px);
  animation: popIn 0.4s ease-out forwards;
}

.popup-box h3 {
  font-family: "Segoe UI", sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: #0b0c0c;
  margin: 0 0 10px 0;
}

.popup-box p {
  font-family: "Segoe UI", arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #0b0c0c;
  margin: 0 0 20px 0;
}

/* Fade-in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Pop-in animation for box */
@keyframes popIn {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

#popup-continue {
  background-color: #7A003D;
  color: white;
  font-family: "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 700;
  padding: 10px 20px;
  border: none;
  border-radius: 0;
  cursor: pointer;
  box-shadow: 0 2px 0 #510029;
  transition: all 0.2s ease;
  width: 100%;
}

#popup-continue:hover {
  background-color: #7A003D;
  box-shadow: 0 2px 0 #510029;
}

#popup-continue:active {
  transform: translateY(2px);
  box-shadow: 0 0 0 #510029;
}


@media (max-width: 768px) {
  .form-page-container {
    padding: 0 15px;
  }
  
  .form-page-title {
    font-size: 28px;
  }
}
