/* ==========================================================================
   e-Devlet Kapısı - Elektronik Belge Yönetim Sistemi Evrak Doğrulama
   Shared Hosting Ready - Vanilla CSS
   ========================================================================== */

:root {
  --primary-blue: #1e68a8;
  --primary-blue-dark: #175284;
  --primary-blue-light: #2b7bc4;
  --primary-blue-hover: #154b78;
  --accent-blue: #2476ba;
  --field-blue: #23589c;
  --bg-page: #edf2f6;
  --bg-card: #ffffff;
  --text-dark: #2c3e50;
  --text-muted: #5f6e7d;
  --text-light: #8e9ca8;
  --border-color: #d1d9e0;
  --border-light: #e5ebf0;
  --footer-bg: #3d4349;
  --footer-sub-bg: #34393e;
  --footer-text: #b6c0c9;
  --footer-text-light: #e6ebf0;
  --footer-border: rgba(255, 255, 255, 0.18);
  --success-green: #2e7d32;
  --error-red: #c62828;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max-width: 1180px;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-page);
  color: var(--text-dark);
  line-height: 1.5;
  font-size: 14px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   TOP BAR (HEADER)
   ========================================================================== */
.top-header {
  background: linear-gradient(180deg, #1f67a7 0%, #1a5b95 100%);
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 50;
}

.top-header-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.edevlet-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  padding: 4px 0;
}

.edevlet-logo-img {
  height: 42px;
  width: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.25));
  transition: transform 0.2s;
}

.edevlet-logo-img:hover {
  transform: scale(1.02);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 4px;
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
}

.header-tool-btn:hover {
  background-color: rgba(255, 255, 255, 0.15);
  text-decoration: none;
}

.header-icon {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

/* Search Box */
.header-search-form {
  position: relative;
  display: flex;
  align-items: center;
}

.header-search-input {
  width: 250px;
  height: 36px;
  padding: 0 38px 0 14px;
  background-color: #ffffff;
  border: 1px solid #d5dfe6;
  border-radius: 4px;
  font-size: 13px;
  color: #333333;
  outline: none;
  transition: all 0.2s;
}

.header-search-input:focus {
  border-color: #ffffff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.6);
  width: 280px;
}

.header-search-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #556270;
}

.header-search-btn:hover {
  color: var(--primary-blue);
}

/* Login button */
.header-login-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #ffffff;
  color: var(--primary-blue);
  font-size: 13.5px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 4px;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
  transition: all 0.2s;
}

.header-login-btn:hover {
  background-color: #f5f8fa;
  color: var(--primary-blue-dark);
  text-decoration: none;
  transform: translateY(-1px);
}

/* ==========================================================================
   BREADCRUMB BAR
   ========================================================================== */
.breadcrumb-bar {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
  padding: 10px 0;
}

.breadcrumb-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.breadcrumb-home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 1px solid #d8e0e6;
  border-radius: 4px;
  color: #526372;
  background: #fdfefe;
}

.breadcrumb-home-link:hover {
  background-color: #f1f5f8;
  color: var(--primary-blue);
}

.breadcrumb-separator {
  color: #98a5b0;
  font-size: 11px;
}

.breadcrumb-item {
  color: #526372;
  font-weight: 400;
}

.breadcrumb-item.active {
  color: #273444;
  font-weight: 500;
}

/* ==========================================================================
   MAIN CONTENT AREA
   ========================================================================== */
.main-wrapper {
  flex: 1;
  max-width: var(--max-width);
  width: 100%;
  margin: 24px auto 40px;
  padding: 0 20px;
}

/* Service Institution Header */
.service-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.service-title-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.institution-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  background: #ffffff;
  border-radius: 6px;
  padding: 4px;
  border: 1px solid var(--border-light);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.service-meta-sub {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 2px;
}

.service-meta-title {
  font-size: 22px;
  color: #1f3349;
  font-weight: 600;
  letter-spacing: -0.3px;
}

.service-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: #4a5968;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.service-share-btn:hover {
  background-color: #f7fafc;
  color: var(--primary-blue);
  border-color: #b7c5d0;
}

/* ==========================================================================
   MAIN CARD COMPONENT (2 COLUMNS AS IN SCREEN 1 & 2)
   ========================================================================== */
.main-card {
  background-color: var(--bg-card);
  border-radius: 6px;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  display: grid;
  grid-template-columns: 290px 1fr;
  min-height: 440px;
}

/* Left Sidebar / Info Panel */
.card-sidebar {
  background-color: #f8fafc;
  border-right: 1px solid var(--border-color);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-sidebar-text {
  font-size: 13.5px;
  line-height: 1.6;
  color: #475569;
}

.card-sidebar-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding: 12px;
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 6px;
}

.card-sidebar-badge-icon {
  width: 24px;
  height: 24px;
  color: var(--primary-blue);
  flex-shrink: 0;
}

