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

.ref-language-notice {
  font-size: 13px;
  margin-top: 25px;
}

/* Mobile responsive styles */
.tech-table-responsive {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 12px;
  text-align: center;
}

.tech-card {
  flex: 1 1 150px;
  max-width: 200px;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 12px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.tech-card h4 {
  margin: 6px 0 4px;
  font-size: 16px;
}

.tech-desc {
  font-size: 14px;
  color: #555;
  margin-bottom: 8px;
}

.tech-logo {
  max-width: 100%;
  height: auto;
}

@media (max-width: 600px) {
  .tech-table-responsive {
    flex-direction: column;
    align-items: center;
  }

  .tech-card {
    flex: none;
    width: 100%;
    max-width: 90%;
  }
}

.tech-logo {
  height: 40px;                     /* Keeps the logo at original height */
  object-fit: contain;              /* a wide logo in a narrow card shrinks instead of being squashed */
  transition: transform 0.3s ease;  /* Smooth zoom on hover */
}

.tech-logo:hover {
  transform: scale(1.1);            /* Slight zoom */
}

/* ─────────────── CONTACT BUTTON AND FORM ─────────────── */
.contact-open {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin: 21px auto 0;                /* centred; 21px clears the paragraph's own 15px with room to spare */
  padding: 7px 20px;
  border: 0;
  border-radius: 999px;
  /* a subtle gradient from the title bar's dark blue (#2c3e50) */
  background: linear-gradient(135deg, #3d5874 0%, #2c3e50 100%);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(44, 62, 80, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.contact-open:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #46637f 0%, #34495e 100%);
  box-shadow: 0 5px 14px rgba(44, 62, 80, 0.35);
}
.contact-open:focus-visible { outline: 3px solid rgba(44, 62, 80, 0.35); outline-offset: 3px; }

.contact-dialog {
  width: min(560px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  padding: 0;
  border: 0;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(30, 20, 60, 0.35);
  color: #1d2433;
  overflow: auto;
}
.contact-dialog::backdrop { background: rgba(28, 22, 52, 0.55); backdrop-filter: blur(2px); }
.contact-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: linear-gradient(135deg, #3d5874 0%, #2c3e50 100%);  /* same dark blue as the button */
  color: #fff;
}
.contact-head h3 { margin: 0; font-size: 18px; }
.contact-x {
  border: 0; background: rgba(255, 255, 255, 0.18); color: #fff;
  width: 32px; height: 32px; border-radius: 50%; font-size: 20px; line-height: 1; cursor: pointer;
}
.contact-x:hover { background: rgba(255, 255, 255, 0.3); }
.contact-body { padding: 18px 20px 6px; }
.contact-kinds { border: 0; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.contact-kinds legend { font-size: 13px; font-weight: 600; color: #555; margin-bottom: 6px; padding: 0; }
.contact-kinds label { position: relative; cursor: pointer; }
.contact-kinds input { position: absolute; opacity: 0; pointer-events: none; }
.contact-kinds span {
  display: inline-block; padding: 7px 14px; border: 1px solid #d5d9e2; border-radius: 999px;
  font-size: 14px; color: #3a4252; background: #fff; transition: all 0.15s ease;
}
.contact-kinds input:checked + span { background: #eef0ff; border-color: #667eea; color: #3d3fa8; font-weight: 600; }
.contact-kinds input:focus-visible + span { outline: 3px solid rgba(102, 126, 234, 0.35); outline-offset: 2px; }
.contact-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact-field { display: flex; flex-direction: column; margin-bottom: 12px; }
.contact-field label { font-size: 13px; font-weight: 600; color: #555; margin-bottom: 5px; }
.contact-field input, .contact-field textarea {
  font: inherit; font-size: 15px; padding: 10px 12px; border: 1px solid #d5d9e2; border-radius: 10px;
  background: #fafbff; color: #1d2433; transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.contact-field textarea { resize: vertical; min-height: 120px; }
.contact-field input:focus, .contact-field textarea:focus {
  outline: none; border-color: #667eea; box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2); background: #fff;
}
.contact-count { font-size: 12px; color: #888; margin-top: 4px; text-align: right; }
.contact-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-check {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid #e3e6ee;
  border-radius: 10px; background: #f7f8fc; font-size: 14px; color: #3a4252;
}
.contact-check-icon {
  flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #c9cde0;
  border-top-color: #667eea; animation: contact-spin 0.8s linear infinite;
}
.contact-check[data-state="done"] { border-color: #b8e2c8; background: #effaf3; color: #17663a; }
.contact-check[data-state="done"] .contact-check-icon {
  animation: none; border: 0; background: #17a34a; position: relative;
}
.contact-check[data-state="done"] .contact-check-icon::after {
  content: "✓"; position: absolute; inset: 0; color: #fff; font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.contact-check[data-state="failed"] { border-color: #f1c0c0; background: #fdf2f2; color: #9b1c1c; }
.contact-check[data-state="failed"] .contact-check-icon { animation: none; border-color: #e3a0a0; }
.contact-retry {
  margin-left: auto; border: 1px solid #e3a0a0; background: #fff; color: #9b1c1c; border-radius: 8px;
  padding: 4px 10px; font: inherit; font-size: 13px; cursor: pointer;
}
@keyframes contact-spin { to { transform: rotate(360deg); } }
.contact-privacy { font-size: 12px !important; color: #777; margin: 10px 0 4px !important; line-height: 1.5 !important; text-align: left !important; }
.contact-error {
  margin: 8px 0 4px; padding: 9px 12px; border-radius: 10px; background: #fdf2f2; color: #9b1c1c; font-size: 14px;
}
.contact-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 12px 20px 18px; }
.contact-cancel, .contact-send {
  font: inherit; font-size: 15px; font-weight: 600; border-radius: 10px; padding: 10px 18px; cursor: pointer;
}
.contact-cancel { border: 1px solid #d5d9e2; background: #fff; color: #3a4252; }
.contact-cancel:hover { background: #f4f5f8; }
.contact-send {
  border: 0; color: #fff; background: linear-gradient(135deg, #3d5874 0%, #2c3e50 100%);  /* matches the button */
  box-shadow: 0 3px 10px rgba(44, 62, 80, 0.28);
}
.contact-send:not(:disabled):hover { background: linear-gradient(135deg, #46637f 0%, #34495e 100%); }
.contact-send:disabled { background: #c7cbd8; box-shadow: none; cursor: not-allowed; }
.contact-done { padding: 32px 24px 26px; text-align: center; }
.contact-done h3 { margin: 10px 0 6px; font-size: 20px; }
.contact-done p { text-align: center !important; color: #555; }
.contact-done-icon {
  width: 56px; height: 56px; margin: 0 auto; border-radius: 50%; background: #effaf3; color: #17a34a;
  font-size: 30px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.contact-done .contact-send { margin-top: 8px; }

@media (max-width: 600px) {
  .contact-row { grid-template-columns: 1fr; gap: 0; }
  .contact-foot { padding: 10px 16px 16px; }
  .contact-body { padding: 16px 16px 4px; }
}
