/* Reset and Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  height: 100%;
  font-family: 'Segoe UI', sans-serif;
}

/* Universal button hover glow — brightens whatever color a button
   already is (works automatically for every button on the site, no
   need to hand-pick a lighter shade per button) plus a soft 1px glow.
   Layers on top of any button-specific hover color change already
   defined elsewhere; doesn't replace those, just adds the glow/shine. */
button:not(:disabled) {
  transition: filter 0.2s ease, box-shadow 0.2s ease;
}

button:hover:not(:disabled) {
  filter: brightness(1.3);
  box-shadow: 0 0 4px 1px rgba(255, 255, 255, 0.45);
}

/* The site's primary blue buttons previously went to a dark navy on
   hover — override so they instead go to a LIGHTER blue with a
   matching blue glow, consistent with the color-matched glow style */
.document-row button:hover,
.doc-upload-btn:hover:not(:disabled),
.doc-preview-btn:hover,
.doc-download-btn:hover,
.quotation-finalize-row button:hover:not(:disabled),
.membership-actions button:hover,
.doc-confirmation button:hover,
.mail-detail-actions button:hover,
.mail-back-btn:hover,
.compose-actions button:hover,
.doc-comment-input-row button:hover,
#contact-form button[type="submit"]:hover,
#login-form button[type="submit"]:hover,
#register-form button[type="submit"]:hover,
.brochure:hover,
.service-body a.ENQUIRE:hover {
  background-color: #7c8ce6 !important;
  box-shadow: 0 0 4px 1px rgba(124, 140, 230, 0.85) !important;
  text-shadow: none !important;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

/* ENQUIRE is an <a>, not a <button>, so it needs its own transition
   declared since the universal button rule above only targets buttons */
.service-body a.ENQUIRE {
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

/* Sign Out and the ✖ cancel buttons previously switched to dark grey
   on hover — go to a lighter red instead, matching the same
   darker-to-lighter glow pattern used elsewhere */
#logout-btn:hover,
.doc-cancel-btn:hover {
  background-color: #b33a3a !important;
  box-shadow: 0 0 4px 1px rgba(179, 58, 58, 0.85) !important;
}

a {
  color: #8fc0ff;
  text-decoration: none;
  transition: text-shadow 0.3s ease-in-out;
}

a:hover {
  color: #aed1ff;
  text-shadow: 0 0 1px #8fc0ff, 0 0 2px #8fc0ff, 0 0 3px #8fc0ff;
}

/* Background and Layout */
.background-overlay {
  background: url('background.png') no-repeat center center/cover;
  background-color: #1a1a1a;
  min-height: 100%;
  color: white;
  padding: 20px;
  display: flex;
  flex-direction: column;
  background-attachment: fixed;
}

/* Header Styles */
header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 0;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  width: 100%;
  margin: 0 auto;
  padding-bottom: 10px;
}

.company-title {
  font-size: 28px;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
  white-space: nowrap;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

.motto {
  font-family: 'Dancing Script', cursive;
  font-size: 2em;
  color: white;
  font-weight: 500;
  margin-top: 10px;
  text-align: center;
}

/* Navigation Styles */
nav {
  width: 100%;
  max-width: 75%;
  margin: 10px auto 20px;
}

.nav-tabs {
  display: grid;
  grid-template-columns: repeat(5, 20%);
  grid-template-rows: repeat(2, auto);
  width: 100%;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style-type: none;
}

.nav-tabs li {
  text-align: center;
  margin-right: 20px;
}

.nav-tabs li:last-child {
  margin-right: 0;
}

.nav-tabs li a {
  text-decoration: none;
  padding: 10px;
  background-color: rgba(42, 45, 60, 0.85);
  color: white;
  border: 0.5px solid rgba(21, 22, 30, 0.85);
  border-radius: 5px;
  transition: background 0.3s;
  display: block;
  box-shadow: 0 2px 4px rgba(21, 22, 30, 0.2), 0 0 5px rgba(21, 22, 30, 0.42);
}

.nav-tabs li a:hover {
  background-color: rgba(14, 15, 20, 0.85);
}

.nav-tabs .dropdown {
  position: relative;
  display: inline-block;
}

.nav-tabs .dropbtn {
  cursor: pointer;
  display: block;
}

.nav-tabs .dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: rgba(14, 15, 20, 0.85);
  min-width: 100%;
  box-shadow: 0px 8px 16px rgba(14, 15, 20, 0.85);
  z-index: 1;
  border-radius: 5px;
}

.nav-tabs .dropdown-content a {
  color: #fff;
  padding: 12px;
  text-decoration: none;
  display: block;
}

.nav-tabs .dropdown-content a:hover {
  background-color: rgba(14, 15, 20, 0.9);
  color: #fff;
}

.nav-tabs .dropdown:hover .dropdown-content {
  display: block;
}

/* Dashboard bar (injected via JS only when logged in) — sits on its own
   line below the nav, left-aligned, sized to fit its content only */
#dashboard-bar {
  width: 100%;
  max-width: 75%;
  margin: 8px auto 0 auto;
  text-align: left;
}

#dashboard-bar a {
  display: inline-block;
  background-color: #000000;
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.85em;
  text-decoration: none;
  border: 0.5px solid rgba(255, 255, 255, 0.3);
}

#dashboard-bar a:hover {
  background-color: #222222;
  color: #ffffff;
}

/* Main Content Styles */
main {
  flex: 1 0 auto;
  margin-bottom: 60px;
}

main section {
  margin-top: 50px;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 20px;
  border-radius: 10px;
}

#content-area {
  margin-top: 30px;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
  color: white;
  text-align: center;
  min-height: auto;
}

#content-area.overlay {
  margin-top: 30px;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
  color: white;
  text-align: center;
}

/* About Section */
.about-content {
  text-align: left;
  font-family: Verdana, Geneva, sans-serif;
  font-size: 1.1em;
  line-height: 1.8;
  color: white;
  max-width: 70%;
  margin: 0 auto;
}

.about-content p {
  text-align: justify;
}

.about-content h3 {
  font-size: 1.8em;
  margin-bottom: 20px;
  color: #ffffff;
}

.reviews-section {
  margin-top: 20px;
  padding: 10px;
  border-radius: 5px;
  opacity: 0;
  transform: translateX(100px) rotateY(15deg);
  transition: opacity 0.6s ease, transform 0.3s ease;
}

.reviews-section.flipInFromRight {
  opacity: 1;
  transform: translateX(0) rotateY(0deg);
}

.review-item {
  margin-bottom: 15px;
  padding: 10px;
  border-left: 3px solid #4F61C5;
  display: flex;
  align-items: center;
  gap: 15px;
}

