/* visa immigration.uk Design System Styles - Visas & Immigration */
@import url('https://fonts.googleapis.com/css2?family=GDS+Transport:wght@400;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --govuk-blue: #1d70b8;
  --govuk-blue-hover: #003078;
  --govuk-green: #00703c;
  --govuk-green-hover: #005a30;
  --govuk-black: #0b0c0c;
  --govuk-dark-grey: #505a5f;
  --govuk-light-grey: #f3f2f1;
  --govuk-border-grey: #b1b4b6;
  --govuk-white: #ffffff;
  --govuk-yellow: #ffdd00;
  --govuk-error-red: #d4351c;
  --govuk-font-family: 'GDS Transport', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--govuk-font-family);
  color: var(--govuk-black);
  background-color: var(--govuk-white);
  line-height: 1.5;
  font-size: 19px;
  -webkit-font-smoothing: antialiased;
}

/* Cookie Banner */
.cookie-banner {
  background-color: #f3f2f1;
  border-bottom: 10px solid #f3f2f1;
  padding: 24px 0;
}

.cookie-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 15px;
}

.cookie-banner h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--govuk-black);
}

.cookie-banner p {
  font-size: 16px;
  margin-bottom: 16px;
  line-height: 1.4;
  color: var(--govuk-black);
}

.cookie-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

/* visa immigration.uk Header */
.govuk-header {
  background-color: var(--govuk-blue);
  color: var(--govuk-white);
  padding: 10px 0;
  width: 100%;
}

.header-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.header-left {
  display: flex;
  align-items: center;
}

.header-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
}

.header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  position: relative;
}

.service-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--govuk-white);
  margin: 0;
  padding: 0;
}

.user-account {
  position: relative;
  cursor: pointer;
  user-select: none;
}

.user-menu-btn {
  background: transparent;
  border: none;
  color: var(--govuk-white);
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 2px;
}

.user-menu-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.user-dropdown {
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 5px;
  background: var(--govuk-white);
  border: 1px solid var(--govuk-border-grey);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border-radius: 2px;
  min-width: 160px;
  z-index: 100;
  display: none;
}

.user-dropdown.show {
  display: block;
}

.user-dropdown a {
  display: block;
  padding: 10px 16px;
  color: var(--govuk-blue);
  text-decoration: none;
  font-size: 16px;
  font-weight: 400;
}

.user-dropdown a:hover {
  background-color: var(--govuk-light-grey);
}

/* Stepper Navigation Bar */
.stepper-nav {
  background-color: #f3f2f1;
  border-bottom: 1px solid var(--govuk-border-grey);
  width: 100%;
}

.stepper-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  overflow-x: auto;
}

.step-item {
  padding: 14px 18px 10px 18px;
  font-size: 18px;
  color: var(--govuk-blue);
  font-weight: 400;
  white-space: nowrap;
  position: relative;
  text-decoration: none;
  cursor: pointer;
}

.step-item:hover {
  color: var(--govuk-blue-hover);
  text-decoration: underline;
}

.step-item.active {
  font-weight: 700;
  color: var(--govuk-black);
  cursor: default;
}

.step-item.active:hover {
  text-decoration: none;
}

.step-item.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 5px;
  background-color: var(--govuk-blue);
}

/* Main Container */
.main-wrapper {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 15px 60px 15px;
}

.page-title {
  font-size: 38px;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 30px;
  color: var(--govuk-black);
}

.lead-text {
  font-size: 19px;
  line-height: 1.45;
  margin-bottom: 24px;
  color: var(--govuk-black);
}

/* Form Styling */
.govuk-form-group {
  margin-bottom: 30px;
}

.govuk-label {
  display: block;
  font-size: 19px;
  font-weight: 400;
  margin-bottom: 8px;
  color: var(--govuk-black);
}

.govuk-input {
  font-family: inherit;
  font-size: 19px;
  line-height: 1.3;
  padding: 8px 12px;
  border: 2px solid var(--govuk-black);
  border-radius: 0;
  width: 100%;
  max-width: 360px;
  appearance: none;
}

.govuk-input:focus {
  outline: 3px solid var(--govuk-yellow);
  outline-offset: 0;
  box-shadow: inset 0 0 0 2px var(--govuk-black);
}

