/* ============================= */
/* CUSTOM MOBILE LANDING DESIGN */
/* ============================= */
/* ===== FORCE FULL WIDTH FIX ===== */

@media (max-width: 768px) {

  html, body {
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
  }

  #container {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 auto !important;
  }

  #landing_page {
    width: 100% !important;
    margin: 0 !important;
  }

}

.mobile-landing {
    display: flex;
    justify-content: center;
    padding: 20px 10px;
}

.landing-card {
    width: 100%;
    max-width: 500px;
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    text-align: center;
}

.landing-card h1 {
    font-size: 22px;
    margin-bottom: 15px;
}

.landing-card p {
    font-size: 15px;
    color: #555;
    margin-bottom: 25px;
}

.landing-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-primary,
.btn-secondary {
    display: block;
    padding: 16px;
    font-size: 17px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
}

.btn-primary {
    background: #00a8e8;
    color: #ffffff;
}

.btn-primary:hover {
    background: #007bb0;
}

.btn-secondary {
    background: #8bc34a;
    color: #ffffff;
}

.btn-secondary:hover {
    background: #6aa32f;
}

/* ============================= */
/* MOBILE FIX FOR OPEN.PHP      */
/* ============================= */

@media (max-width: 768px) {

  /* Hide breadcrumb bar */
  .breadcrumb,
  #header .nav {
    display: none !important;
  }

  /* Remove table layout look */
  table.form-table,
  table {
    width: 100% !important;
    border-collapse: collapse !important;
  }

  table.form-table tr,
  table tr {
    display: block !important;
    width: 100% !important;
    margin-bottom: 15px !important;
  }

  table.form-table td,
  table td {
    display: block !important;
    width: 100% !important;
  }

  /* Fix label spacing */
  label {
    display: block !important;
    margin-bottom: 6px !important;
    font-weight: bold;
  }

  /* Make inputs full width */
  input,
  textarea,
  select {
    width: 100% !important;
    box-sizing: border-box !important;
    font-size: 16px !important;
  }

  /* Fix phone + ext layout */
  input[name="phone"],
  input[name="ext"] {
    width: 100% !important;
    margin-bottom: 10px !important;
  }

  /* Better spacing */
  h1, h2 {
    font-size: 20px !important;
  }

}

/* ============================= */
/* MOBILE FIX FOR LOGIN.PHP     */
/* ============================= */

@media (max-width: 768px) {

  /* Hide breadcrumb */
  .breadcrumb {
    display: none !important;
  }

  /* Make login box full width */
  .login-box,
  .login-body,
  .login-wrapper {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Remove table layout */
  table {
    width: 100% !important;
  }

  table tr,
  table td {
    display: block !important;
    width: 100% !important;
  }

  /* Stack left and right columns */
  .login-box td {
    width: 100% !important;
  }

  /* Fix form fields */
  input,
  textarea,
  select {
    width: 100% !important;
    box-sizing: border-box !important;
    font-size: 16px !important;
  }

  /* Better spacing */
  .login-box {
    padding: 15px !important;
  }

  /* Improve button */
  input[type="submit"],
  button {
    width: 100% !important;
    padding: 14px !important;
    font-size: 16px !important;
  }

}