.review-content {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.review-author {
  font-weight: normal;
  font-size: 1em;
  color: #bbb;
  margin-top: 5px;
  margin-left: 20px;
  font-style: italic;
  font-family: 'Georgia', serif;
  text-align: left;
}

.review-author::before {
  content: "- ";
  color: #bbb;
}

.review-rating {
  font-size: 0.9em;
  color: #FFD700;
  margin-bottom: 0;
  line-height: 1.6;
  flex-shrink: 0;
}

.review-text {
  font-size: 0.9em;
  color: #ddd;
  line-height: 1.6;
  margin-bottom: 0;
  font-style: italic;
  font-family: 'Georgia', serif;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  flex: 1;
}

.review-pipe {
  font-size: 0.9em;
  color: #ddd;
  margin-left: 10px;
  line-height: 1.6;
  flex-shrink: 0;
}

.review-course {
  font-size: 0.9em;
  color: #ddd;
  line-height: 1.6;
}

.review-divider {
  width: 1px;
  height: auto;
  min-height: 100px;
  background-color: #ffffff;
  margin: 0 15px;
  border: none;
}

.course-link {
  text-decoration: none;
  color: inherit;
}

.course-text {
  background-color: #40c4ff;
  color: #000000;
  padding: 0px 6px;
  border-radius: 4px;
  display: inline-block;
  transition: font-weight 0.2s;
}

.course-link:hover .course-text {
  font-weight: normal;
}

.no-reviews {
  font-size: 0.9em;
  color: #ddd;
  text-align: center;
}

.review-verification {
  color: aqua;
  font-weight: normal;
  display: block;
  text-align: center;
  text-decoration: none;
}

.google-review-button {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  background-color: #1565c0;
  color: #ffffff;
  border: 2px solid transparent;
  border-image: linear-gradient(45deg, #ea4335, #4285f4, #34a853, #fbbc05) 1;
  border-radius: 4px;
  font-size: 14px;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  transition: background 0.3s, box-shadow 0.3s;
}

.google-review-button::before {
  content: "G";
  font-weight: bold;
  font-size: 16px;
  color: #ffffff;
  margin-right: 8px;
  background: linear-gradient(45deg, #ea4335, #4285f4, #34a853, #fbbc05);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.google-review-button:hover {
  background-color: #0d47a1;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(43, 24, 88, 0.5), 0 0 8px rgba(43, 24, 88, 0.5);
  border-image: linear-gradient(45deg, #fbbc05, #34a853, #4285f4, #ea4335) 1;
  text-shadow: 0 0 1px #ffffff, 0 0 1px #ffffff, 0 0 1px #ffffff;
}

.google-review-button .hover-bold:hover {
  text-shadow: 0 0 1px #ffffff, 0 0 1px #ffffff, 0 0 1px #ffffff;
}

.review-pagination {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  text-align: right;
  width: 100%;
}

.review-pagination span {
  font-size: 1em;
  color: #87CEEB;
}

.prev-arrow, .next-arrow {
  width: 0;
  height: 0;
  border-style: solid;
  cursor: pointer;
}

.prev-arrow {
  border-width: 8px 12px 8px 0;
  border-color: transparent #87CEEB transparent transparent;
}

.next-arrow {
  border-width: 8px 0 8px 12px;
  border-color: transparent transparent transparent #87CEEB;
}

.prev-arrow.disabled, .next-arrow.disabled {
  border-color: transparent #ccc transparent transparent;
  cursor: not-allowed;
}

.next-arrow.disabled {
  border-color: transparent transparent transparent #ccc;
}

.prev-arrow:hover:not(.disabled), .next-arrow:hover:not(.disabled) {
  border-color: transparent #5F9EA0 transparent transparent;
}

.next-arrow:hover:not(.disabled) {
  border-color: transparent transparent transparent #5F9EA0;
}

/* Dashboard containers (admin + client) — much wider than the account
   forms, so document sections have real room to breathe */
.dashboard-container {
  max-width: 95%;
  margin: 0 auto;
  text-align: left;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.33);
  border-radius: 10px;
}

.doc-slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  align-items: start;
  margin-bottom: 20px;
}

/* Account Section */
.account-container {
  text-align: center;
  font-family: Verdana, sans-serif;
  font-size: 1.1em;
  line-height: 1.8;
  color: white;
  max-width: 500px;
  margin: 0 auto;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.33);
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.account-container h3 {
  font-size: 1.8em;
  margin-bottom: 20px;
  color: #ffffff;
}

.toggle-form {
  margin-top: 15px;
  font-size: 1em;
  color: #ffffff;
}

.toggle-form a {
  color: #66B2FF;
  text-decoration: none;
}

.toggle-form a:hover {
  color: #99CCFF;
  text-decoration: none;
}

#login-message, #register-message {
  margin-top: 15px;
  font-weight: bold;
  text-align: center;
  color: #ffffff;
}

/* Service Blocks */
.service-blocks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 100px;
  max-width: 1800px;
  margin: 40px auto;
  justify-items: stretch;
  justify-content: center;
}

.service-block {
  border: 2px solid black;
  border-radius: 10px;
  background-color: rgba(0, 0, 0, 0.33);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 180px;
}

