/* Advantage IELTS Lead Capture Pop-Up */
:root {
  --bt-popup-orange: #f56c17;
  --bt-popup-orange-hover: #e57412;
  --bt-popup-blue: #1e63b3;
  --bt-popup-navy: #0f2d4d;
  --bt-popup-sky: #2b9bd6;
  --bt-popup-text: #1a2b3c;
  --bt-popup-muted: #5a6a7a;
  --bt-popup-placeholder: #9aa5b1;
  --bt-popup-border: #d8dee6;
  --bt-popup-border-hover: #c5cdd8;
  --bt-popup-dropdown-hover: #e8f3fb;
  --bt-popup-radius-lg: 20px;
  --bt-popup-radius-sm: 8px;
  --bt-popup-font: 'Roboto', system-ui, -apple-system, sans-serif;
}

body.bt-popup-demo {
  font-family: var(--bt-popup-font);
  background: #eef2f6;
  color: var(--bt-popup-text);
  line-height: 1.5;
  margin: 0;
}

body.bt-popup-open {
  overflow: hidden;
}

.bt-popup-open-btn {
  background: var(--bt-popup-orange);
  color: #fff;
  font-family: var(--bt-popup-font);
  font-weight: 700;
  padding: 12px 24px;
  border: none;
  border-radius: var(--bt-popup-radius-sm);
  cursor: pointer;
  font-size: 15px;
  margin: 40px auto;
  display: block;
  box-shadow: 0 4px 14px rgba(245, 130, 32, 0.3);
}

