/* =====================================================
   myFMC X4.0 - Main Stylesheet
   Cleaned + Structured
===================================================== */

/* ================= GLOBAL ================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background: linear-gradient(to bottom, #cfefff, #e6f7ff);
}

/* ================= NAVIGATION ================= */

.nav {
  background: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.logo {
  height: 50px;
}

/* Nav links: default plain */
.nav-menu a {
  color: #001f4d;
  text-decoration: none;
  margin-left: 25px;
  font-weight: normal; /* changed from bold */
}

.fmc-bold {
    font-weight: bold !important;
   /* font-size: 18px !important;  */
}

.sos-link {
  color: red !important;
  margin-left: 25px;
  font-weight: bold;
}

/* ================= DROPDOWN ================= */

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

.dropdown-content {
  display: none;
  position: absolute;
  background: #fff;
  min-width: 220px;
  padding: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  z-index: 100;
}

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

.dropdown-content a {
  display: block;
  margin: 8px 0;
  padding: 6px 8px;
  border-radius: 4px;
  color: #001f4d;
  font-weight: normal;
  transition: all 0.2s ease;
}

.dropdown-content a:hover {
  background: #001f4d;
  color: #fff;
}

/* ================= HERO ================= */

.hero {
  height: 350px;
  background: url("/images/hero.jpg") center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  text-shadow: 2px 2px 8px #000;
}

.hero-text {
  position: absolute;
  bottom: 20px;
  left: 30px;
  font-size: 32px;
  text-shadow: 2px 2px 8px #000;
}

/* ================= MAIN LAYOUT ================= */

.main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 20px;
  display: flex;
  gap: 30px;
}