.service-header {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(90deg, #282E3A 60%, #282E3A);
  color: #fff;
  padding: 12px;
  font-size: 1em;
  font-weight: bold;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  letter-spacing: 0.02em;
  line-height: 1.8;
}

.service-body {
  padding: 10px;
  color: #fff;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.service-body p {
  text-align: left;
  width: 100%;
  margin: 0 0 10px;
}

.service-body .read-more {
  color: #66B2FF;
  text-decoration: none;
}

.service-body .read-more:hover {
  color: #99CCFF;
  text-shadow: 0 0 1px rgb(193, 220, 255), 0 0 2px rgb(193, 220, 255), 0 0 3px rgb(193, 220, 255);
  text-decoration: none;
}

.service-body a.ENQUIRE {
  color: #ffffff;
  text-decoration: none;
  display: inline-block;
  padding: 16px 20px;
  background-color: rgb(79, 97, 197);
  border-radius: 5px;
  font-weight: bold;
}

.service-body a.ENQUIRE:hover {
  color: #ffffff;
  background-color: rgb(39, 40, 98);
  text-shadow: 0 0 1px #ffffff, 0 0 1px #ffffff, 0 0 2px #ffffff;
}

.service-body hr.short-divider {
  width: 100px;
  margin: 10px auto;
  border: 0;
  border-top: 1px solid #ffffff;
}

.service-body .custom-br {
  display: block;
  margin-bottom: 15px;
}

/* Contact Form */
.contact-block {
  border: 2px solid black;
  border-radius: 10px;
  background-color: rgba(0, 0, 0, 0.33);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 200px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.contact-block a {
  color: #517CF6;
  text-decoration: none;
}

.contact-font {
  text-align: center;
  font-family: Verdana, sans-serif;
  font-size: 1.1em;
  line-height: 1.8;
  color: #ffffff;
  max-width: 100%;
  margin: 0 auto;
}

.contact-font p {
  text-align: left;
  font-family: Verdana, sans-serif;
  font-size: 1em;
  line-height: 1.8;
  color: #ffffff;
  max-width: 100%;
  margin: 0 auto;
}

.contact-font p a {
  color: #66B2FF;
}

.contact-font h3 {
  font-size: 1.8em;
  margin-bottom: 20px;
  color: #ffffff;
}

.contact-divider {
  text-align: center;
  margin: 20px 0;
  font-family: Verdana, sans-serif;
  font-size: 1em;
  color: #ffffff;
}

.contact-details {
  margin-top: 20px;
}

.form-group {
  margin-bottom: 15px;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-family: Verdana, sans-serif;
  font-size: 1em;
  color: #ffffff;
  font-weight: bold;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-family: sans-serif;
  font-size: 1em;
  line-height: 1.8;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.form-group textarea {
  height: 120px;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #66B2FF;
  box-shadow: 0 0 5px rgba(66, 178, 255, 0.5);
}

.prefilled-input {
  background-color: rgba(0, 0, 0, 0.4) !important;
}

.required-asterisk {
  color: #ff6b6b;
}

.field-message {
  margin-top: 6px;
  font-size: 0.85em;
  color: #ff6b6b;
  min-height: 1em;
  text-align: left;
}

.password-policy-note {
  font-size: 0.85em;
  color: #cccccc;
  text-align: left;
  margin: 10px 0 15px;
  line-height: 1.5;
}

.form-group select {
  width: 100%;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-family: sans-serif;
  font-size: 1em;
}

.form-group select option {
  background-color: #1a1a1a;
  color: #ffffff;
}

.security-question-row {
  padding-bottom: 15px;
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.dashboard-subheading {
  margin-top: 20px;
  margin-bottom: 10px;
  text-align: left;
}

.document-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
}

.document-row button {
  padding: 4px 12px;
  background-color: #4d5ca7;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85em;
}

.document-row button:hover {
  background-color: #1c223f;
}

.doc-slot {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  text-align: left;
}

.doc-slot-label {
  font-weight: bold;
  margin-bottom: 6px;
}

.doc-slot-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.doc-slot-controls input[type="file"] {
  color: #ffffff;
  max-width: 220px;
}

.doc-upload-btn {
  background-color: #4d5ca7;
  color: #ffffff;
  padding: 6px 14px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9em;
}

.doc-upload-btn:hover:not(:disabled) {
  background-color: #1c223f;
}

.doc-upload-btn:disabled {
  background-color: #555555;
  cursor: default;
  opacity: 0.7;
}

.doc-status {
  font-size: 1.1em;
  min-width: 20px;
  display: inline-block;
}

.doc-cancel-btn {
  background-color: #800000;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  padding: 4px 10px;
  cursor: pointer;
  font-size: 0.85em;
}

.doc-cancel-btn:hover {
  background-color: #333333;
}

.doc-slot-filename {
  margin-top: 6px;
  font-size: 0.85em;
  color: #cccccc;
}

.clients-table {
  width: 100%;
  border-collapse: collapse;
  color: #ffffff;
}

.clients-table th,
.clients-table td {
  padding: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  text-align: left;
}

.admin-client-panel {
  text-align: left;
  margin-top: 20px;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.25);
  border-radius: 10px;
}

.admin-client-panel h4 {
  margin-bottom: 10px;
}

.admin-doc-row {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-doc-label {
  font-weight: bold;
  margin-right: 8px;
}

.admin-doc-missing {
  color: #999999;
  font-style: italic;
}

.doc-preview-btn,
.doc-download-btn {
  padding: 4px 10px;
  margin-left: 8px;
  background-color: #4d5ca7;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8em;
}

.doc-preview-btn:hover,
.doc-download-btn:hover {
  background-color: #1c223f;
}

.multi-doc-row {
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.doc-slot-disabled {
  opacity: 0.5;
}

.doc-slot-disabled-note {
  font-size: 0.85em;
  color: #999999;
  font-style: italic;
  margin-top: 6px;
}

.eohsp-toggle-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9em;
  margin: 12px 0;
  cursor: pointer;
}

.quotation-finalize-row {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed rgba(255, 255, 255, 0.25);
}

.quotation-finalize-row label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9em;
  cursor: pointer;
}

.quotation-finalize-row button {
  margin-top: 8px;
  padding: 6px 16px;
  background-color: #4d5ca7;
  color: #ffffff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.quotation-finalize-row button:hover:not(:disabled) {
  background-color: #1c223f;
}

.quotation-finalize-row button:disabled {
  background-color: #555555;
  cursor: default;
  opacity: 0.6;
}

.quotation-finalize-status {
  margin-top: 8px;
  font-size: 0.85em;
  color: #cccccc;
  line-height: 1.6;
}

.quotation-locked-note {
  margin-top: 10px;
  font-size: 0.85em;
  color: #7fdc7f;
  font-weight: bold;
}

.doc-slot-locked {
  opacity: 0.75;
  border: 1px solid rgba(127, 220, 127, 0.3);
}

.membership-filter-input {
  width: 100%;
  max-width: 400px;
  padding: 8px;
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.membership-table th {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.membership-table th:hover {
  color: #66B2FF;
}

.membership-actions-cell {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.membership-card {
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  padding: 16px;
  text-align: left;
}

.membership-card h4 {
  margin-bottom: 4px;
}

.membership-email {
  font-size: 0.85em;
  color: #cccccc;
  margin-bottom: 12px;
}

.cert-row {
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cert-row-label {
  font-weight: bold;
  margin-bottom: 4px;
}

.cert-row-info {
  font-size: 0.85em;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cert-history {
  margin-top: 6px;
  padding: 6px 10px;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
  font-size: 0.8em;
}

.cert-history-entry {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
}

.cert-history-entry select {
  padding: 3px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.cert-add-row {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cert-add-row select {
  padding: 4px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.membership-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  flex-wrap: wrap;
}

.membership-actions button {
  padding: 6px 14px;
  background-color: #4d5ca7;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85em;
}

.membership-actions button:hover {
  background-color: #1c223f;
}

.preview-modal-image {
  max-width: 100%;
  max-height: 70vh;
  margin-top: 10px;
  border-radius: 5px;
  display: block;
}

.doc-confirmation {
  margin-top: 20px;
  padding: 15px;
  background-color: rgba(0, 0, 0, 0.25);
  border-radius: 8px;
  text-align: left;
}

.doc-confirmation label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.9em;
  line-height: 1.5;
}

.doc-confirmation input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
}

.doc-confirmation button {
  margin-top: 10px;
  padding: 6px 16px;
  background-color: #4d5ca7;
  color: #ffffff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.doc-confirmation button:hover {
  background-color: #1c223f;
}

#docs-confirm-status {
  margin-top: 8px;
  font-size: 0.85em;
  color: #7fdc7f;
}

.notification-badge {
  display: inline-block;
  background-color: #cc3333;
  color: #ffffff;
  border-radius: 50%;
  padding: 2px 7px;
  font-size: 0.75em;
  font-weight: bold;
  margin-left: 4px;
  position: relative;
  top: -8px;
}

.bell-btn {
  position: relative;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.3em;
  cursor: pointer;
  padding: 6px 10px;
  margin-right: 6px;
}

/* Override the generic box-shadow glow for the bell specifically — it
   has no background of its own, so a box-shadow reads as a floating
   rectangle rather than a glow. Use a text-shadow instead, which hugs
   the bell icon itself. #bell-btn (ID) is used here purely to win
   specificity over the universal button:hover:not(:disabled) rule. */
#bell-btn:hover {
  filter: brightness(1.3);
  box-shadow: none;
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
}

.bell-btn:hover {
  color: #cccccc;
}

.mail-app {
  display: flex;
  gap: 20px;
  text-align: left;
  min-height: 400px;
}

.mail-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 160px;
  flex-shrink: 0;
}

.mail-nav-btn {
  background-color: rgba(0, 0, 0, 0.3);
  color: #ffffff;
  border: none;
  border-radius: 5px;
  padding: 10px 14px;
  cursor: pointer;
  text-align: left;
  font-size: 0.95em;
}

.mail-nav-btn:hover {
  background-color: rgba(0, 0, 0, 0.5);
}

.mail-content {
  flex: 1;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  padding: 20px;
  min-width: 0;
}

.mail-empty {
  color: #999999;
  font-style: italic;
}

.mail-list {
  width: 100%;
  border-collapse: collapse;
}

.mail-list th,
.mail-list td {
  padding: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  text-align: left;
}

.mail-list tbody tr {
  cursor: pointer;
}

.mail-list tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.mail-row-unread {
  font-weight: bold;
}

.mail-detail-date {
  color: #cccccc;
  font-size: 0.85em;
  margin-bottom: 10px;
}

.mail-detail-body {
  margin: 15px 0;
  line-height: 1.6;
}

.mail-detail-actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.mail-detail-actions button,
.mail-back-btn {
  padding: 8px 16px;
  background-color: #4d5ca7;
  color: #ffffff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.mail-detail-actions button:hover,
.mail-back-btn:hover {
  background-color: #1c223f;
}

.mail-delete-btn {
  padding: 4px 12px !important;
  background-color: #e63946 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 4px !important;
  cursor: pointer;
  font-weight: 600;
  transition: box-shadow 0.2s ease, background-color 0.2s ease;
}

.mail-delete-btn:hover {
  background-color: #ff4d5e !important;
  box-shadow: 0 0 4px 1px rgba(255, 77, 94, 0.85);
}

.mail-back-btn {
  margin-bottom: 15px;
}

.mail-compose {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.compose-field-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.compose-field-row label {
  width: 70px;
  flex-shrink: 0;
  font-weight: bold;
}

.compose-field-row select,
.compose-field-row input {
  flex: 1;
  padding: 8px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.compose-field-row select option {
  background-color: #1a1a1a;
  color: #ffffff;
}

.mail-compose textarea {
  width: 100%;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-family: inherit;
  resize: vertical;
}

.compose-actions {
  display: flex;
  gap: 10px;
}

.compose-actions button {
  padding: 8px 20px;
  background-color: #4d5ca7;
  color: #ffffff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.compose-actions button:hover {
  background-color: #1c223f;
}

.compose-draft-btn {
  background-color: #555555 !important;
}

.compose-draft-btn:hover {
  background-color: #333333 !important;
}

.doc-comments {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(255, 255, 255, 0.2);
}

.doc-comments-list {
  max-height: 150px;
  overflow-y: auto;
  margin-bottom: 8px;
}

.doc-comment {
  font-size: 0.85em;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.doc-comment-empty {
  font-size: 0.85em;
  color: #999999;
  font-style: italic;
}

.doc-comment-input-row {
  display: flex;
  gap: 8px;
}

.doc-comment-input-row input {
  flex: 1;
  padding: 6px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 0.85em;
}

.doc-comment-input-row button {
  padding: 6px 12px;
  background-color: #4d5ca7;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85em;
}

.doc-comment-input-row button:hover {
  background-color: #1c223f;
}

#contact-form button[type="submit"],
#login-form button[type="submit"],
#register-form button[type="submit"] {
  background-color: #4d5ca7;
  color: #ffffff;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  font-family: 'Arial', sans-serif;
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
}

#contact-form button[type="submit"]:hover,
#login-form button[type="submit"]:hover,
#register-form button[type="submit"]:hover {
  background-color: #1c223f;
  text-shadow: 0 0 1px #ffffff, 0 0 1px #ffffff, 0 0 1px #ffffff;
}

#loading-message {
  display: none;
  margin-top: 15px;
  text-align: center;
}

#success-message {
  display: none;
  color: green;
  margin-top: 15px;
  font-weight: bold;
  text-align: center;
}

#error-message {
  display: none;
  color: red;
  margin-top: 15px;
  font-weight: bold;
  text-align: center;
}

/* Brochure Button */
.brochure-container {
  text-align: center;
  margin-top: 10px;
}

.brochure {
  background-color: #4d5ca7;
  color: #ffffff;
  border: none;
  width: 200px;
  border-radius: 4px;
  margin-bottom: 20px;
  padding: 10px 0;
  font-size: 1em;
  cursor: pointer;
}

.brochure:hover {
  background-color: #1c223f;
  text-shadow: 0 0 1px #b0bdff, 0 0 2px #b0bdff, 0 0 3px #b0bdff;
}

/* Header Bar */
#header-bar {
  background: none;
  width: 100%;
  padding: 10px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  border-bottom: 1px solid #ccc;
  box-sizing: border-box;
}

.logged-in-text {
  color: #ffffff;
  margin-right: 15px;
}

#logout-btn {
  padding: 6px 12px;
  background-color: #800000;
  color: #ffffff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

#logout-btn:hover {
  background: #333333;
}

/* Modal Styles */
.custom-vertical-modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
}