.bt-popup-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(3px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.bt-popup-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.bt-popup-card {
  position: relative;
  width: 100%;
  max-width: 920px;
  min-height: 520px;
  background: #ffffff;
  border-radius: var(--bt-popup-radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.28);
  display: flex;
  flex-direction: row;
  overflow: hidden;
  transform: scale(0.96) translateY(8px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.bt-popup-overlay.is-active .bt-popup-card {
  transform: scale(1) translateY(0);
}

.bt-popup-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8a97a5;
  z-index: 30;
  pointer-events: auto;
}

.bt-popup-close:hover {
  background-color: #f1f5f9;
  color: #334155;
}

/* Left panel */
.bt-popup-left {
  width: 48%;
  background-color: #d9ecf8;
  background-image: url('../images/popup_left_img.png');
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  padding: 18px 16px 16px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.bt-popup-testimonial {
  position: relative;
  z-index: 3;
  background: #ffffff;
  border-radius: 14px;
  padding: 12px 14px 10px;
  box-shadow: 0 8px 22px rgba(15, 76, 129, 0.12);
  border: 1px solid #eef2f6;
}

.bt-popup-testimonial__body {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.bt-popup-testimonial__avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.bt-popup-testimonial__content {
  flex: 1;
  min-width: 0;
}

.bt-popup-testimonial__quote-wrap {
  display: flex;
  gap: 4px;
}

.bt-popup-testimonial__quote-mark {
  color: #7eb8e8;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 28px;
  line-height: 0.75;
  flex-shrink: 0;
  margin-top: 2px;
}

.bt-popup-testimonial__quote {
  font-size: 12px;
  font-style: italic;
  color: #2c3e50;
  font-weight: 500;
  line-height: 1.35;
  margin: 0;
}

.bt-popup-testimonial__name {
  font-size: 12px;
  font-weight: 700;
  color: #1a2b3c;
  line-height: 1;
  margin-top: 7px;
}

.bt-popup-testimonial__band {
  font-size: 12px;
  font-weight: 800;
  color: var(--bt-popup-orange);
  margin-top: 3px;
}

.bt-popup-testimonial__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
  padding-top: 8px;
}

.bt-popup-dot {
  border: none;
  background: #c9d4de;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease;
}

.bt-popup-dot.is-active {
  background: var(--bt-popup-sky);
}

/* Right panel */
.bt-popup-right {
  width: 52%;
  padding: 36px 40px 32px 32px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-family: var(--bt-popup-font);
}

.bt-popup-headline {
  font-size: 30px;
  font-weight: 700;
  color: var(--bt-popup-navy);
  line-height: 1.28;
  letter-spacing: -0.02em;
  padding-right: 20px;
  margin: 0;
}

.bt-popup-headline__accent {
  color: var(--bt-popup-blue);
}

.bt-popup-subtext {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 13px;
  color: #3d4f60;
  font-weight: 500;
}

.bt-popup-subtext svg {
  flex-shrink: 0;
}

.bt-popup-form {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bt-popup-dropdown {
  position: relative;
  width: 100%;
}

.bt-popup-dropdown__trigger {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--bt-popup-border);
  border-radius: var(--bt-popup-radius-sm);
  padding: 13px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s ease;
}

.bt-popup-dropdown__trigger:hover {
  border-color: var(--bt-popup-border-hover);
}

.bt-popup-dropdown__text {
  color: var(--bt-popup-text);
  font-weight: 500;
}

.bt-popup-dropdown__text.is-placeholder {
  color: var(--bt-popup-placeholder);
  font-weight: 400;
}

.bt-popup-dropdown__chevron {
  color: #9aa5b1;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.bt-popup-dropdown.is-open .bt-popup-dropdown__chevron {
  transform: rotate(180deg);
}

.bt-popup-dropdown__menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid var(--bt-popup-border);
  border-radius: var(--bt-popup-radius-sm);
  box-shadow: 0 10px 28px -4px rgba(0, 0, 0, 0.14);
  z-index: 50;
  padding: 6px 0;
  display: none;
}

.bt-popup-dropdown.is-open .bt-popup-dropdown__menu {
  display: block;
}

.bt-popup-dropdown__option {
  width: 100%;
  padding: 11px 14px;
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--bt-popup-text);
  text-align: left;
  cursor: pointer;
}

.bt-popup-dropdown__option:hover,
.bt-popup-dropdown__option.is-selected {
  background-color: var(--bt-popup-dropdown-hover);
  color: var(--bt-popup-blue);
}

.bt-popup-field {
  position: relative;
  width: 100%;
}

.bt-popup-field__icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #9aa5b1;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

 .material-symbols-outlined {
  font-size: 20px;
  line-height: 1;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.bt-popup-input {
  width: 100%;
  padding: 13px 14px 13px 42px;
  background: #ffffff;
  border: 1px solid var(--bt-popup-border);
  border-radius: var(--bt-popup-radius-sm);
  font-family: inherit;
  font-size: 14px;
  color: var(--bt-popup-text);
  outline: none;
  box-sizing: border-box;
}

.bt-popup-input:focus {
  border-color: #a8c4e0;
}

.bt-popup-input::placeholder {
  color: var(--bt-popup-placeholder);
}

.bt-popup-phone {
  display: flex;
  width: 100%;
  border: 1px solid var(--bt-popup-border);
  border-radius: var(--bt-popup-radius-sm);
  background: #ffffff;
  overflow: hidden;
  box-sizing: border-box;
}

.bt-popup-phone:focus-within {
  border-color: #a8c4e0;
}

.bt-popup-phone__country {
  background: transparent;
  border: none;
  border-right: 1px solid var(--bt-popup-border);
  padding: 0 12px;
  display: flex;
  align-items: center;
  cursor: pointer;
  flex-shrink: 0;
}

.bt-popup-phone__flag {
  font-size: 18px;
  line-height: 1;
}

.bt-popup-phone__input {
  flex: 1;
  border: none;
  padding: 13px 14px;
  font-family: inherit;
  font-size: 14px;
  color: var(--bt-popup-text);
  outline: none;
  min-width: 0;
}

.bt-popup-phone__input::placeholder {
  color: var(--bt-popup-placeholder);
}

.bt-popup-country-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: 220px;
  max-height: 200px;
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid var(--bt-popup-border);
  border-radius: var(--bt-popup-radius-sm);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  z-index: 60;
  display: none;
  padding: 4px 0;
}

.bt-popup-country-menu.is-open {
  display: block;
}

.bt-popup-country-option {
  width: 100%;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 12.5px;
  cursor: pointer;
}

.bt-popup-country-option:hover {
  background: var(--bt-popup-dropdown-hover);
}

.bt-popup-submit {
  width: 100%;
  background-color: var(--bt-popup-orange);
  color: #ffffff;
  font-family: inherit;
  font-weight: 400;
  font-size: 17px;
  padding: 14px 20px;
  border: none;
  border-radius: var(--bt-popup-radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
  box-shadow: 0 6px 16px rgba(245, 130, 32, 0.28);
  transition: background-color 0.15s ease;
}

.bt-popup-submit:hover {
  background-color: var(--bt-popup-orange-hover);
}

.bt-popup-submit.is-success {
  background-color: #16a34a;
}

.bt-popup-dropdown.is-error .bt-popup-dropdown__trigger,
.bt-popup-field.is-error .bt-popup-input {
  border-color: #ef4444;
}

.bt-popup-error-msg {
  display: none;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 500;
  color: #ef4444;
}

.bt-popup-dropdown.is-error .bt-popup-error-msg,
.bt-popup-field.is-error .bt-popup-error-msg {
  display: block;
}

@media (max-width: 768px) {
  .bt-popup-card {
    flex-direction: column;
    max-height: 92vh;
    overflow-y: auto;
    min-height: 0;
  }

  .bt-popup-left {
    width: 100%;
    min-height: 360px;
  }

  .bt-popup-right {
    width: 100%;
    padding: 24px 20px 28px;
  }

  .bt-popup-headline {
    font-size: 20px;
    padding-right: 24px;
  }
}