.card-sidebar-badge-text {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Right Main Form Area */
.card-content {
  padding: 32px 36px;
}

.card-intro-text {
  font-size: 14px;
  color: #405060;
  line-height: 1.6;
  margin-bottom: 24px;
}

.section-heading-blue {
  color: var(--primary-blue);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 18px;
  padding-bottom: 8px;
  border-bottom: 1.5px solid #2369a8;
  display: block;
}

/* Form Groups */
.form-group {
  margin-bottom: 22px;
}

.form-label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: #2b3947;
  margin-bottom: 8px;
}

.form-required {
  color: #d32f2f;
  margin-right: 3px;
  font-weight: bold;
}

.form-control {
  width: 100%;
  height: 42px;
  padding: 8px 14px;
  font-size: 14px;
  color: #2b3947;
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  outline: none;
  transition: all 0.2s;
  font-family: inherit;
}

.form-control:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(30, 104, 168, 0.15);
}

.form-control.is-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='%235f6e7d'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}

.form-helper-text {
  font-size: 12.5px;
  color: #64748b;
  margin-top: 6px;
  line-height: 1.4;
}

/* Action Area */
.form-actions {
  display: flex;
  justify-content: center;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid #edf2f7;
}

.btn-primary-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent-blue);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  padding: 10px 42px;
  border-radius: 24px;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(36, 118, 186, 0.35);
  transition: all 0.2s ease;
}

.btn-primary-pill:hover {
  background-color: var(--primary-blue-dark);
  box-shadow: 0 4px 10px rgba(36, 118, 186, 0.45);
  transform: translateY(-1px);
}

.btn-primary-pill:active {
  transform: translateY(0);
}

/* Alert Notification */
.alert-box {
  display: none;
  padding: 12px 16px;
  border-radius: 4px;
  margin-bottom: 20px;
  font-size: 13.5px;
  align-items: center;
  gap: 10px;
}

.alert-box.active {
  display: flex;
}

.alert-danger {
  background-color: #fde8e8;
  color: #9b1c1c;
  border: 1px solid #f8b4b4;
}

.alert-success {
  background-color: #def7ec;
  color: #03543f;
  border: 1px solid #84e1bc;
}

/* ==========================================================================
   DETAILS VIEW (SCREEN 2 EXACT MATCH)
   ========================================================================== */
.details-row-list {
  display: flex;
  flex-direction: column;
  margin-bottom: 28px;
}

.details-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  padding: 12px 0;
  border-bottom: 1px solid #e1e7ec;
  font-size: 13.5px;
  align-items: center;
}

.details-row-label {
  color: #556575;
  font-weight: 500;
}

.details-row-value {
  color: var(--field-blue);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.2px;
}

/* Action Boxes (Screen 2: Evrak Görüntüle & EYP İndir) */
.action-box-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 10px;
}

.action-card-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background-color: #ffffff;
  border: 1.5px solid #2369a8;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  color: #1e3a60;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.action-card-btn:hover {
  background-color: #f4f8fc;
  border-color: #164e80;
  color: var(--primary-blue-dark);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(35, 105, 168, 0.15);
}

.action-card-icon {
  width: 26px;
  height: 26px;
  color: #2369a8;
  flex-shrink: 0;
}

.action-card-text {
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.4;
}

/* ==========================================================================
   SECURE VIEWER MODAL (ZERO DOWNLOAD OPTION)
   ========================================================================== */
.pdf-viewer-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(15, 23, 42, 0.88);
  z-index: 2000;
  flex-direction: column;
  backdrop-filter: blur(4px);
  user-select: none;
  -webkit-user-select: none;
}

.pdf-viewer-overlay.active {
  display: flex;
}

.pdf-viewer-toolbar {
  height: 52px;
  background-color: #1e293b;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  flex-shrink: 0;
}

.pdf-viewer-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
}

.pdf-viewer-badge {
  background-color: #0369a1;
  color: #ffffff;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 500;
}

.pdf-viewer-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pdf-tool-btn {
  background-color: #334155;
  color: #ffffff;
  border: 1px solid #475569;
  border-radius: 4px;
  padding: 5px 12px;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s;
}

.pdf-tool-btn:hover {
  background-color: #475569;
}

.pdf-tool-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pdf-page-indicator {
  font-size: 13px;
  color: #cbd5e1;
  font-weight: 500;
}

.pdf-close-btn {
  background-color: #dc2626;
  border-color: #ef4444;
}

.pdf-close-btn:hover {
  background-color: #b91c1c;
}

.pdf-canvas-container {
  flex: 1;
  overflow: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px;
  background-color: #334155;
  position: relative;
}

.pdf-page-wrapper {
  position: relative;
  margin-bottom: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  background-color: #ffffff;
  border-radius: 2px;
  max-width: 96%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.pdf-doc-img {
  display: block;
  max-width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
  background: #ffffff;
}

.pdf-canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Transparent security shield to prevent right-click and save */
.pdf-security-shield {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent;
  pointer-events: auto;
  cursor: default;
  z-index: 10;
}

/* Loading Spinner */
.pdf-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #ffffff;
  font-size: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255,255,255,0.2);
  border-top-color: #38bdf8;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   IDENTITY VERIFICATION MODAL (SCREEN 2 REFERENCE)
   ========================================================================== */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.55);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(2px);
}

