/* Metropolitan Police — design tokens extracted from met.police.uk contact form */
:root {
  --met-blue: #003399;
  --met-blue-banner: #0032a0;
  --met-text: #1f2025;
  --met-page-header-bg: #f4f2f0;
  --met-footer-bg: #1f2025;
  --met-danger: #b01a0d;
  --met-required: #d12d1e;
  --met-white: #ffffff;
  --met-link: #003399;
  --met-input-border: #1f2025;
  --met-focus-outline: #ffdd00;
  --met-grid-max: 1024px;
  --met-form-max: 640px;
  --met-header-height: 76px;
  --met-font: "Lato", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 100%;
}

body {
  margin: 0;
  color: var(--met-text);
  background: var(--met-white);
  font-family: var(--met-font);
  font-size: 16px;
  line-height: 1.5;
}

a {
  color: var(--met-link);
  text-decoration: underline;
}

a:hover {
  text-decoration-thickness: 2px;
}

img {
  max-width: 100%;
  height: auto;
}

.plain {
  list-style: none;
  margin: 0;
  padding: 0;
}

.u-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip links */
.c-skip-site {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1001;
}

.c-skip-site:focus-within {
  left: 0;
}

.c-skip-site_item {
  margin: 0;
}

.c-skip-site_link {
  display: inline-block;
  padding: 8px 12px;
  background: var(--met-text);
  color: var(--met-white);
  text-decoration: none;
}

/* Header */
.c-header {
  position: relative;
}

.c-header_banner {
  background: var(--met-blue-banner);
  min-height: var(--met-header-height);
  padding: 16px 10px;
}

.c-header_banner .l-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: calc(var(--met-header-height) - 32px);
  padding: 0 5px;
}

.c-header_logo {
  margin: 0;
}

.c-header_logo-link {
  display: inline-block;
  line-height: 0;
  text-decoration: none;
}

.c-header_logo-link img {
  display: block;
  height: 42px;
  width: auto;
}

.c-header_mobile-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 4px;
}

.c-header_mobile-menu-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--met-white);
  text-decoration: none;
}

.c-header_icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* Layout */
.l-container {
  max-width: var(--met-grid-max);
  margin: 0 auto;
  padding: 0 15px;
}

.grid-container {
  max-width: var(--met-grid-max);
  margin: 0 auto;
  padding: 0 15px;
}

.l-third {
  flex: 1;
  min-width: 0;
}

.l-center-thin {
  max-width: var(--met-form-max);
  margin: 0 auto;
}

.l-container--padding-top {
  padding-top: 24px;
  padding-bottom: 48px;
}

.o-section {
  margin-bottom: 24px;
}

/* Page header band */
.page-header {
  background: var(--met-page-header-bg);
  padding: 16px 0;
}

.page-header-content {
  padding: 0;
}

.page-header h1 {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  font-family: var(--met-font);
  color: var(--met-text);
}

/* Form */
.c-form-wrapper form {
  margin: 0;
}

.c-additional-content {
  margin-bottom: 24px;
}

.c-rich-text {
  font-size: 16px;
  line-height: 1.5;
}

.c-rich-text p {
  margin: 0 0 12px;
}

.c-rich-text p:last-child {
  margin-bottom: 0;
}

.c-rich-text a {
  color: var(--met-link);
}

.c-field-hint {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.4;
  color: #4a4b50;
}

.c-form-help {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #d8d8d8;
}

.c-form-help_title {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 700;
  color: var(--met-text);
}

.c-form-help ul {
  margin: 0;
  padding: 0;
}

.c-form-help li {
  margin-bottom: 8px;
  font-size: 16px;
  line-height: 1.5;
}

.c-form-help li:last-child {
  margin-bottom: 0;
}

.c-alert {
  margin-bottom: 24px;
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 16px;
  line-height: 1.5;
}

.c-alert p {
  margin: 0;
}

.c-alert--error {
  background: #fdecea;
  border: 1px solid #f5c2c0;
  color: #8a1f17;
}

.c-alert--warning {
  background: #fff8e6;
  border: 1px solid #f2dfa3;
  color: #5c4a12;
}

.c-oauth-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.c-oauth-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 12px 20px;
  border: 1.6px solid var(--met-input-border);
  border-radius: 4px;
  background: var(--met-white);
  color: var(--met-text);
  font-size: 16px;
  font-family: var(--met-font);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.c-oauth-button:hover,
.c-oauth-button:focus {
  background: #f8f8f8;
  border-color: var(--met-blue);
  color: var(--met-text);
  outline: 3px solid var(--met-focus-outline);
  outline-offset: 0;
}

.c-oauth-button_icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

.c-oauth-button--yahoo .c-oauth-button_icon {
  width: auto;
  height: 20px;
}

