/*
 * Visual design ported from contactus.seu.edu.sa (colors, type scale, card /
 * accordion / form-control treatments extracted from the site's own stylesheet).
 * This page talks to the local ContactUsSD API instead of the real backend.
 */

:root {
  --seu-primary: #1b8354;
  --seu-primary-dark: #104631;
  --seu-primary-accent: #54c08a;
  --seu-icon-green: #079455;
  --seu-footer-bg: #074d31;
  --seu-text: #161616;
  --seu-neutral-100: #f3f4f6;
  --seu-neutral-200: #ededed;
  --seu-neutral-300: #d2d6db;
  --seu-neutral-400: #9da4ae;
  --seu-danger: #b42318;
  --seu-radius-sm: 4px;
}

.contact-us-page {
  font-family: "IBM Plex Sans Arabic", "IBM Plex Sans", "Segoe UI", Tahoma, sans-serif;
  color: var(--seu-text);
  background-color: #fff;
}

.contact-us-page[dir="ltr"],
.contact-us-page[dir="ltr"] *:not(.fas):not(.far):not(.fab):not(.fa-solid):not(.fa-regular):not(.fa-brands):not(.bi) {
  font-family: "IBM Plex Sans", "Segoe UI", Tahoma, sans-serif;
}

.contact-us-page a {
  color: var(--seu-primary);
  text-decoration: none;
}

.contact-us-page a:hover {
  color: var(--seu-primary-dark);
}

/* ---------------------------------------------------------------- hero */
.cu-hero {
  min-height: 150px;
  display: flex;
  align-items: center;
  background-color: #f5f7f9;
  background-image: linear-gradient(90deg, rgba(27, 131, 84, 0.06) 0%, rgba(27, 131, 84, 0) 60%);
  box-shadow: inset 0 -2px 4px rgba(0, 0, 0, 0.05);
  padding: 28px 0;
}

.cu-hero .cu-breadcrumb {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 6px;
}

.cu-hero .cu-breadcrumb a {
  color: #6b7280;
}

.cu-hero .cu-breadcrumb .current {
  color: var(--seu-text);
  font-weight: 600;
}

.cu-hero h1 {
  font-size: 28px;
  font-weight: 700;
  margin: 0;
}

/* -------------------------------------------------------- section heads */
.cu-section {
  padding: 40px 0;
}

#cuTrackSection {
  background: #f9fafb;
}

.cu-select-narrow {
  max-width: 360px;
}

.cu-section-head {
  margin-bottom: 24px;
}

.cu-section-head h2 {
  display: inline-block;
  background: var(--seu-primary);
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  padding: 12px 24px;
  border-radius: 15px 0 0 15px;
  margin: 0;
}

[dir="ltr"] .cu-section-head h2 {
  border-radius: 0 15px 15px 0;
}

/* ---------------------------------------------------- real "card" sections
   Ported from the real site's contact-info.component.css: the white rounded
   card with a shadow (.contact-page-inner) and the section heading with its
   green leaf-shaped accent bar (.sectionHead .title::before). Used to wrap
   the official-communication tabs, follow-ticket, nearest-branch and FAQ
   sections so they match contactus.seu.edu.sa exactly instead of the
   flatter placeholder card style above. */
.contact-us-page .contact-page-inner {
  background-color: #fff;
  border-radius: 15px;
  box-shadow: 0px 0px 7px 2px rgba(0, 0, 0, 0.07);
  padding: 5px;
  margin-bottom: 30px;
}

.contact-us-page .sectionHead {
  padding: 25px 25px 0;
  position: relative;
}

.contact-us-page .sectionHead .title {
  font-weight: bold;
  margin-right: 24px;
  font-size: 30px;
  letter-spacing: -0.02rem;
  position: relative;
  display: inline-block;
}

.contact-us-page[dir="ltr"] .sectionHead .title {
  margin-right: unset;
  margin-left: 24px;
}

.contact-us-page .sectionHead .title::before {
  content: "";
  width: 15px;
  height: 35px;
  position: absolute;
  margin-right: -25px;
  margin-top: -8px;
  border-radius: 15px 0 0 15px;
  background: var(--seu-primary);
}