.modal-overlay.active {
  display: flex;
}

.modal-card {
  background-color: #ffffff;
  border-radius: 8px;
  max-width: 650px;
  width: 100%;
  padding: 36px 32px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-light);
  animation: modalScale 0.25s ease-out;
}

@keyframes modalScale {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  background: transparent;
  border: none;
  font-size: 22px;
  color: #8391a0;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
}

.modal-close-btn:hover {
  background-color: #f1f5f9;
  color: #334155;
}

.auth-box-content {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.auth-badge-icon {
  width: 90px;
  height: 90px;
  flex-shrink: 0;
  color: #3182ce;
}

.auth-info-area {
  flex: 1;
}

.auth-title {
  font-size: 18px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 12px;
}

.auth-description {
  font-size: 13.5px;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 16px;
}

.auth-method-list {
  list-style: none;
  margin-bottom: 24px;
}

.auth-method-list li {
  font-size: 13.5px;
  color: #334155;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-method-list li::before {
  content: "•";
  color: var(--primary-blue);
  font-weight: bold;
  font-size: 18px;
}

.modal-action-center {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

/* ==========================================================================
   FOOTER (SCREEN 3 EXACT 1:1 REPRODUCTION)
   ========================================================================== */
.site-footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  font-size: 13px;
  margin-top: auto;
  border-top: 1px solid rgba(0,0,0,0.15);
}

.footer-top-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 20px 28px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
}

/* Columns Section */
.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px 20px;
}

.footer-col-title {
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: 0.2px;
}

.footer-link-list {
  list-style: none;
}

.footer-link-list li {
  margin-bottom: 7px;
}

.footer-link-list a {
  color: var(--footer-text);
  font-size: 12.5px;
  line-height: 1.4;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-link-list a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Right Contact & Help Column */
.footer-right-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-card {
  border: 1px solid var(--footer-border);
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.03);
  padding: 16px 18px;
}

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

.footer-helpbuoy-img {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

.footer-help-heading {
  color: #ffffff;
  font-size: 12.5px;
  line-height: 1.4;
}

.footer-help-heading strong {
  display: block;
  font-weight: 600;
  margin-bottom: 2px;
}

.footer-contact-list {
  list-style: none;
  margin-top: 10px;
}

.footer-contact-item {
  border-top: 1px dotted var(--footer-border);
  padding: 9px 0;
}

.footer-contact-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--footer-text-light);
  font-size: 12.5px;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-contact-link:hover {
  color: #ffffff;
  text-decoration: none;
}

.footer-contact-icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
}

/* Social Box */
.footer-social-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--footer-text-light);
  font-size: 12.5px;
  text-decoration: none;
  transition: color 0.15s;
}

.footer-social-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-social-icon {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

/* Middle Footer: Logos & Presidential notice */
.footer-divider-line {
  max-width: var(--max-width);
  margin: 0 auto;
  border-top: 1px dotted var(--footer-border);
}

.footer-middle-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-gov-logos {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.footer-sgb-logo {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.footer-turksat-logo {
  height: 20px;
  width: auto;
  object-fit: contain;
}

.footer-notice-text {
  font-size: 11.5px;
  line-height: 1.5;
  color: #a4b0ba;
}

/* Bottom Footer: Copyright */
.footer-bottom-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 20px 22px;
  text-align: center;
  font-size: 11.5px;
  color: #929fa9;
}

.footer-bottom-container strong {
  color: var(--footer-text-light);
  font-weight: 600;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 992px) {
  .footer-top-container {
    grid-template-columns: 1fr;
  }
  
  .main-card {
    grid-template-columns: 1fr;
  }
  
  .card-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }
  
  .footer-links-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .top-header-container {
    height: auto;
    padding: 12px 16px;
    flex-wrap: wrap;
    gap: 12px;
  }
  
  .header-search-form {
    order: 3;
    width: 100%;
  }
  
  .header-search-input {
    width: 100%;
  }
  
  .header-search-input:focus {
    width: 100%;
  }
  
  .service-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .service-meta-title {
    font-size: 18px;
  }
  
  .card-content {
    padding: 24px 18px;
  }
  
  .footer-middle-container {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .footer-links-grid {
    grid-template-columns: 1fr;
  }

  .details-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* High Contrast / Accessibility Modes */
body.high-contrast {
  background-color: #000000 !important;
  color: #ffffff !important;
}

body.high-contrast .main-card,
body.high-contrast .card-sidebar,
body.high-contrast .breadcrumb-bar {
  background-color: #121212 !important;
  color: #ffffff !important;
  border-color: #ffffff !important;
}

body.high-contrast a,
body.high-contrast .form-label,
body.high-contrast .service-meta-title,
body.high-contrast .card-intro-text,
body.high-contrast .card-sidebar-text,
body.high-contrast .details-row-value {
  color: #ffffff !important;
}

body.focus-outline *:focus {
  outline: 3px solid #f59e0b !important;
  outline-offset: 2px !important;
}