/* Error Summary */
.govuk-error-summary {
  border: 4px solid var(--govuk-error-red);
  padding: 20px;
  margin-bottom: 30px;
}

.govuk-error-summary h2 {
  font-size: 24px;
  color: var(--govuk-error-red);
  margin-bottom: 12px;
}

.govuk-error-summary ul {
  list-style: none;
  padding-left: 0;
}

.govuk-error-summary a {
  color: var(--govuk-error-red);
  font-weight: 700;
}

/* Buttons */
.govuk-button {
  font-family: inherit;
  font-size: 19px;
  font-weight: 600;
  line-height: 1;
  color: var(--govuk-white);
  background-color: var(--govuk-green);
  border: none;
  padding: 12px 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 2px 0 #002d18;
  border-radius: 0;
}

.govuk-button:hover {
  background-color: var(--govuk-green-hover);
}

.govuk-button:focus {
  outline: 3px solid var(--govuk-yellow);
  background-color: var(--govuk-green-hover);
  color: var(--govuk-black);
  box-shadow: 0 2px 0 var(--govuk-black);
}

.govuk-button--secondary {
  background-color: var(--govuk-green);
}

/* Links */
.govuk-link {
  color: var(--govuk-blue);
  text-decoration: underline;
  cursor: pointer;
}

.govuk-link:hover {
  color: var(--govuk-blue-hover);
}

.forgot-link {
  display: inline-block;
  margin-top: 15px;
  font-size: 19px;
}

/* Action Sections on /nextSteps */
.section-header {
  font-size: 27px;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--govuk-border-grey);
}

.action-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  padding: 24px 0;
  border-bottom: 1px solid var(--govuk-border-grey);
}

.action-content {
  flex: 1;
}

.action-content h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
}

.action-content p {
  font-size: 17px;
  color: #383f43;
  line-height: 1.45;
}

.action-btn-container {
  flex-shrink: 0;
}

.action-btn-container .govuk-button {
  min-width: 200px;
  max-width: 280px;
  padding: 14px 20px;
}

.links-group {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.links-group a {
  font-size: 19px;
}

/* Footer */
.govuk-footer {
  background-color: var(--govuk-light-grey);
  border-top: 3px solid var(--govuk-blue);
  padding: 40px 0 35px 0;
  margin-top: 60px;
}

.footer-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 15px;
}

.footer-crown-icon {
  margin-bottom: 25px;
}

.footer-crown-icon svg {
  width: 32px;
  height: 30px;
  color: var(--govuk-black);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
  list-style: none;
}

.footer-nav a {
  color: var(--govuk-black);
  text-decoration: underline;
  font-size: 16px;
  font-weight: 400;
}

.footer-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 14px;
  color: var(--govuk-black);
}

.footer-licence {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 620px;
  line-height: 1.4;
}

.ogl-logo {
  flex-shrink: 0;
  margin-top: 2px;
}

.ogl-logo svg {
  width: 41px;
  height: 17px;
  color: var(--govuk-black);
}

.copyright-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  flex-shrink: 0;
}

.copyright-logo svg {
  width: 75px;
  height: 60px;
  display: block;
  margin-bottom: 6px;
  color: var(--govuk-black);
}

.copyright-logo a {
  color: var(--govuk-black);
  text-decoration: underline;
  font-size: 14px;
}

/* Back link */
.govuk-back-link {
  font-size: 16px;
  color: var(--govuk-black);
  text-decoration: underline;
  display: inline-block;
  margin-bottom: 20px;
}

.govuk-back-link:hover {
  color: var(--govuk-dark-grey);
}

/* Utilities */
.hidden {
  display: none !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .action-card {
    flex-direction: column;
    align-items: stretch;
  }

  .action-btn-container .govuk-button {
    max-width: 100%;
    width: 100%;
    margin-top: 12px;
  }

  .footer-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .copyright-logo {
    text-align: left;
    margin-top: 20px;
  }

  .page-title {
    font-size: 30px;
  }
}

@media print {
  .no-print, .govuk-header, .govuk-footer, .stepper-nav, .links-group, .cookie-banner {
    display: none !important;
  }
  body {
    font-size: 12pt;
    color: #000;
  }
  .main-wrapper {
    max-width: 100%;
    padding: 0;
  }
}

