/* Vet Imaging Advisors: footer + request-guidance modal (verbatim from the Divi Theme Builder footer).
   Linked at the top of the footer partial; see the note in via.css. */
/* FOOTER CONTAINER */
    .via-global-footer {
        background-color: #1C2F3A; /* Ink Navy */
        color: #F9FAF8; /* Warm White */
        padding: 80px 8% 40px 8%;
        font-family: 'Inter', sans-serif !important;
        border-top: 1px solid rgba(143, 191, 194, 0.2); 
    }

    .via-footer-grid {
        display: grid;
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
        gap: 60px;
        margin-bottom: 60px;
    }

    /* BRAND BLOCK */
    .via-footer-brand img {
        height: 94px;
        width: auto;
        margin-bottom: 25px;
        filter: brightness(0) invert(1); 
    }

    .via-footer-brand p {
        font-size: 0.95rem;
        opacity: 0.7;
        line-height: 1.6;
        max-width: 320px;
    }

    /* LINK COLUMNS */
    .via-footer-col h4 {
        color: #8FBFC2; /* Soft Seafoam */
        text-transform: uppercase;
        letter-spacing: 2px;
        font-size: 0.8rem;
        margin-bottom: 25px;
        font-weight: 800;
    }

    .via-footer-links {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .via-footer-links li {
        margin-bottom: 14px;
    }

    .via-footer-links a {
        color: #F9FAF8;
        text-decoration: none;
        font-size: 0.9rem;
        opacity: 0.7;
        transition: all 0.3s ease;
    }

    .via-footer-links a:hover {
        opacity: 1;
        color: #8FBFC2;
        padding-left: 5px; /* Subtle interaction nudge */
    }

    /* BOTTOM BAR */
    .via-footer-bottom {
        padding-top: 40px;
        border-top: 1px solid rgba(230, 233, 235, 0.1);
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 0.8rem;
        opacity: 0.5;
        letter-spacing: 0.5px;
    }

    .via-legal-links {
        display: flex;
        gap: 30px;
    }

    .via-legal-links a {
        color: #F9FAF8;
        text-decoration: none;
        transition: opacity 0.3s;
    }
    .via-legal-links a:hover { opacity: 1; }

    @media (max-width: 1024px) {
        .via-footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    }

    @media (max-width: 768px) {
        .via-footer-grid { grid-template-columns: 1fr; }
        .via-footer-bottom { flex-direction: column; gap: 20px; text-align: center; }
    }


  /* ============================================================
     MODAL SYSTEM - GLOBAL
     ============================================================ */
  .via-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 20, 26, 0.96);
    backdrop-filter: blur(12px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000000;
  }

  .via-modal-overlay.active {
    display: flex;
  }

  .via-modal-window {
    background: #ffffff;
    width: 95%;
    max-width: 480px;
    padding: 40px;
    border-radius: 4px;
    position: relative;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease-out;
    z-index: 10000001;
    margin-top: 100px;
  }

  @keyframes slideUp {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .via-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
    font-size: 1.5rem;
    color: #1F6F78;
    font-weight: bold;
    background: none;
    border: none;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000002;
  }

  .via-modal-close:hover {
    color: #1C2F3A;
  }

  .via-modal-title {
    color: #1C2F3A;
    margin: 0 0 5px 0;
    font-size: 1.6rem;
    font-weight: 800;
  }

  .via-modal-subtitle {
    opacity: 0.6;
    margin-bottom: 25px;
    font-size: 0.9rem;
  }

  .via-form-row {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
  }

  .via-form-row > div {
    flex: 1;
  }

  .via-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
    margin-bottom: 18px;
  }

  .via-form-group label {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    color: #1C2F3A;
    letter-spacing: 1.5px;
  }

  .via-form-group input,
  .via-form-group select,
  .via-form-group textarea {
    padding: 14px;
    border: 1px solid #E6E9EB;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 1rem;
  }

  .via-form-group input:focus,
  .via-form-group select:focus,
  .via-form-group textarea:focus {
    outline: none;
    border-color: #1F6F78;
    box-shadow: 0 0 0 3px rgba(31, 111, 120, 0.1);
  }

  .via-submit-button {
    background: #1C2F3A;
    color: #fff;
    padding: 20px;
    border: none;
    border-radius: 4px;
    font-weight: 800;
    text-transform: uppercase;
    width: 100%;
    cursor: pointer;
    letter-spacing: 3px;
    transition: all 0.3s ease;
    margin-top: 10px;
  }

  .via-submit-button:hover:not(:disabled) {
    background: #1F6F78;
  }

  .via-submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
  }

  .via-success-state {
    display: none;
    text-align: center;
    padding: 20px 0;
  }

  .via-success-state.active {
    display: block;
  }

  .via-success-icon {
    font-size: 4rem;
    color: #1F6F78;
    margin-bottom: 15px;
  }

  .via-success-title {
    font-size: 1.6rem;
    color: #1C2F3A;
    margin-bottom: 10px;
    font-weight: 800;
  }

  .via-success-message {
    opacity: 0.7;
    margin-bottom: 25px;
  }

  .via-error-message {
    background: #FEE;
    border: 1px solid #FCC;
    color: #C33;
    padding: 12px 15px;
    border-radius: 4px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    display: none;
  }

  .via-error-message.active {
    display: block;
  }