.custom-vertical-modal .modal-buttons {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.custom-vertical-modal .modal-buttons button {
  width: 150px;
  box-sizing: border-box;
}

.custom-vertical-modal .modal-content {
  background-color: #000000;
  color: #ffffff;
  margin: auto;
  padding: 20px;
  width: 100%;
  max-width: 900px;
  height: auto;
  max-height: 87vh;
  overflow-y: auto;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  position: relative;
  border: 1px solid #00FFFF;
}

.modal-content ul {
  padding-left: 0;
  margin-left: 1.2em;
  list-style-position: inside;
}

#custom-modal > div {
  background: #ffffff;
  color: #333333;
  padding: 20px;
  border-radius: 4px;
  max-width: 50vw;
  max-height: 90vh;
  text-align: center;
  font-size: 1.2em;
  position: relative;
}

#modal-close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  display: block;
  width: 34px;
  height: 34px;
  padding: 0;
  box-sizing: border-box;
  cursor: pointer;
  font-size: 1em;
  line-height: 34px;
  text-align: center;
  color: #ffffff;
  background-color: rgba(0, 0, 0, 1);
  border-radius: 6px;
}

#call-btn {
  padding: 8px 24px;
  border: none;
  background: #4CAF50;
  color: #ffffff;
  border-radius: 4px;
  font-size: 1em;
  cursor: pointer;
  margin-right: 10px;
}

#call-btn:hover {
  background: #333333;
}

#calend-btn {
  padding: 8px 24px;
  border: none;
  background: #333333;
  color: #ffffff;
  border-radius: 4px;
  font-size: 1em;
  cursor: pointer;
  margin-right: 10px;
}

#calend-btn:hover {
  background: #555555;
}

#whatsapp-btn {
  padding: 8px 24px;
  border: none;
  background: #25A5D4;
  color: #ffffff;
  border-radius: 4px;
  font-size: 1em;
  cursor: pointer;
  margin-right: 10px;
}