.c-oauth-button_logo {
  display: block;
  height: 20px;
  width: auto;
}

.c-oauth-note {
  margin: 16px 0 0;
  font-size: 14px;
  color: #4a4b50;
}

.c-case-panel {
  background: var(--met-white);
}

.c-case-panel_header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid #d8d8d8;
}

.c-case-panel_label {
  margin: 0 0 4px;
  font-size: 14px;
  color: #4a4b50;
}

.c-case-panel_user {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.c-case-summary,
.c-case-updates {
  margin-bottom: 32px;
}

.c-case-summary_title {
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 700;
}

.c-case-details {
  margin: 0;
}

.c-case-details_row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 8px 16px;
  padding: 12px 0;
  border-bottom: 1px solid #ececec;
}

.c-case-details_row:last-child {
  border-bottom: 0;
}

.c-case-details dt {
  margin: 0;
  font-weight: 700;
}

.c-case-details dd {
  margin: 0;
}

.c-case-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
}

.c-case-badge--active {
  background: #e8f0fe;
  color: var(--met-blue);
}

.c-case-badge--pending {
  background: #fff3e0;
  color: #e65100;
}

.c-case-notice {
  margin-bottom: 32px;
  padding: 20px 24px;
  background: #f5f7fa;
  border-left: 4px solid var(--met-blue);
}

.c-case-notice p {
  margin: 0 0 12px;
  line-height: 1.5;
}

.c-case-notice p:last-child {
  margin-bottom: 0;
}

.c-case-timeline_item {
  padding: 16px 0;
  border-bottom: 1px solid #ececec;
}

.c-case-timeline_item:last-child {
  border-bottom: 0;
}

.c-case-timeline_date {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 700;
  color: #4a4b50;
}

.c-case-timeline_text {
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .c-case-details_row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

.o-form-item-wrapper {
  margin-bottom: 20px;
}

.o-form-item--medium {
  max-width: var(--met-form-max);
}

.c-label {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 400;
  color: var(--met-text);
}

.c-required-message_text {
  font-weight: 400;
}

.c-required-message_icon {
  color: var(--met-required);
  margin-left: 2px;
}

.c-input-wrapper {
  width: 100%;
}

.c-input-text,
.c-input-textarea,
.c-input-select {
  width: 100%;
  height: 44px;
  padding: 12px 10px 10px;
  border: 0.8px solid var(--met-input-border);
  border-radius: 4px;
  font-size: 14px;
  font-family: var(--met-font);
  color: var(--met-text);
  background: var(--met-white);
}

.c-input-text:focus,
.c-input-textarea:focus,
.c-input-select:focus {
  outline: 3px solid var(--met-focus-outline);
  outline-offset: 0;
}

.c-input-textarea {
  min-height: 120px;
  height: auto;
  resize: vertical;
}

.c-input-text--small {
  width: 72px;
}

.c-input-text--medium {
  width: 96px;
}

.c-date-picker fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

.c-date-picker legend {
  margin-bottom: 8px;
}

.c-date-picker_input-wrapper {
  display: inline-block;
  margin-right: 12px;
  vertical-align: top;
}

.c-date-picker_input-wrapper .c-label {
  font-size: 14px;
  margin-bottom: 4px;
}

.c-button-row {
  margin-top: 32px;
}

.c-button {
  display: inline-block;
  min-width: 120px;
  padding: 11px 20px 10px;
  border: 0;
  border-radius: 4px;
  font-size: 16px;
  font-family: var(--met-font);
  font-weight: 400;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}

.c-button--primary {
  background: var(--met-blue);
  color: var(--met-white);
}

.c-button--primary:hover:not(:disabled) {
  background: #002266;
  color: var(--met-white);
}

.c-button--secondary {
  background: var(--met-white);
  color: var(--met-blue);
  border: 1.6px solid var(--met-blue);
}

.c-button--secondary:hover:not(:disabled) {
  background: #f0f4fa;
}

.c-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.c-button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

/* Footer */
.c-footer {
  background: var(--met-footer-bg);
  color: var(--met-white);
  padding: 20px 11px 40px;
}

.c-footer a {
  color: var(--met-white);
  text-decoration: none;
}

.c-footer a:hover {
  text-decoration: underline;
}

.c-footer .l-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.c-footer_title {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 700;
}

.c-footer_link-list li {
  margin-bottom: 8px;
}

.c-footer_social {
  flex: 1 1 100%;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.c-footer_copyright {
  margin: 0;
  font-size: 14px;
  opacity: 0.9;
}

@media (max-width: 768px) {
  .c-footer .l-container {
    flex-direction: column;
  }

  .page-header h1 {
    font-size: 1.5rem;
    line-height: 1.2;
  }
}

@media print {
  .u-no-print,
  .c-header_mobile-menu {
    display: none !important;
  }
}