.left-box {
  flex: 2;
  background: #fff;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

.right-boxes {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.small-box {
  background: #fff;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

/* ================= FOOTER ================= */

.footer {
  background: #0b2a4a;
  color: #fff;
  padding: 60px;
  margin-top: 50px;
}

.footer-top {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
}

.footer-top img {
  height: 50px;
}

.footer-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 150px;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-column a {
  color: #d9e6f2;
  text-decoration: none;
  font-size: 14px;
}

.footer-column a:hover {
  color: #fff;
}

/* ================= HAMBURGER ================= */

.hamburger {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: #001f4d;
  margin-left: auto;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 1024px) {

  .nav {
    flex-wrap: wrap;
  }

  .nav-menu {
    display: none;
    width: 100%;
    flex-direction: column;
    margin-top: 20px;
  }

  .nav-menu.active {
    display: flex;
  }

  .hamburger {
    display: block;
  }

  .main {
    flex-direction: column;
  }

}

/* =====================================================
   MANUAL TABLES
===================================================== */

.manual-card {
  background: #ffffff;
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.06);
  margin-bottom: 30px;
}

.manual-title {
  margin-bottom: 20px;
  font-size: 24px;
  font-weight: 600;
  color: #1f2937;
}

.manual-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.manual-table th {
  text-align: left;
  padding: 14px;
  background: #1f2937;
  color: white;
  font-weight: 600;
}

.manual-table td {
  padding: 14px;
  border-bottom: 1px solid #eee;
  vertical-align: top;
}

.manual-table tbody tr:hover {
  background: #f3f6fb;
  transition: 0.2s ease;
}

.manual-table td.success {
  color: #15803d;
  font-weight: 500;
}

.manual-table td.warning {
  color: #b45309;
  font-weight: 500;
}

.manual-table td.danger {
  color: #b91c1c;
  font-weight: 500;
}

/* =====================================================
   MANUAL PORTAL DASHBOARD
===================================================== */

.manual-portal {
  max-width: 1200px;
  margin: 50px auto;
  text-align: center;
}

.portal-title {
  font-size: 34px;
  margin-bottom: 30px;
  color: #1f2937;
}

.portal-search {
  margin-bottom: 40px;
}

.portal-search input {
  width: 100%;
  max-width: 600px;
  padding: 14px 18px;
  border-radius: 30px;
  border: 1px solid #d0d7e2;
  font-size: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  outline: none;
}

.portal-sections {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.portal-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* ================= UPDATED BLUE PORTAL BUTTONS ================= */

.portal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: #4a90e2;
  color: #ffffff;

  padding: 14px 20px;
  border-radius: 8px;

  text-decoration: none;
  font-weight: 600;
  font-size: 15px;

  min-width: 200px;

  transition: all 0.2s ease;

  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.portal-btn:hover {
  background: #2f6fb3;
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}

/* ================= SEARCH BAR ================= */

.manual-search {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 700px;
  margin: 0 auto 40px auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.manual-search input {
  flex: 1;
  padding: 14px 16px;
  border: none;
  outline: none;
  font-size: 16px;
  background: #fff;
}

.manual-search button {
  padding: 14px 20px;
  border: none;
  background: #3a6ea5;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
}

.manual-search button:hover {
  background: #2c5a8c;
}

/* ================= RESPONSIVE PORTAL ================= */

@media (max-width: 768px) {

  .portal-btn {
    min-width: 150px;
    padding: 14px 18px;
  }

  .manual-search {
    flex-direction: column;
  }

  .manual-search button {
    width: 100%;
    margin-top: 10px;
  }

/* ================= INSPECTION HEADER ================= */

.inspection-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  gap: 20px;
  flex-wrap: wrap;
}

.inspection-header .portal-title {
  margin: 0;
  font-size: 28px;
}

/* Push back button to right properly */
.back-btn {
  margin-left: auto;
}

/* Mobile fix */
@media (max-width: 768px) {

  .inspection-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .inspection-header .back-btn {
    align-self: flex-end;
  }

}
/* ===== MODERN CONTACT SECTION ===== */

.contact-hero {
    width: 100%;
    padding: 60px 0;
    background: linear-gradient(135deg, #1e3a8a, #2b6cb0);
    color: #fff;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    max-width: 1300px;
    margin: 0 auto;
    gap: 40px;
    padding: 0 20px;
}

.contact-content {
    flex: 1 1 480px;
    max-width: 540px;
}

.contact-content h1 {
    font-size: 44px;
    margin-bottom: 12px;
    color: #fff;
}

.contact-content p {
    font-size: 18px;
    margin-bottom: 24px;
    opacity: 0.85;
}

/* Alerts */
.alert {
    padding: 12px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 600;
}

.alert.success {
    background: #2f855a;
    color: #e6fffa;
}

.alert.error {
    background: #c53030;
    color: #ffe6e6;
}

/* FORM STYLES */
.modern-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.input-group {
    position: relative;
    margin-top: 12px;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 16px 14px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    background: #f7f8fa;
    color: #333;
    outline: none;
    transition: 0.3s;
}

.input-group label {
    position: absolute;
    top: 16px;
    left: 14px;
    font-size: 16px;
    color: #666;
    pointer-events: none;
    transition: 0.3s;
}

.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label,
.input-group textarea:focus + label,
.input-group textarea:not(:placeholder-shown) + label {
    top: -8px;
    left: 12px;
    font-size: 13px;
    color: #2b6cb0;
}

.input-group input:focus,
.input-group textarea:focus {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

/* Submit */
.btn-submit {
    padding: 14px 32px;
    background: #ff6f61;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
    align-self: flex-start;
}

.btn-submit:hover {
    background: #e65b50;
    transform: translateY(-2px);
}

/* IMAGE SIDE (optional decorative graphic) */
.contact-image {
    flex: 1 1 440px;
    min-height: 320px;
    background: url('/images/contact-background.jpg') center/cover no-repeat;
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(0,0,0,0.2);
}

/* RESPONSIVE */
@media screen and (max-width: 880px) {
    .contact-container {
        flex-direction: column;
    }

    .contact-image {
        width: 100%;
        order: -1;
    }
}