#whatsapp-btn:hover {
  background: #333333;
}

#email-btn {
  padding: 8px 24px;
  border: none;
  background: #555555;
  color: #ffffff;
  border-radius: 4px;
  font-size: 1em;
  cursor: pointer;
}

#email-btn:hover {
  background: #333333;
}

#calling-popup {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 10px 20px;
  background: #333333;
  color: #ffffff;
  border-radius: 5px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 10px;
}

#calling-popup-close-btn {
  cursor: pointer;
  font-size: 1em;
  color: #ffffff;
}

#brochure-modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 80%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
}

#brochure-modal > div {
  background: #ffffff;
  width: 80%;
  max-width: 95vw;
  height: 90%;
  max-height: 95vh;
  position: relative;
  border-radius: 4px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

#pdf-canvas {
  width: 100%;
  height: 100%;
  display: block;
  margin: 0 auto;
}

#pdf-controls {
  position: sticky;
  bottom: 0;
  background: #ffffff;
  padding: 5px;
  text-align: center;
  z-index: 1000;
}

#pdf-controls button {
  padding: 10px 16px;
  margin: 0 10px;
  font-size: 1em;
  background-color: #4CAF50;
  color: #ffffff;
  border: none;
  border-radius: 4px;
}

#close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5em;
  cursor: pointer;
  color: #ffffff;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 5px 10px;
  border-radius: 4px;
  z-index: 1000;
  font-family: Arial, sans-serif;
}

.custom-vertical-modal .close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  display: block;
  width: 34px;
  height: 34px;
  font-size: 1.1em;
  line-height: 34px;
  text-align: center;
  cursor: pointer;
  color: #ffffff;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 0;
  box-sizing: border-box;
  border-radius: 4px;
  z-index: 1000;
  font-family: Arial, sans-serif;
}

/* Footer Styles */
.footer {
  background: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  font-family: 'Arial', sans-serif;
  text-align: center;
  padding: 20px 0;
  width: 100%;
  position: relative;
  margin-top: auto;
}

.footer.fixed {
  position: fixed;
  bottom: 0;
  left: 0;
}

.social-footer {
  width: 100%;
  margin: 0 auto;
  padding: 10px 0;
}

.social-heading {
  font-size: 20px;
  color: #ffffff;
  margin-bottom: 2px;
  font-family: 'Arial', sans-serif;
  font-weight: bold;
}

.social-divider {
  width: 100px;
  margin: 10px auto;
  border: 0;
  border-top: 1px solid #ffffff;
}

.social-icons {
  display: flex;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 20px;
  padding: 0 20px;
  width: 100%;
}

.social-icons a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: lighter;
  font-family: 'Arial', sans-serif;
  transition: color 0.3s ease-in-out;
}

.social-icons img {
  width: 36px;
  height: auto;
  margin-bottom: 4px;
}

.social-icons a:hover {
  color: #ffffff;
  text-shadow: 0 0 1px #ffffff, 0 0 1px #ffffff, 0 0 1px #ffffff;
}

.social-icons a span {
  display: inline;
}

.copyright {
  font-size: 12px;
  padding-top: 10px;
}

/* Animations */
.loader {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 3px solid #fff;
  border-top: 3px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.glow-animate {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #333333;
  padding: 20px 40px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  color: #ffffff;
  box-shadow: 0 0 15px rgba(40, 62, 123, 0.8);
  z-index: 1000;
  text-align: center;
  animation: glow 1.2s ease-in-out infinite alternate;
}

@keyframes glow {
  0% {
    box-shadow: 0 0 10px #ffffff, 0 0 20px #ffffff;
  }
  100% {
    box-shadow: 0 0 20px #ffffff, 0 0 40px #ffffff;
  }
}

@-webkit-keyframes glow {
  0% {
    box-shadow: 0 0 10px #ffffff, 0 0 20px #ffffff;
  }
  100% {
    box-shadow: 0 0 20px #ffffff, 0 0 40px #ffffff;
  }
}

@keyframes flipInFromRight {
  from {
    opacity: 0;
    transform: translateX(25px) rotateY(0deg);
  }
  to {
    opacity: 1;
    transform: translateX(0) rotateY(0deg);
  }
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
  .service-blocks-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 800px) {
  .service-blocks-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .background-overlay {
    background:
      url('background-mobile.png') no-repeat center top/100% auto,
      linear-gradient(to bottom, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, 1) 100%);
    background-color: #333333;
    background-attachment: fixed;
    padding: 50px 0;
  }

  .custom-vertical-modal .modal-buttons {
    display: flex;
    flex-wrap: wrap;
  }

  .custom-vertical-modal .modal-buttons button {
    width: 120px;
    margin-bottom: 2px;
  }

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

  .form-group label {
    font-size: 0.9em;
  }

  .form-group input,
  .form-group textarea {
    font-size: 14px;
    padding: 10px;
  }

  #contact-form button[type="submit"],
  #login-form button[type="submit"],
  #register-form button[type="submit"] {
    padding: 8px 16px;
    font-size: 10px;
  }

  #contact-form .contact-divider {
    font-size: 14px;
  }

  .modal-content ul {
    padding-left: 0;
    list-style: none;
    margin: 0 0 1em;
  }

  .reviews-section {
    padding: 8px;
  }

  .review-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .review-content {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .review-divider {
    width: 100%;
    height: 1px;
    margin: 10px 0;
  }

  .review-pipe {
    margin-left: 0;
    margin-top: 5px;
    margin-bottom: 5px;
  }

  .review-rating {
    margin-bottom: 5px;
  }

  .review-text {
    margin-bottom: 0;
  }

  .google-review-button {
    width: 100%;
    text-align: center;
    padding: 8px 16px;
    font-size: 12px;
  }

  .review-author {
    font-size: 1em;
  }

  .review-text {
    font-size: 0.85em;
    margin-bottom: 8px;
  }

  .company-title {
    font-size: 28px;
    font-weight: bold;
    color: #ffffff;
    margin: 0;
    padding-top: 0;
    position: relative;
    white-space: nowrap;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
  }

  .header-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding-bottom: 0;
  }

  .header-container img {
    height: 95px;
    width: auto;
  }

  nav {
    margin-top: 0;
    margin-bottom: 10px;
    width: 100%;
    max-width: 100vw;
  }

  .nav-tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 0;
    margin: 0;
    list-style: none;
  }

  .nav-tabs li {
    flex: 0 0 20%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-right: 0;
  }

  .nav-tabs li a {
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 2px;
    border: 1px solid #333;
    width: 100%;
    margin: 0;
    text-decoration: none;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.5);
    transition: background-color 0.3s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
    box-sizing: border-box;
  }

  .nav-tabs .dropdown {
    align-items: center;
    justify-content: center;
  }

  .nav-tabs .dropbtn {
    width: 100%;
    padding: 0;
    font-size: 10px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .nav-tabs .dropdown-content {
    min-width: 100%;
    width: auto;
    top: auto;
    left: 0;
    background-color: rgba(20, 20, 20, 0.95);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.8);
    z-index: 1;
    border-radius: 5px;
    display: none;
    position: absolute;
  }

  .dropdown-content a {
    color: #ffffff;
    padding: 12px 2px;
    text-decoration: none;
    display: block;
    font-size: 10px;
    text-align: center;
  }

  .dropdown:hover .dropdown-content {
    display: block;
  }

  .dropdown-content a:hover {
    background-color: rgba(0, 0, 0, 0.9);
    color: #ffffff;
  }

  .service-body .custom-br {
    display: block;
    margin-bottom: 15px;
  }

  .service-body a.read-more,
  .service-body a.ENQUIRE {
    display: block;
  }

  .footer {
    position: relative;
    margin-top: 20px;
  }

  .social-footer {
    padding: 10px 0;
    width: 100%;
  }

  .social-icons {
    justify-content: space-around;
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    padding: 5px 0;
    width: auto;
  }

  .social-icons a {
    flex: 0 0 12.5%;
    font-size: 0;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .social-icons a span {
    display: none;
  }

  .social-icons img {
    width: 36px;
    height: auto;
    margin-bottom: 0;
  }

  .social-heading {
    font-size: 16px;
    margin-bottom: 2px;
  }

  .social-divider {
    width: 80px;
    margin: 10px auto;
  }

  .motto {
    order: 0;
    width: 100%;
    font-size: 24px;
    margin-bottom: 10px;
  }

  .custom-modal {
    order: 2;
    position: fixed;
    z-index: 1;
  }

  .footer {
    order: 3;
  }

  .contact-font {
    font-size: 14px;
  }
}