.contact-us-page[dir="ltr"] .sectionHead .title::before {
  border-radius: 0 15px 15px 0;
  margin-right: unset;
  margin-left: -25px;
}

.contact-us-page .sectionContent {
  padding: 0 25px 25px;
}

.contact-us-page .sectionContent > h4 {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 20px;
}

.contact-us-page .contact-page-inner .form-control {
  height: 45px;
  border-radius: 2px;
  box-shadow: 0 0 7px rgba(0, 0, 0, 0.12);
  padding: 0 10px;
}

.contact-us-page .contact-page-inner label {
  color: #212529;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
}

@media (max-width: 768px) {
  .contact-us-page .sectionHead .title {
    font-size: 20px;
  }
}

/* --------------------------------------------------------- channel cards */
.cu-cards-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.cu-card {
  background: #fff;
  border: 1px solid var(--seu-neutral-300);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 3px 7px -2px rgba(16, 24, 40, 0.1), 0 2px 3px -2px rgba(16, 24, 40, 0.06);
}

.cu-card .cu-card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
}

.cu-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.cu-card .cu-phone-label {
  color: #6b7280;
  font-size: 14px;
  margin-inline-end: 6px;
}

.cu-card .cu-phone-number {
  font-weight: 700;
  font-size: 16px;
}

.cu-card p {
  color: #4b5563;
  font-size: 14px;
  margin: 8px 0;
}

.cu-card .cu-hours-note {
  color: var(--seu-icon-green);
  font-size: 13px;
  font-weight: 600;
}

.cu-user-types {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.cu-user-types span {
  background: #fff;
  color: var(--seu-text);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 8px;
  border: 1px solid var(--seu-neutral-300);
}

.cu-user-types .cu-user-type-students {
  background: #fff;
  color: var(--seu-text);
  border-color: var(--seu-neutral-300);
}

.cu-user-types .cu-user-type-staff {
  background: #fff;
  color: var(--seu-icon-green);
  border-color: #a6e9c5;
}

.cu-user-types .cu-user-type-visitors {
  background: #fff;
  color: #1a73e8;
  border-color: #b3d3fb;
}

/* -------------------------------------------------------------- forms */
.cu-form-card {
  background: #fff;
  border: 1px solid var(--seu-neutral-300);
  border-radius: 16px;
  padding: 28px;
}

.cu-form-card label {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
  display: block;
}

.cu-form-card .cu-required,
.cu-form-card .asteriskField {
  color: var(--seu-danger);
}

.cu-form-card--narrow {
  max-width: 720px;
}

.cu-input-wrap {
  position: relative;
}

.contact-us-page .form-control {
  height: 45px;
  border-radius: var(--seu-radius-sm);
  background-color: var(--seu-neutral-100) !important;
  border: 2px solid transparent !important;
  margin-bottom: 4px;
}

.contact-us-page textarea.form-control {
  height: auto;
}

.contact-us-page .form-control:focus {
  box-shadow: none;
  border-color: var(--seu-primary) !important;
  background-color: #fff !important;
}

.contact-us-page .form-control.is-valid {
  border-color: #28a745 !important;
  background-color: #f8fff9 !important;
}

.contact-us-page .form-control.is-invalid {
  border-color: #dc3545 !important;
  background-color: #fff5f5 !important;
}

.cu-valid-icon {
  position: absolute;
  inset-inline-end: 12px;
  top: 12px;
  color: #28a745;
  font-weight: bold;
  pointer-events: none;
}

.cu-field-error {
  color: var(--seu-danger);
  font-size: 13px;
  margin-top: -2px;
  margin-bottom: 8px;
}

.cu-form-note {
  font-size: 12px;
  color: #6b7280;
}

.cu-form-note--intro {
  margin-bottom: 20px;
}

.btn-cu-submit {
  background: var(--seu-primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 32px;
  font-size: 15px;
  font-weight: 700;
  min-width: 140px;
}

.btn-cu-submit:hover:not(:disabled) {
  background: var(--seu-primary-dark);
  color: #fff;
}

.btn-cu-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.cu-captcha {
  margin: 12px 0;
}

.cu-captcha-img {
  display: block;
  height: 50px;
  border: 1px solid var(--seu-neutral-300);
  border-radius: var(--seu-radius-sm);
  background-color: var(--seu-neutral-100);
  margin-bottom: 8px;
}

.cu-captcha-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.cu-captcha-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 45px;
  border-radius: var(--seu-radius-sm);
  background-color: var(--seu-neutral-100);
  border: 2px solid transparent;
  padding: 0 12px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.cu-captcha-input:focus {
  outline: none;
  box-shadow: none;
  border-color: var(--seu-primary);
  background-color: #fff;
}

.cu-captcha-refresh {
  flex: 0 0 auto;
  width: 45px;
  height: 45px;
  border: none;
  border-radius: var(--seu-radius-sm);
  background: var(--seu-primary);
  color: #fff;
  cursor: pointer;
}

.cu-captcha-refresh:hover {
  background: var(--seu-primary-dark);
}

/* ------------------------------------------------------------ tracking */
.cu-ticket-details {
  margin-top: 24px;
  border-top: 1px solid var(--seu-neutral-300);
  padding-top: 20px;
}

.cu-ticket-details .cu-row {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--seu-neutral-200);
  font-size: 14px;
}

.cu-ticket-details .cu-row .cu-label {
  flex: 0 0 160px;
  font-weight: 700;
  color: #4b5563;
}

.cu-system-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--seu-neutral-100);
  color: var(--seu-primary-dark);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}

