/* =========================================================
   GetAdvice page styles.
   Loaded after styles/global.css on GetAdvice.html only.
   ========================================================= */

/* Define colours for site*/
:root {
  --bs-body-font-family: "Poppins", sans-serif;
  --orange: #ff8f00;
  --blue: #00205c;
  --light-orange: #ff8f0033;
  --light-blue-grad: linear-gradient( 135deg, rgba(92, 125, 184, 0.10), rgba(92, 125, 184, 0.01) );
  --side-left: clamp(80px, 10vw, 100px);
  --page-margin: 88px;
  --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.15);
  --border-radius: 12px;
  --transition: all 0.3s ease;
}

@media (max-width: 1599px) and (min-width: 992px) {
  :root {
    --page-margin: 40px!important;
  }
}

/* SECTION */
.advice-section {
  padding: 80px 0;
}

/* LEFT SIDE */
.advice-heading {
  font-size: 2.2rem;
  margin-bottom: 20px;
  color: var(--primary-blue);
}

.advice-text {
  color: var(--blue);
}

/* GLASS CARD */
.advice-glass-card {
  border-radius: 20px;
  padding: 30px;
  background: var(--light-blue-grad);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* CARD TITLE */
.advice-card-title {
  margin-bottom: 20px;
}

/* LIST */
.advice-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.advice-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.advice-list-icon {
  width: 60px;
  height: auto;
  margin-top: 3px;
}

/* FORM */
.advice-form {
  width: 100%;
  height: 600px;
  border: none;
}

/* GLASS CARD */
.advice-form-glass {
  padding: 30px;
  border-radius: 20px;
  width: 70%;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}

/* FORM CONTAINER FIXES */
.advice-pipedrive {
  width: 100%;
}

/* 🔥 FORCE PIPEDRIVE TO BEHAVE */
.advice-pipedrive iframe {
  width: 100% !important;
  min-height: 500px;
  border: none;
}

/* remove weird spacing pipedrive sometimes adds */
.advice-pipedrive > div {
  width: 100% !important;
}

@media (max-width: 991px) {
  /* MOBILE */
  .advice-form-glass {
    margin-top: 30px;
  }

  /* RESPONSIVE */
  .advice-left {
    margin-bottom: 40px;
  }

  .advice-form {
    height: 500px;
    margin: 0!important;
    padding: 0!important;
  }

  /* =========================================
     MOBILE RESPONSIVE FIXES
     ========================================= */
  /* overall spacing */
  .advice-section {
    padding: 20px 15px 40px;
  }

  /* stack columns nicely */
  .advice-section .row {
    flex-direction: column;
  }

  /* LEFT SIDE */
  .advice-left {
    width: 100%;
    padding: 0;
    margin-bottom: 30px;
    text-align: center;
  }

  /* heading */
  .advice-heading {
    font-size: clamp(2rem, 7vw, 3rem);
    line-height: 1.15;
    margin-top: 100px !important;
    margin-bottom: 0px;
  }

  /* intro text */
  .advice-text {
    font-size: 1rem;
    line-height: 1.7;
    padding: 0 5px;
  }

  /* glass card */
  .advice-glass-card {
    margin-top: 25px !important;
    padding: 25px 20px;
    border-radius: 18px;
  }

  /* list items */
  .advice-list-item {
    align-items: flex-start;
    text-align: left;
    gap: 12px;
    margin-bottom: 20px;
  }

  /* icons */
  .advice-list-icon {
    width: 50px;
    flex-shrink: 0;
  }

  /* list text */
  .advice-list-item h3 {
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
  }

  /* RIGHT SIDE FORM */
  .advice-right {
    width: 100%;
    padding: 0;
    margin-top: 10px;
  }

  /* form glass */
  .advice-form-glass {
    width: 100%;
    padding: px 15px;
    border-radius: 20px;
    margin-top: 10px;
  }

  /* pipedrive form iframe/forms */
  .advice-pipedrive,
  .advice-pipedrive iframe {
    width: 100% !important;
    max-width: 100% !important;
  }

  .advice-section .row {
    display: flex;
    flex-direction: column;
  }

  /* LEFT COLUMN */
  .advice-left {
    display: contents;
  }

  /* heading first */
  .advice-heading {
    order: 1;
  }

  /* form second */
  .advice-right {
    order: 2;
    margin: 25px 0;
  }

  /* info content third */
  .advice-text,
  .advice-glass-card {
    order: 3;
  }
}

@media (max-width: 1599px) and (min-width: 992px) {
  /* =========================================
     LAPTOP + HORIZONTAL TABLET
     ========================================= */
  .advice-section {
    padding: 60px 0;
  }

  /* heading scales down slightly */
  .advice-heading {
    font-size: 1.9rem;
    line-height: 1.2;
    margin-bottom: 15px;
  }

  .advice-text {
    font-size: 0.98rem;
    line-height: 1.7;
  }

  /* glass card tighter */
  .advice-glass-card {
    padding: 25px;
  }

  /* list icons slightly smaller */
  .advice-list-icon {
    width: 50px;
  }

  /* form area wider */
  .advice-form-glass {
    width: 100%;
    padding: 25px;
    transform: translateY(-15%);
  }

  /* iframe not ridiculously tall */
  .advice-form {
    height: 500px;
  }

  .advice-pipedrive iframe {
    min-height: 500px;
  }

  .advice-left {
    width: 50%;
  }

  .advice-right {
    width: 50%;
    transform: scale(0.7);
  }

  .advice-form-glass {
    width: 90%;
  }

  .align-items-center {
    align-items: flex-start !important;
  }

  .advice-section {
    padding: 0px 0;
  }
}