@media (max-height: 700px) {
  .main {
    margin-bottom: 20px;
  }

  #content-area {
    min-height: auto;
    height: auto;
  }
}

@media (max-width: 480px) {
  .social-icons {
    gap: 0;
  }

  .social-footer {
    padding-bottom: 10px;
  }

  .service-blocks-grid {
    display: grid;
    grid-template-columns: 1fr;
  }
}

/* ── AI-drafted procedures review (admin/consultant only) ── */

.proc-generate-all-btn {
  margin-left: 12px;
  padding: 4px 10px;
  font-size: 0.8em;
  background-color: transparent;
  color: #cccccc;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  cursor: pointer;
}

.proc-generate-all-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.proc-empty-note {
  color: #cccccc;
  font-style: italic;
}

.proc-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.proc-list-row {
  display: grid;
  grid-template-columns: 70px 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.proc-id {
  font-weight: bold;
  color: #cccccc;
  font-size: 0.85em;
}

.proc-title {
  text-align: left;
}

.proc-badge {
  font-size: 0.78em;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

.proc-badge-idle { background-color: rgba(255,255,255,0.08); color: #999999; }
.proc-badge-generating { background-color: rgba(77,92,167,0.35); color: #c8cff0; }
.proc-badge-ready { background-color: rgba(255,193,7,0.2); color: #ffcd39; }
.proc-badge-approved { background-color: rgba(40,167,69,0.25); color: #6fdc8c; }
.proc-badge-rejected { background-color: rgba(220,53,69,0.25); color: #f28b95; }
.proc-badge-error { background-color: rgba(220,53,69,0.35); color: #ff9aa2; }

.proc-review-btn {
  padding: 4px 12px;
  background-color: #4d5ca7;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85em;
}

.proc-review-btn:hover:not(:disabled) {
  background-color: #1c223f;
}

.proc-review-btn:disabled {
  background-color: #555555;
  cursor: default;
  opacity: 0.6;
}

.proc-compare {
  margin-top: 16px;
  padding: 16px;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
}

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

.proc-compare-header h6 {
  margin: 0;
}

.proc-compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 900px) {
  .proc-compare-grid {
    grid-template-columns: 1fr;
  }
}

.proc-pane {
  background-color: rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  max-height: 480px;
}

.proc-pane-original {
  border-color: rgba(220, 53, 69, 0.35);
}

.proc-pane-draft {
  border-color: rgba(77, 92, 167, 0.5);
}

.proc-pane-label {
  padding: 8px 12px;
  font-size: 0.78em;
  font-weight: bold;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #cccccc;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.proc-pane-text {
  margin: 0;
  padding: 12px;
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 0.85em;
  line-height: 1.5;
  overflow-y: auto;
  color: #dddddd;
}

.proc-pane-textarea {
  flex: 1;
  min-height: 400px;
  padding: 12px;
  background-color: transparent;
  color: #ffffff;
  border: none;
  outline: none;
  resize: vertical;
  font-family: inherit;
  font-size: 0.85em;
  line-height: 1.5;
}

.proc-rejection-note {
  margin-top: 10px;
  color: #f28b95;
  font-size: 0.85em;
  font-style: italic;
}

.proc-compare-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

.proc-compare-actions button {
  padding: 7px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.88em;
  background-color: #4d5ca7;
  color: #ffffff;
}

.proc-compare-actions button:hover {
  background-color: #1c223f;
}

.proc-approve-btn {
  background-color: #28a745 !important;
}

.proc-approve-btn:hover {
  background-color: #1e7e34 !important;
}

.proc-reject-btn {
  background-color: #800000 !important;
}

.proc-reject-btn:hover {
  background-color: #5c0000 !important;
}

.proc-scope-note {
  margin: 4px 0 0 0;
  font-size: 0.82em;
  color: #999999;
  font-style: italic;
}

.industry-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 6px 0 14px 0;
}

.industry-input-row input[type="text"] {
  flex: 1;
  min-width: 220px;
  padding: 6px 10px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background-color: rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.industry-input-row button {
  padding: 6px 14px;
  background-color: #4d5ca7;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85em;
}

.industry-input-row button:hover {
  background-color: #1c223f;
}

/* ── Unified split-screen procedures review — styled like Word ── */

.proc-full-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
  padding: 10px 14px;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  position: sticky;
  top: 0;
  z-index: 3;
}

.proc-full-actions {
  display: flex;
  gap: 10px;
}

.proc-full-actions button {
  padding: 7px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.88em;
}

.proc-full-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 900px) {
  .proc-full-grid {
    grid-template-columns: 1fr;
  }
}

/* The "canvas" each column scrolls in — the gray surface Word shows
   behind pages, not the page itself */
.proc-full-col {
  background-color: #44464a;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  max-height: 75vh;
  overflow-y: auto;
  padding: 18px 16px;
}

.proc-full-col:first-child {
  border-color: rgba(220, 53, 69, 0.3);
}

.proc-full-col:last-child {
  border-color: rgba(77, 92, 167, 0.45);
}

.proc-full-col .proc-pane-label {
  position: sticky;
  top: -18px;
  margin: -18px -16px 14px -16px;
  padding: 8px 16px;
  background-color: #14172b;
  z-index: 1;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

/* Each ISP renders as its own "page": white, serif/Word-style body
   text, page-like margins and drop shadow, with a visible gap between
   pages matching Word's continuous-scroll page-break look. */
.proc-full-section {
  background-color: #ffffff;
  color: #1a1a1a;
  max-width: 760px;
  margin: 0 auto 22px auto;
  padding: 56px 64px;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.45);
  border-radius: 1px;
  font-family: Calibri, "Segoe UI", Georgia, serif;
}

.proc-full-section h6 {
  margin: 0 0 14px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid #2b2b2b;
  font-size: 1.05em;
  font-weight: 700;
  color: #1a1a1a;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: Calibri, "Segoe UI", Georgia, serif;
}

.proc-full-section .proc-pane-text {
  margin: 0;
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 0.95em;
  line-height: 1.65;
  color: #262626;
}

.proc-full-section .proc-pane-textarea {
  width: 100%;
  min-height: 320px;
  padding: 0;
  background-color: transparent;
  color: #1a1a1a;
  border: none;
  outline: none;
  resize: vertical;
  font-family: inherit;
  font-size: 0.95em;
  line-height: 1.65;
  box-sizing: border-box;
}

.proc-full-section .proc-pane-textarea:focus {
  background-color: #fbfbf5; /* faint highlight, like an active Word selection area */
}

.proc-full-section .proc-badge {
  font-family: "Segoe UI", sans-serif;
  vertical-align: middle;
}

.proc-pane-placeholder {
  font-size: 0.9em;
  font-style: italic;
  color: #666666;
  font-family: "Segoe UI", sans-serif;
}

.proc-badge-checked {
  background-color: rgba(40, 167, 69, 0.12);
  color: #2e7d32;
  font-size: 0.72em;
  font-weight: normal;
}

.proc-badge-corrected {
  background-color: rgba(255, 152, 0, 0.15);
  color: #b26a00;
  font-size: 0.72em;
  font-weight: normal;
  cursor: help;
}

.proc-review-note {
  font-family: "Segoe UI", sans-serif;
  font-size: 0.78em;
  color: #b26a00;
  background-color: rgba(255, 152, 0, 0.08);
  border-left: 3px solid rgba(255, 152, 0, 0.5);
  padding: 4px 8px;
  margin: -4px 0 12px 0;
}

.proc-download-btn {
  background-color: transparent !important;
  color: #cccccc !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.proc-download-btn:hover {
  background-color: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
}

/* ===== mobile grid menu ===== */
#mobile-menu-btn { display: none; }

@media (max-width: 768px) {
  header { position: relative; }

  #mobile-menu-btn {
    display: grid !important;
    grid-template-columns: repeat(3, 4px);
    grid-template-rows: repeat(3, 4px);
    gap: 3px;
    position: absolute;
    top: 12px; left: 12px;
    z-index: 1200;
    padding: 10px;
    background: rgba(0,0,0,0.55);
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 8px;
    box-sizing: content-box;
  }
  #mobile-menu-btn span {
    display: block; width: 4px; height: 4px;
    background: #fff; border-radius: 1px;
  }
  #mobile-menu-btn.active { background: rgba(0,0,0,0.85); }

  nav .nav-tabs { display: none !important; }
  nav.mobile-open .nav-tabs {
    display: block !important;
    position: absolute;
    top: 56px; left: 12px;
    min-width: 200px;
    background: rgba(12,12,12,0.97);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 10px;
    padding: 6px !important;
    z-index: 1100;
    list-style: none;
  }
  nav.mobile-open .nav-tabs > li {
    display: block; width: 100%; float: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  nav.mobile-open .nav-tabs > li:last-child { border-bottom: none; }
  nav.mobile-open .nav-tabs > li > a {
    display: block; text-align: left;
    padding: 12px 14px !important;
    font-size: 15px !important;
    background: none !important;
    border: none !important;
  }
  nav.mobile-open .dropdown-content { display: none !important; }
  nav.mobile-open .dropdown.open .dropdown-content {
    display: block !important;
    position: static !important;
    background: rgba(255,255,255,0.06) !important;
  }
  nav.mobile-open .dropdown-content a {
    display: block; padding: 10px 26px !important;
    font-size: 14px !important;
  }
}

/* ===== footer + social row ===== */
@media (max-width: 768px) {
  .footer {
    background: rgba(8,8,8,0.92) !important;
    padding: 18px 0 14px !important;
    margin-top: 24px;
    width: 100%;
    box-sizing: border-box;
  }
  .social-footer { width: 100%; box-sizing: border-box; }
  .social-heading { text-align: center; font-size: 15px !important; margin-bottom: 6px; }
  .social-divider { width: 120px; margin: 0 auto 12px; }

  .social-icons {
    display: grid !important;
    grid-template-columns: repeat(8, 1fr) !important;
    gap: 4px !important;
    align-items: center;
    justify-items: center;
    width: 100%;
    padding: 6px 8px !important;
    margin: 0 !important;
    box-sizing: border-box;
    flex-wrap: nowrap !important;
    overflow: visible !important;
  }
  .social-icons a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
  }
  .social-icons a img {
    width: 100% !important;
    height: auto !important;
    max-width: 32px !important;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    display: block;
    margin: 0 !important;
  }
  .social-icons a div { display: none !important; }

  .footer hr { margin: 14px auto 10px; width: 90%; opacity: 0.3; }
  .copyright {
    text-align: center;
    font-size: 12px !important;
    line-height: 1.5;
    padding: 0 16px 8px !important;
    margin: 0 !important;
  }
}

/* ===== uniform nav item height ===== */
@media (max-width: 768px) {
  nav.mobile-open .nav-tabs > li > a,
  nav.mobile-open .nav-tabs > li > a.dropbtn {
    display: block !important;
    box-sizing: border-box !important;
    width: 100% !important;
    padding: 14px 16px !important;
    margin: 0 !important;
    font-size: 15px !important;
    line-height: 1.2 !important;
    text-align: left !important;
    border: none !important;
    background: none !important;
    min-height: 0 !important;
    height: auto !important;
  }
  nav.mobile-open .nav-tabs > li {
    margin: 0 !important;
    padding: 0 !important;
    line-height: normal !important;
  }
}

/* ===== dropdown width ===== */
@media (max-width: 768px) {
  html, body { overflow-x: hidden !important; }

  nav.mobile-open .nav-tabs {
    width: auto !important;
    min-width: 190px !important;
    max-width: 62vw !important;
    right: auto !important;
    box-sizing: border-box !important;
  }
  nav.mobile-open .dropdown-content {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* ===== banner alignment ===== */
@media (max-width: 768px) {
  header { padding-top: 8px !important; }

  .header-container {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 6px 56px 4px !important;
    margin: 0 !important;
    box-sizing: border-box;
    text-align: center;
  }
  .company-title {
    margin: 0 auto !important;
    padding: 0 !important;
    width: 100%;
    text-align: center;
    line-height: 0 !important;
  }
  .company-title img {
    max-height: 62px !important;
    max-width: 78% !important;
    width: auto !important;
    height: auto !important;
    display: inline-block !important;
    margin: 0 auto !important;
  }

  #welcome-message { padding: 4px 12px 0 !important; }
  #welcome-message h2 {
    font-size: 23px !important;
    margin: 6px 0 4px !important;
    line-height: 1.2 !important;
  }
  .motto {
    font-size: 17px !important;
    line-height: 1.35 !important;
    margin: 0 auto !important;
    padding: 0 8px !important;
  }
}

@media (max-width: 768px) {
  .company-title img {
    max-height: 95px !important;
    max-width: 88% !important;
  }
  #welcome-message h2 { font-size: 26px !important; }
  .motto { font-size: 18px !important; }
}

/* ===== body text readability ===== */
@media (max-width: 768px) {
  #content-area,
  #content-area *,
  main p, main li, main div {
    text-align: left !important;
    text-align-last: left !important;
    word-spacing: normal !important;
    hyphens: none !important;
    -webkit-hyphens: none !important;
  }
  #content-area p,
  #content-area li,
  #content-area div,
  main p, main li {
    font-size: 15px !important;
    line-height: 1.6 !important;
    margin-bottom: 12px !important;
  }
  #content-area h2 { font-size: 25px !important; margin-bottom: 10px !important; }
  #content-area h3 { font-size: 20px !important; }
  #content-area { padding: 14px 16px !important; box-sizing: border-box; }
  #content-area ul { padding-left: 20px !important; }

  #welcome-message h2, #welcome-message p, .motto {
    text-align: center !important;
  }
}

/* ===== restore footer ===== */
@media (max-width: 768px) {
  .footer {
    background: rgba(8,8,8,0.94) !important;
    color: #fff !important;
    padding: 18px 0 14px !important;
    margin-top: 24px;
    width: 100%;
    box-sizing: border-box;
  }
  .footer, .footer * { text-align: center !important; }
  .social-heading, .copyright { color: #fff !important; }
  .social-heading { font-size: 15px !important; margin-bottom: 6px !important; }
  .social-divider { width: 120px; margin: 0 auto 12px !important; }
  .footer hr { margin: 14px auto 10px !important; width: 90%; opacity: 0.3; }
  .copyright {
    font-size: 12px !important;
    line-height: 1.5 !important;
    padding: 0 16px 8px !important;
    margin: 0 !important;
  }
}

/* ===== fixed background (iOS-safe) ===== */
@media (max-width: 768px) {
  .background-overlay {
    background: none !important;
  }
  .background-overlay::before {
    content: "";
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: url('background-mobile.png');
    background-size: cover;
    background-position: 50% 30%;
    background-repeat: no-repeat;
    z-index: -1;
  }
  body { background-color: #0d0d0d !important; }
}

@media (max-width: 768px) {
  .background-overlay::before {
    height: 100vh !important;
    height: 100lvh !important;
    min-height: 100vh !important;
    top: 0 !important;
    bottom: auto !important;
  }
}

/* ===== contact modal ===== */
@media (max-width: 768px) {
  #custom-modal .modal-content,
  .custom-vertical-modal .modal-content {
    width: 94vw !important;
    max-width: 94vw !important;
    padding: 18px 14px !important;
    box-sizing: border-box !important;
  }
  #custom-modal h3, #custom-modal p { text-align: center !important; }
  #custom-modal .modal-content > h3 { padding-right: 40px !important; }

  #custom-modal .modal-content button,
  #custom-modal .modal-content a.btn {
    display: block;
  }
  #custom-modal .modal-content {
    display: flex;
    flex-direction: column;
  }
  #custom-modal .contact-options,
  #custom-modal .modal-content > div:last-child {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 6px !important;
    width: 100% !important;
  }
  #custom-modal .contact-options *,
  #custom-modal .modal-content > div:last-child > * {
    width: 100% !important;
    margin: 0 !important;
    padding: 10px 2px !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
    white-space: normal !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
  }
  #custom-modal .close-btn { top: 8px !important; right: 8px !important; }
}

/* ===== modal close button clearance ===== */
@media (max-width: 768px) {
  #custom-modal .modal-content { position: relative !important; }
  #custom-modal .modal-content > *:first-child,
  #custom-modal .modal-content > p:first-of-type,
  #custom-modal .modal-content > h3:first-of-type {
    padding-right: 52px !important;
    box-sizing: border-box !important;
  }
  #custom-modal .close-btn {
    position: absolute !important;
    top: 6px !important;
    right: 6px !important;
    width: 34px !important;
    height: 34px !important;
    line-height: 34px !important;
    font-size: 18px !important;
    padding: 0 !important;
    text-align: center !important;
    z-index: 10 !important;
  }
}