/* ------------------------------------------------------------------ faq */
.cu-accordion .accordion-item {
  border: 1px solid var(--seu-neutral-300) !important;
  border-radius: 16px !important;
  overflow: hidden;
  margin-bottom: 12px;
  box-shadow: 0 3px 7px -2px rgba(16, 24, 40, 0.1), 0 2px 3px -2px rgba(16, 24, 40, 0.06);
}

.cu-accordion .accordion-item:not(.collapsed),
.cu-accordion .accordion-item:has(.accordion-button:not(.collapsed)) {
  border-color: var(--seu-primary) !important;
}

.cu-accordion .accordion-button {
  font-weight: 600;
  font-size: 16px;
}

.cu-accordion .accordion-button:not(.collapsed) {
  background-color: #fff;
  color: var(--seu-primary-dark);
  box-shadow: none;
}

/* --------------------------------------------------------------- modal */
.cu-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.cu-modal {
  background: #fff;
  border-radius: 12px;
  max-width: 520px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.cu-modal-header {
  padding: 18px 20px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 700;
}

.cu-modal-header.success {
  background: var(--seu-primary);
}

.cu-modal-header.error {
  background: #dc3545;
}

.cu-modal-header button {
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.cu-modal-body {
  padding: 20px;
  font-size: 15px;
  white-space: pre-line;
}

.cu-modal-body table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}

.cu-modal-body table th,
.cu-modal-body table td {
  border: 1px solid var(--seu-neutral-300);
  padding: 8px 12px;
  text-align: start;
  font-size: 14px;
}

@media (max-width: 767px) {
  .cu-section-head h2 {
    font-size: 15px;
    padding: 10px 16px;
  }

  .cu-ticket-details .cu-row {
    flex-direction: column;
  }

  .cu-ticket-details .cu-row .cu-label {
    flex: none;
  }
}

/* ------------------------------------------------------------ page nav */
.cu-page-nav {
  /* Not sticky: the real seu.edu.sa header above it is already
     position:sticky/top:0, and stacking two sticky bars at the same
     offset makes them overlap instead of one sitting under the other. */
  background: #fff;
  border-bottom: 1px solid var(--seu-neutral-300);
  position: static;
  z-index: 10;
}

.cu-page-nav-inner {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  white-space: nowrap;
}

.cu-page-nav-inner::-webkit-scrollbar {
  height: 5px;
}

.cu-page-nav-inner::-webkit-scrollbar-thumb {
  background: var(--seu-neutral-300);
  border-radius: 10px;
}

.cu-page-nav-inner a {
  flex: 0 0 auto;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #4b5563;
}

.cu-page-nav-inner a:hover {
  color: var(--seu-primary);
}

/* ---------------------------------------------------------------- tabs */
.cu-tabs {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  gap: 8px;
  border-bottom: 2px solid var(--seu-neutral-300);
  margin-bottom: 24px;
}

.cu-tabs::-webkit-scrollbar {
  height: 5px;
}

.cu-tabs::-webkit-scrollbar-thumb {
  background: var(--seu-neutral-300);
  border-radius: 10px;
}

.cu-tab-btn {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 12px 18px;
  font-weight: 700;
  font-size: 15px;
  color: #6b7280;
  cursor: pointer;
  margin-bottom: -2px;
  white-space: nowrap;
  flex: 0 0 auto;
}

.cu-tab-btn:hover {
  color: var(--seu-primary-dark);
}

.cu-tab-btn.active {
  color: var(--seu-primary);
  border-bottom-color: var(--seu-primary);
}

.cu-tab-panel {
  display: none;
}

.cu-tab-panel.active {
  display: block;
}

.cu-form-note-danger {
  color: var(--seu-danger);
  font-size: 13px;
  font-weight: 600;
}

.cu-radio-group {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.cu-radio-group label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  cursor: pointer;
}

.cu-form-hint {
  font-size: 12px;
  color: #6b7280;
  display: block;
  margin-top: 2px;
}

.cu-alert-info {
  background: #eff8ff;
  border: 1px solid #b2ddff;
  color: #175cd3;
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 14px;
  margin-bottom: 20px;
}

.cu-alert-danger {
  background: #fef3f2;
  border: 1px solid #fecdca;
  color: var(--seu-danger);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  margin-bottom: 16px;
  text-align: center;
}

/* ============================================================
 * Office/President tab booking widgets — ported verbatim from the
 * real contact-office.component.css (same #28a745 booking green the
 * real component uses, distinct from the site's #1b8354 brand green).
 * ============================================================ */
.form-section {
  margin-bottom: 2rem;
  padding: 1.5rem;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #f8f9fa;
}

.form-section h3 {
  color: #28a745;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
  color: #333;
}

.form-group label.required:after {
  content: " *";
  color: #dc3545;
}

.form-group input,
.form-group select,
.form-group textarea {
  border: 1px solid #ddd;
  transition: border-color 0.3s ease;
  width: 100%;
  padding: 0.375rem 0.75rem !important;
  height: 45px !important;
  border-radius: 2px !important;
  margin-bottom: 7px !important;
  background-color: #f3f4f6 !important;
  color: #212529;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #28a745;
  box-shadow: 0 0 0 2px rgba(44, 90, 160, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
  height: auto !important;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 576px) {
  .form-section {
    padding: 0.5rem;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}

.time-slots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.5rem;
  margin-top: 1rem;
}

.time-slot {
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: white;
}

.time-slot:hover {
  border-color: #28a745;
  background: #f8f9fa;
}

.time-slot.selected {
  border-color: #28a745;
  background: #28a745;
  color: white;
}

.time-slot.disabled {
  background: #f8f9fa;
  color: #6c757d;
  cursor: not-allowed;
}

.meeting-type {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.meeting-option {
  padding: 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: white;
}

.meeting-option:hover {
  border-color: #28a745;
}

.meeting-option.selected {
  border-color: #28a745;
  background: #f8f9fa;
}

.simple-calendar {
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 1.5rem;
  background: white;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

@media (max-width: 576px) {
  .simple-calendar {
    padding: 0.5rem;
  }
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 0.75rem 1rem;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.calendar-header button {
  background: #28a745;
  color: white;
  border: none;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.5rem;
  font-weight: bold;
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.calendar-header button:hover {
  transform: scale(1.05);
}

.calendar-header span {
  font-weight: bold;
  font-size: 1.1rem;
  color: #333;
  letter-spacing: 0.5px;
}

.calendar-weekdays {
  display: flex;
  margin-bottom: 0.5rem;
}

.weekday {
  flex: 1;
  min-width: 0;
  text-align: center;
  padding: 0.75rem 0.5rem;
  font-weight: 600;
  background: #f1f3f4;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #666;
  border: 1px solid #e9ecef;
  margin: 0 1px;
}

@media (max-width: 576px) {
  .weekday {
    font-size: 0.75rem;
    padding: 0.5rem 0.25rem;
  }
}

.calendar-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.calendar-week {
  display: flex;
  gap: 0.5rem;
}

.calendar-day {
  flex: 1;
  min-width: 0;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: white;
  font-weight: 500;
  position: relative;
}

.calendar-day:hover {
  background: #f8f9fa;
  border-color: #28a745;
}

.calendar-day.available {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  color: #155724;
  font-weight: 600;
  border-color: #28a745;
  box-shadow: 0 2px 4px rgba(40, 167, 69, 0.2);
}

.calendar-day.selected {
  background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
  color: white !important;
  border-color: #28a745;
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

.calendar-day.selected::after {
  content: "✓";
  position: absolute;
  top: 2px;
  inset-inline-end: 4px;
  font-size: 0.9rem;
  font-weight: bold;
  color: white;
}

.calendar-day.disabled {
  background: #f8f9fa;
  color: #adb5bd;
  cursor: not-allowed;
  border-color: #e9ecef;
}

.calendar-day.other-month {
  background: #f8f9fa;
  color: #dee2e6;
  border-color: #e9ecef;
}

.cu-phone-prefix-wrap {
  display: flex;
}

.cu-phone-prefix-wrap span {
  padding: 0 12px;
  border: 2px solid transparent;
  background: var(--seu-neutral-100);
  border-radius: var(--seu-radius-sm) 0 0 var(--seu-radius-sm);
  font-weight: 700;
  display: flex;
  align-items: center;
  direction: ltr;
}

[dir="rtl"] .cu-phone-prefix-wrap span {
  border-radius: 0 var(--seu-radius-sm) var(--seu-radius-sm) 0;
}

.cu-phone-prefix-wrap input {
  border-radius: 0 var(--seu-radius-sm) var(--seu-radius-sm) 0 !important;
  flex: 1;
  min-width: 0;
}

[dir="rtl"] .cu-phone-prefix-wrap input {
  border-radius: var(--seu-radius-sm) 0 0 var(--seu-radius-sm) !important;
}

/* --------------------------------------------------------------- yaqeen */
.cu-yaqeen-status {
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 6px;
  margin-top: 6px;
  display: inline-block;
}

.cu-yaqeen-status.verifying {
  color: #6b7280;
}

.cu-yaqeen-status.success {
  background: #ecfdf3;
  color: #027a48;
}

.cu-yaqeen-status.error {
  background: #fef3f2;
  color: var(--seu-danger);
}

/* ------------------------------------------------------------ OTP modal */
.cu-otp-boxes {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 20px 0;
  direction: ltr;
}

.cu-otp-boxes input {
  width: 52px;
  height: 52px;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  border: 2px solid var(--seu-neutral-300);
  border-radius: 10px;
  background: var(--seu-neutral-100);
}

.cu-modal-body .cu-otp-icon {
  font-size: 40px;
  color: var(--seu-primary);
  margin-bottom: 10px;
}

#cuOtpOverlay .cu-modal-body {
  text-align: center;
}

.cu-otp-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--seu-neutral-300);
  text-align: center;
}

/* ------------------------------------------------------- branch locator */
.cu-branch-info {
  margin: 20px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
}

.cu-branch-info-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #4b5563;
}

.cu-branch-info-row i {
  color: var(--seu-primary);
  width: 18px;
  text-align: center;
}

.cu-branch-maps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 20px;
}

.cu-branch-map-caption {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}

.cu-branch-map iframe {
  width: 100%;
  height: 260px;
  border: 0;
  border-radius: 8px;
}

/* ================================================================
 * General mobile pass — covers the custom (non-ported) parts of this
 * page: hero, section spacing, cards, form-card chrome, modals, OTP,
 * branch maps, tab/nav bars. The real-site widgets ported earlier
 * (form-section/simple-calendar/weekday/form-row) already carry their
 * own 576px breakpoints from the source and are left untouched here.
 * ================================================================ */
@media (max-width: 767px) {
  .cu-hero h1 {
    font-size: 22px;
  }

  .cu-section {
    padding: 28px 0;
  }

  .cu-form-card {
    padding: 18px;
    border-radius: 12px;
  }

  .cu-cards-row {
    gap: 16px;
  }

  .cu-card {
    padding: 18px;
  }

  .cu-modal {
    max-width: 100%;
  }

  .cu-modal-header {
    font-size: 16px;
    padding: 14px 16px;
  }

  .cu-modal-body {
    padding: 16px;
    font-size: 14px;
  }

  .cu-otp-boxes {
    gap: 8px;
  }

  .cu-otp-boxes input {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }

  .cu-branch-map iframe {
    height: 200px;
  }

  .cu-page-nav-inner a,
  .cu-tab-btn {
    padding: 10px 12px;
    font-size: 13px;
  }
}

@media (max-width: 380px) {
  .weekday,
  .calendar-day {
    font-size: 0.7rem;
  }

  .calendar-day {
    height: 36px;
  }

  .calendar-header span {
    font-size: 0.95rem;
  }

  .otp-input,
  .cu-otp-boxes input {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}

/* vendor/seu/style.css sets a global "h1..h6 { color:#1F2A37 }" that overrides
   the inherited white text on the dark green .footer (same selector
   specificity, but it loads after bootstrap so it wins) - headings there
   become nearly invisible. Scope a higher-specificity override back to white. */
.footer h1,
.footer h2,
.footer h3,
.footer h4,
.footer h5,
.footer h6 {
  color: #fff;
}

/* Vendor style.css hides ALL .textIcon > .label between 992–1500px, which
   removes "القبول" / "Admission" on common laptop widths (Dev screenshots).
   Keep the UAP admission label visible on desktop so it matches the intended
   header (icon + short label; full name stays in the title tooltip). */
@media (min-width: 992px) {
  .sideItems .nav-item.sideItem.admission .textIcon > .label {
    display: inline !important;
  }
}

/* The real seu.edu.sa header (and this ported copy of it) overflows its own
   navbar between roughly 992-1366px: the desktop nav links + all the
   sideItems icons plus the logo simply need more room than that. Tighten
   spacing further in exactly that band so it fits without hiding/reordering
   any menu content. */
@media (min-width: 992px) and (max-width: 1366px) {
  .navbar-brand img {
    height: 52px;
  }

  .navbar-nav .nav-item > .nav-link {
    padding: var(--spacing-xs) var(--spacing-xs) !important;
    font-size: 0.85rem;
  }

  .sideItems .nav-item.sideItem .nav-link {
    padding: var(--spacing-xs) var(--spacing-xs) !important;
  }

  .sideItems.gap-1 {
    gap: 0 !important;
  }
}

/* Language switch button: rendered as a <button> inside a POST form (instead of
   an <a href="?lang="> link) so switching language never puts ?lang= in the
   URL. Mirrors the .dropdown-fullwidth a styling from vendor/seu/style.css. */
.dropdown-fullwidth .lang-switch-btn {
  display: block;
  width: 100%;
  padding: 0.5rem 1rem;
  color: var(--text-default);
  text-decoration: none;
  border-radius: 8px;
  background: none;
  border: none;
  text-align: inherit;
  font: inherit;
  cursor: pointer;
}

.dropdown-fullwidth .lang-switch-btn:hover {
  background-color: var(--button-background-neutral-hovered);
}

.dropdown-fullwidth .lang-switch-btn:active {
  background-color: var(--button-background-neutral-pressed);
}

/* Digital stamp card: official government website verification badge,
   ported from the real seu.edu.sa gradportal top-of-page component. */
.digital-stamp-card {
  padding: 6px 32px;
  background: #F3F4F6;
  position: relative;
  z-index: 1060;
}

/* Flag + label + verify stay grouped; date/time pushed to the opposite edge. */
.digital-stamp-card .digital-stamp-header {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 32px;
}

.digital-stamp-card .digital-stamp-header > svg:first-child {
  flex-shrink: 0;
}

.digital-stamp-card .digital-stamp-header h6 {
  margin: 0;
  color: #161616;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  white-space: nowrap;
}

.digital-stamp-card .digital-stamp-header .btn-digital-stamp-card {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  position: relative;
  z-index: 2;
  pointer-events: auto;
  line-height: 1.4;
  user-select: none;
}

.digital-stamp-card .digital-stamp-header .btn-digital-stamp-card span {
  color: #1B8354;
  font-size: 14px;
  font-weight: 600;
  pointer-events: none;
}

.digital-stamp-card .digital-stamp-header .btn-digital-stamp-card svg,
.digital-stamp-card .digital-stamp-header .btn-digital-stamp-card img {
  transition: transform 0.3s;
  flex-shrink: 0;
  pointer-events: none;
}

.digital-stamp-card .digital-stamp-header.open .btn-digital-stamp-card svg,
.digital-stamp-card .digital-stamp-header.open .btn-digital-stamp-card img {
  transform: rotate(180deg);
}

.btn-digital-stamp-card img {
  margin-right: 4px;
  margin-left: 4px;
}

.digital-stamp-card .digital-stamp-datetime {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  margin-inline-start: auto;
  color: #384250;
  font-size: 14px;
}

.digital-stamp-card .digital-stamp-datetime .textIcon {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: auto;
  border: none;
  background: transparent;
}

.digital-stamp-card .digital-stamp-datetime .textIcon svg {
  color: #384250;
  width: 18px;
  height: 18px;
}

.digital-stamp-card .digital-stamp-body {
  padding-top: 24px;
  padding-bottom: 24px;
  display: none;
}

.digital-stamp-card .digital-stamp-body .digital-stamp-container {
  margin-bottom: 32px;
  display: flex;
  gap: 32px;
}

.digital-stamp-card .digital-stamp-body .digital-stamp-container .box {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.digital-stamp-card .digital-stamp-body .digital-stamp-container .box .img-border-rounded {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #067647;
  border-radius: 100%;
}

.digital-stamp-card .digital-stamp-body .digital-stamp-container .box h6 {
  margin-top: 0px;
  margin-bottom: 12px;
  color: #161616;
  font-size: 18px;
}

.digital-stamp-card .digital-stamp-body .digital-stamp-container .box .green-text {
  color: #1B8354;
}

.digital-stamp-card .digital-stamp-body .digital-stamp-container .box p {
  margin: 0px;
  color: #384250;
  font-size: 16px;
}

.digital-stamp-card .digital-stamp-body .stamp-link-box {
  padding: 8px 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 8px;
  background: #FFF;
}

.digital-stamp-card .digital-stamp-body .stamp-link-box p {
  margin: 0px;
  color: #161616;
  font-size: 16px;
}

.digital-stamp-card .digital-stamp-body .stamp-link-box a {
  color: #1B8354;
  font-size: 16px;
  text-decoration: underline;
}

.stamp-ar {
  direction: rtl;
}

.stamp-en {
  direction: ltr;
}

@media (max-width: 768px) {
  .digital-stamp-card {
    padding: 8px 16px;
  }

  .digital-stamp-card .digital-stamp-header {
    flex-wrap: wrap;
  }

  .digital-stamp-card .digital-stamp-header h6 {
    white-space: normal;
  }

  .digital-stamp-card .digital-stamp-header .btn-digital-stamp-card {
    margin-inline-start: 30px;
  }

  .digital-stamp-card .digital-stamp-datetime {
    width: 100%;
    margin-inline-start: 0;
    justify-content: flex-start;
  }

  .digital-stamp-card .digital-stamp-body .digital-stamp-container {
    flex-direction: column;
  }
}
