/* =========================================================
   Unix ERP — additions on top of the original theme
   (app-screenshot mockups, screenshot gallery, contact form states)
   ========================================================= */

/* ---------- Device frames for real app screenshots ---------- */
.app-mockup {
  position: relative;
  padding-bottom: 30px;
}

.app-mockup img {
  display: block;
  width: 100%;
  height: auto;
}

.device-browser {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 25px 60px -15px rgba(25, 39, 85, 0.35), 0 0 0 1px rgba(25, 39, 85, 0.06);
}

.device-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  background: #f1f4f9;
  border-bottom: 1px solid #e3e8f0;
}

.device-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff5f57;
}

.device-bar span:nth-child(2) { background: #febc2e; }
.device-bar span:nth-child(3) { background: #28c840; }

.device-bar em {
  flex: 1;
  margin: 0 40px 0 14px;
  height: 18px;
  line-height: 18px;
  border-radius: 9px;
  background: #ffffff;
  color: #8a94a6;
  font-size: 11px;
  font-style: normal;
  text-align: center;
  overflow: hidden;
  white-space: nowrap;
}

.device-laptop .device-screen {
  background: #111827;
  border-radius: 14px 14px 0 0;
  padding: 14px 14px 18px;
  box-shadow: 0 25px 60px -15px rgba(25, 39, 85, 0.45);
}

.device-laptop .device-screen img {
  border-radius: 3px;
}

.device-laptop .device-base {
  position: relative;
  height: 16px;
  margin: 0 -7%;
  background: linear-gradient(#d9dde5, #aeb4c0);
  border-radius: 0 0 16px 16px;
}

.device-laptop .device-base::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 16%;
  height: 6px;
  transform: translateX(-50%);
  background: #9aa1ae;
  border-radius: 0 0 8px 8px;
}

/* Floating detail card overlapping the main screenshot */
.mockup-float {
  position: absolute;
  right: -20px;
  bottom: 0;
  width: 52%;
  background: #ffffff;
  border-radius: 10px;
  padding: 6px;
  box-shadow: 0 20px 50px -10px rgba(25, 39, 85, 0.4);
  animation: mockupFloat 6s ease-in-out infinite;
}

.mockup-float img {
  border-radius: 6px;
}

@keyframes mockupFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.chooseus-area .thumb .app-mockup {
  margin-top: 40px;
  margin-bottom: 60px;
}

.process-area .thumb .app-mockup,
.our-specialty-area .thumb .app-mockup,
.faq-area .thumb .app-mockup {
  margin: 30px 30px 30px 0;
}

.contact-area .app-mockup {
  padding-bottom: 0;
}

/* Original theme sets .thumb img widths; keep frames fluid */
.chooseus-area .thumb.width-120 .app-mockup img,
.our-specialty-area .thumb.width-90 .app-mockup img {
  max-width: 100%;
}

@media (max-width: 991px) {
  .mockup-float { right: 0; width: 55%; }
  .process-area .thumb .app-mockup,
  .our-specialty-area .thumb .app-mockup,
  .faq-area .thumb .app-mockup { margin: 0 0 40px; }
  /* Keep the laptop base inside the page gutters (a wider overhang causes sideways scrolling) */
  .device-laptop .device-base { margin: 0 -3%; }
  /* The theme puts the overview arrows 50px outside the carousel, past the screen edge on tablets */
  .overview-area .overview-carousel .owl-nav .owl-prev { left: 0; }
  .overview-area .overview-carousel .owl-nav .owl-next { right: 0; left: auto; }
}

/* Phones: the detail screenshot would cover most of the laptop and run into the next heading,
   so it sits below the main screenshot as a smaller card that only slightly overlaps it. */
@media (max-width: 767px) {
  .app-mockup { padding-bottom: 0; }
  .mockup-float {
    position: relative;
    right: auto;
    bottom: auto;
    width: 70%;
    margin: -24px 0 0 auto;
    padding: 4px;
    animation: none;
    box-shadow: 0 14px 34px -12px rgba(25, 39, 85, 0.45);
  }
  .chooseus-area .thumb .app-mockup { margin-bottom: 40px; }
}

/* ---------- Screenshot gallery ---------- */
.screenshots-area {
  position: relative;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.screenshot-card {
  display: block;
  color: inherit;
  transition: transform 0.3s ease;
}

.screenshot-card:hover {
  transform: translateY(-6px);
  color: inherit;
  text-decoration: none;
}

.screenshot-card.featured {
  grid-column: span 2;
  grid-row: span 2;
}

.screenshot-card .device-browser {
  box-shadow: 0 10px 35px -10px rgba(25, 39, 85, 0.3), 0 0 0 1px rgba(25, 39, 85, 0.06);
}

.screenshot-card .device-bar {
  height: 22px;
}

.screenshot-card .device-bar span {
  width: 8px;
  height: 8px;
}

.screenshot-card .shot {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f4f6fa;
}

.screenshot-card.featured .shot {
  aspect-ratio: auto;
  height: calc(100% - 22px);
}

.screenshot-card .shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  transition: transform 0.6s ease;
}

.screenshot-card:hover .shot img {
  transform: scale(1.04);
}

.screenshot-card.featured .device-browser {
  height: calc(100% - 70px);
}

.screenshot-card .caption {
  padding: 15px 4px 0;
}

.screenshot-card .caption h5 {
  margin: 0 0 4px;
  font-weight: 700;
  color: #192755;
}

.screenshot-card .caption h5 i {
  color: #e18d00;
  font-size: 13px;
  margin-left: 4px;
  opacity: 0;
  transition: opacity 0.3s;
}

.screenshot-card:hover .caption h5 i {
  opacity: 1;
}

.screenshot-card .caption p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

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

@media (max-width: 575px) {
  .screenshot-grid { grid-template-columns: 1fr; }
  .screenshot-card.featured { grid-column: auto; grid-row: auto; }
  .screenshot-card.featured .shot { aspect-ratio: 16 / 10; height: auto; }
  .screenshot-card.featured .device-browser { height: auto; }
}

/* ---------- Pricing highlight (optional badge set in admin) ---------- */
.pricing-item .pricing-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  background: #e18d00;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 20px;
  text-transform: uppercase;
}

.pricing-item li.footer:empty { display: none; }

/* ---------- Specialty animated stats (moved from inline styles) ---------- */
.animated-stats {
  font-family: 'Poppins', sans-serif;
  color: #000;
  text-align: center;
  margin: 40px 0;
}

.animated-stats .stats-row {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

.animated-stats .stat-number {
  font-size: 3rem;
  font-weight: bold;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animated-stats .stat-number.animate {
  opacity: 1;
  transform: translateY(0);
}

.animated-stats .stat-label {
  font-size: 1.5rem;
  font-family: pacifico;
  color: #000;
  margin-top: 8px;
}

.stat-block {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ---------- Header CTA ---------- */
.attr-nav li.button a i {
  margin-right: 4px;
}

/* Keep the menu on one line next to the longer header button on small laptops */
@media (min-width: 992px) and (max-width: 1199px) {
  nav.navbar.bootsnav ul.nav > li > a {
    padding-left: 8px !important;
    padding-right: 8px !important;
    font-size: 13px;
  }
  nav.navbar.bootsnav .attr-nav {
    margin-left: 12px !important;
  }
  nav.navbar.bootsnav .attr-nav > ul > li.button > a {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  .attr-nav li.button a i {
    display: none;
  }
}

/* The appointment item in the menu is only for the collapsed (mobile) menu */
nav.navbar.bootsnav ul.nav > li.mobile-cta {
  display: none;
}

@media (max-width: 991px) {
  nav.navbar.bootsnav ul.nav > li.mobile-cta {
    display: block;
  }
  nav.navbar.bootsnav ul.nav > li.mobile-cta > a {
    color: #e18d00 !important;
    font-weight: 700;
  }
}

/* Below desktop the header button would crowd the centred logo — it lives in the menu instead */
@media (max-width: 991px) {
  nav.navbar.bootsnav .attr-nav {
    display: none !important;
  }
}

/* ---------- Contact form ---------- */
.hp-field {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-alert {
  margin-top: 20px;
  padding: 12px 16px;
  border-radius: 5px;
  font-weight: 600;
}

.contact-alert.success { background: #e6f7f1; color: #148f77; }
.contact-alert.error { background: #fdecef; color: #c0254d; }

#contact-form button[disabled] { opacity: 0.6; cursor: wait; }

/* Contact form attachments */
.attach-field { margin-bottom: 20px; }
.attach-field input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}
.attach-drop {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 14px 18px;
  border: 2px dashed #d3d9e6;
  border-radius: 8px;
  background: #fafbfd;
  cursor: pointer;
  font-weight: 400;
  line-height: 1.4;
  transition: border-color 0.2s, background 0.2s;
}
.attach-drop:hover { border-color: #e18d00; background: #fffaf0; }
.attach-drop > i {
  flex: 0 0 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff4e0;
  color: #e18d00;
  display: flex;
  align-items: center;
  justify-content: center;
}
.attach-drop strong { color: #192755; }
.attach-drop em { font-style: normal; color: #8a94a6; }
.attach-drop small { color: #8a94a6; }
.attach-field:focus-within .attach-drop { border-color: #e18d00; }

.attach-list { list-style: none; margin: 8px 0 0; padding: 0; }
.attach-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  margin-top: 6px;
  border: 1px solid #e3e8f0;
  border-radius: 6px;
  background: #ffffff;
  font-size: 14px;
}
.attach-list li > i { color: #8a94a6; }
.attach-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #192755; font-weight: 600; }
.attach-size { color: #8a94a6; font-size: 13px; white-space: nowrap; }
/* The theme styles every contact-form button as a large pill (with a !important border), so reset it here */
.contact-area .contact-forms .attach-remove {
  border: 0 !important;
  border-radius: 50%;
  background: transparent;
  color: #a0a8b8;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  cursor: pointer;
}
.contact-area .contact-forms .attach-remove:hover { background: #fdecef; color: #c0254d; }
.attach-list li.attach-error { border-color: #f5c2cd; background: #fdecef; color: #c0254d; font-weight: 600; }

/* ---------- Terms / Privacy / Support pages ---------- */
body.info-page {
  font-family: 'Nunito', sans-serif;
  color: #4a5568;
  background: #ffffff;
  font-size: 16px;
}

.info-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #edf0f6;
}

.info-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.info-logo img { max-height: 38px; }

.info-header nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

.info-header nav a {
  padding: 6px 14px;
  border-radius: 20px;
  color: #192755;
  font-weight: 700;
  font-size: 14px;
}

.info-header nav a:hover { background: #f4f6fb; text-decoration: none; }
.info-header nav a.active { background: #192755; color: #ffffff; }
.info-header nav a.info-home { color: #e18d00; }

.info-hero {
  background: linear-gradient(135deg, #192755 0%, #24366f 100%);
  color: #c9d1e6;
  padding: 64px 0 56px;
}

.info-hero h1 { color: #ffffff; font-weight: 800; font-size: 40px; margin: 0 0 12px; }
.info-hero .lead { max-width: 720px; font-size: 18px; margin-bottom: 0; }
.info-updated { margin: 18px 0 0; font-size: 14px; color: #f2b63d; font-weight: 700; }

.info-main { max-width: 860px; padding-top: 48px; padding-bottom: 64px; }

.info-content h2 {
  font-size: 21px;
  font-weight: 800;
  color: #192755;
  margin: 36px 0 12px;
}

.info-content h2:first-child { margin-top: 0; }
.info-content p, .info-content li { line-height: 1.75; }
.info-content ul { padding-left: 22px; margin-bottom: 1rem; }
.info-content li { margin-bottom: 6px; }
.info-content li::marker { color: #e18d00; }

.info-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}

.info-contact {
  border: 1px solid #edf0f6;
  border-radius: 12px;
  padding: 22px;
  box-shadow: 0 10px 30px -20px rgba(25, 39, 85, 0.35);
}

.info-contact i {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff4e0;
  color: #e18d00;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.info-contact h3 { font-size: 16px; font-weight: 800; color: #192755; margin: 0 0 6px; }
.info-contact a, .info-contact span { display: block; color: #4a5568; font-weight: 600; }
.info-contact a:hover { color: #e18d00; text-decoration: none; }
.info-email { user-select: all; }

.info-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 44px; }

.info-btn {
  background: #e18d00;
  border: 2px solid #e18d00;
  color: #ffffff;
  border-radius: 30px;
  padding: 10px 24px;
  font-weight: 700;
}

.info-btn:hover { background: #c97e00; border-color: #c97e00; color: #ffffff; }
.info-btn.outline { background: transparent; color: #192755; border-color: #192755; }
.info-btn.outline:hover { background: #192755; color: #ffffff; }
.info-btn i { margin-right: 6px; }

.info-footer { background: #121c3f; color: #8d99bd; padding: 22px 0; font-size: 14px; }
.info-footer .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.info-footer p { margin: 0; }
.info-footer a { color: #f2b63d; }
.info-footer nav a { color: #c9d1e6; margin-left: 18px; }
.info-footer nav a:first-child { margin-left: 0; }

@media (max-width: 767px) {
  .info-header { position: static; }
  .info-header .container { flex-direction: column; align-items: flex-start; padding-top: 12px; padding-bottom: 12px; }
  .info-header nav a { padding: 5px 10px; }
  .info-hero { padding: 40px 0 36px; }
  .info-hero h1 { font-size: 30px; }
  .info-main { padding-top: 32px; }
}

/* ---------- Book an Appointment modal ---------- */
.appointment-modal .modal-content {
  border: none;
  border-radius: 12px;
  box-shadow: 0 30px 80px -20px rgba(25, 39, 85, 0.45);
}

.appointment-modal .modal-header {
  align-items: flex-start;
  padding: 24px 28px 14px;
  border-bottom: 1px solid #edf0f6;
}

.appointment-modal .modal-title {
  margin: 0;
  font-weight: 800;
  color: #192755;
}

.appointment-modal .modal-title i {
  color: #e18d00;
  margin-right: 6px;
}

.appointment-modal .appointment-intro {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.5;
}

.appointment-modal .modal-body {
  padding: 20px 28px 6px;
}

.appointment-modal label {
  font-size: 13px;
  font-weight: 700;
  color: #192755;
  margin-bottom: 4px;
}

.appointment-modal .form-control {
  height: auto;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #dfe4ee;
  border-radius: 6px;
  box-shadow: none;
  font-size: 15px;
}

.appointment-modal .form-control:focus {
  border-color: #e18d00;
}

.appointment-modal .modal-footer {
  padding: 14px 28px 24px;
  border-top: none;
}

.appointment-modal .contact-alert {
  margin: 0 0 14px;
}

#appointment-form button[disabled] { opacity: 0.6; cursor: wait; }

@media (max-width: 575px) {
  .appointment-modal .modal-header,
  .appointment-modal .modal-body,
  .appointment-modal .modal-footer { padding-left: 18px; padding-right: 18px; }
}