@media (max-width: 768px) {
  #custom-modal .modal-content {
    padding-top: 48px !important;
    position: relative !important;
  }
  #custom-modal .close-btn {
    position: absolute !important;
    top: 8px !important; right: 8px !important;
    width: 32px !important; height: 32px !important;
    line-height: 32px !important; font-size: 17px !important;
    padding: 0 !important; text-align: center !important;
  }
}

@media (max-width: 768px) {
  #custom-modal .close-btn,
  .custom-vertical-modal .close-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    min-width: 32px !important;
    max-width: 32px !important;
    height: 32px !important;
    box-sizing: border-box !important;
    padding: 0 !important;
    font-size: 16px !important;
    line-height: 1 !important;
    border-radius: 6px !important;
  }
}

@media (max-width: 768px) {
  #custom-modal .close-btn,
  .custom-vertical-modal .close-btn,
  span.close-btn {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    left: auto !important;
    display: inline-block !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 0 !important;
    max-width: 32px !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 16px !important;
    line-height: 32px !important;
    text-align: center !important;
    border-radius: 6px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    float: none !important;
  }
}

@media (max-width: 768px) {
  #custom-modal .modal-content > *:first-child,
  #custom-modal #modal-close-btn,
  #modal-close-btn {
    padding: 0 !important;
    padding-right: 0 !important;
    width: 34px !important;
    max-width: 34px !important;
    height: 34px !important;
    box-sizing: border-box !important;
    flex: 0 0 auto !important;
    align-self: flex-end !important;
  }
}

/* ===== close button colour ===== */
#modal-close-btn,
.custom-vertical-modal .close-btn,
#close-btn {
  background-color: #4F61C5 !important;
  color: #fff !important;
}

/* ===== motto readability ===== */
@media (max-width: 768px) {
  .motto {
    font-size: 21px !important;
    line-height: 1.5 !important;
    text-align: center !important;
    max-width: 300px !important;
    margin: 8px auto 0 !important;
    padding: 0 !important;
    text-wrap: balance;
  }
}

@media (max-width: 768px) {
  .motto {
    white-space: nowrap !important;
    font-size: 3.6vw !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-align: center !important;
    padding: 0 6px !important;
  }
}

/* ===== motto font ===== */
.motto {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-style: italic !important;
  font-weight: 500 !important;
}
@media (max-width: 768px) {
  .motto {
    font-size: 19px !important;
    letter-spacing: 0.2px !important;
    white-space: nowrap !important;
  }
}

@media (max-width: 768px) {
  .motto {
    font-size: 4.3vw !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 4px !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }
}

.motto {
  font-family: 'EB Garamond', Georgia, serif !important;
}
@media (max-width: 768px) {
  .motto { font-size: 4.2vw !important; }
}

.motto {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-style: italic !important;
  font-weight: 500 !important;
}
@media (max-width: 768px) {
  .motto { font-size: 4.3vw !important; }
}
