/* Backup “final professional footer” + lead modal + floating + scroll-top */

.site-footer {
  margin-top: 0;
  position: relative;
  color: #334155;
  background:
    radial-gradient(circle at 82% 8%, rgba(147, 190, 106, 0.3), transparent 34%),
    linear-gradient(145deg, #e8efcc 0%, #dfe7bd 100%);
}

.footer-cta {
  border: 1px solid #d6dfb2;
  border-bottom: 0;
  border-radius: 0;
  padding: 0;
  overflow: visible;
  background: transparent;
}

.footer-cta .container {
  width: min(1240px, calc(100% - 32px));
}

.footer-cta-grid {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  align-items: center;
  gap: 30px;
  min-height: 280px;
  padding: 28px 0 0px;
}

.footer-cta-copy {
  padding-top: 8px;
  max-width: 600px;
}

.footer-cta-copy h2 {
  margin: 0 0 10px;
  max-width: 560px;
  color: #0f172a;
  font-size: clamp(2rem, 1.3rem + 1.2vw, 3rem);
  line-height: 1.15;
}

.footer-cta-copy p {
  margin: 0 0 18px;
  max-width: 560px;
  color: #334155;
  font-size: 1rem;
  line-height: 1.65;
}

.footer-cta-copy .btn {
  border: 1px solid #f48153;
  background: linear-gradient(135deg, #ff5d1f, #ec6734);
  color: #fff;
  box-shadow: 0 14px 26px rgba(255, 93, 31, 0.28);
}

.footer-cta-copy .btn:hover {
  background: linear-gradient(135deg, #f25417, #dd5e2f);
  color: #fff;
}

.footer-avatar {
  min-height: 315px;
  border-radius: 0;
  background-image: url("../../images/footer-image.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: right bottom;
}

.footer-main {
  width: min(1240px, calc(100% - 56px));
  margin: -1px auto 0;
  padding: 26px 16px 14px;
  background: #ffffff;
  border: 1px solid #e5e9ef;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -10px 30px rgba(15, 23, 42, 0.06);
}

.footer-main .container {
  width: 100%;
  max-width: none;
  padding-inline: 0;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 20px;
}

.footer-brand-col {
  min-width: 0;
}

.footer-logo {
  width: 188px;
  max-width: 100%;
  height: auto;
  margin-bottom: 8px;
  display: block;
}

.footer-note {
  margin: 0 0 8px;
  color: #475569;
  line-height: 1.55;
  font-size: 0.92rem;
}

.footer-address {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.6;
  color: #64748b;
}

.footer-links-grid h3 {
  font-size: 0.98rem;
  color: #0f172a;
  margin: 0 0 11px;
}

.footer-links-grid a {
  display: block;
  margin-bottom: 6px;
  color: #475569;
  text-decoration: none;
  font-size: 0.86rem;
  line-height: 1.5;
  transition: color 0.15s ease;
}

.footer-links-grid a:hover {
  color: #ff4600;
}

.footer-bottom {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #e8edf4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.84rem;
  color: #475569;
}

.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-legal-links a {
  font-size: 0.82rem;
  color: #475569;
  text-decoration: none;
}

.footer-legal-links a:hover {
  color: var(--brand-orange);
}

/* ── Modern Premium Floating Action Stack (Right Side) ── */
.floating-contact {
  position: fixed;
  right: 20px;
  top: 55%;
  transform: translateY(-50%);
  z-index: 280;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.float-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px;
  border-radius: 999px;
  color: #ffffff;
  text-decoration: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.22);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
  max-width: 50px;
  height: 50px;
  box-sizing: border-box;
}

.float-btn.whatsapp {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
}

.float-btn.call {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  box-shadow: 0 8px 24px rgba(234, 88, 12, 0.4);
}

.float-btn .float-icon {
  width: 38px;
  height: 38px;
  min-width: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  transition: transform 0.3s ease, background 0.3s ease;
}

.float-btn .float-icon svg {
  width: 20px;
  height: 20px;
}

.float-btn .float-text {
  font-size: 0.85rem;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  padding-right: 14px;
}

.float-btn:hover {
  max-width: 200px;
  padding-right: 4px;
  transform: translateY(-3px) scale(1.04);
}

.float-btn.whatsapp:hover {
  box-shadow: 0 14px 35px rgba(37, 211, 102, 0.55);
}

.float-btn.call:hover {
  box-shadow: 0 14px 35px rgba(234, 88, 12, 0.55);
}

.float-btn:hover .float-icon {
  transform: rotate(12deg) scale(1.1);
  background: rgba(255, 255, 255, 0.32);
}

.float-btn:hover .float-text {
  opacity: 1;
  transform: translateX(0);
}

.lead-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: none;
}

.lead-modal.is-open {
  display: block;
}

.lead-overlay {
  position: absolute;
  inset: 0;
  background: rgba(2, 8, 23, 0.62);
  backdrop-filter: blur(3px);
}

.lead-dialog {
  position: relative;
  width: min(560px, calc(100% - 24px));
  margin: 5vh auto 0;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 34px 70px rgba(2, 8, 23, 0.38);
  overflow: hidden;
  font-family: inherit;
}

.lead-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #e5e7eb;
  background: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: #475569;
  z-index: 10;
  display: grid;
  place-items: center;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.lead-close:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}

.lead-simple {
  padding: 0;
}

.lead-header {
  padding: 22px 24px 18px;
  text-align: center;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
}

.lead-header__title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 6px;
}

.lead-header__icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  flex-shrink: 0;
}

.lead-header__icon svg {
  width: 22px;
  height: 22px;
}

.lead-simple h3 {
  margin: 0;
  font-size: clamp(1.35rem, 1.1rem + 0.6vw, 1.7rem);
  line-height: 1.2;
  color: #fff;
  font-weight: 700;
}

.lead-subtitle {
  margin: 0;
  color: #cbd5e1;
  font-size: 0.9rem;
  line-height: 1.55;
}

.lead-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 24px;
}

.lead-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.lead-field label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #334155;
  letter-spacing: 0.2px;
}

.lead-field.full,
.lead-submit {
  grid-column: 1 / -1;
}

.lead-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
}

.lead-input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: #64748b;
  pointer-events: none;
  z-index: 2;
  transition: color 0.2s ease;
}

.lead-input-icon.lead-input-icon--area {
  top: 14px;
  transform: none;
}

.lead-input-icon svg {
  width: 100%;
  height: 100%;
}

.lead-field input,
.lead-field select,
.lead-field textarea {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  padding: 12px 12px 12px 40px;
  font-size: 0.94rem;
  font-family: inherit;
  color: #1f2937;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
}

.lead-field select {
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  cursor: pointer;
}

.lead-field select:invalid {
  color: #9ca3af;
}

.lead-field textarea {
  min-height: 88px;
  resize: vertical;
}

.lead-field input::placeholder,
.lead-field textarea::placeholder {
  color: #9ca3af;
}

.lead-field input:focus,
.lead-field select:focus,
.lead-field textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.lead-field select:focus {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}

.lead-input-wrap:focus-within .lead-input-icon {
  color: #2563eb;
}

.lead-form-message {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
}

.lead-form-message.lead-form-message--ok {
  color: #15803d;
}

.lead-form-message.lead-form-message--error {
  color: #b91c1c;
}

.lead-submit {
  border: 0;
  border-radius: 12px;
  padding: 14px 18px;
  background: linear-gradient(135deg, #ff5d1f, #ec6734);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 10px 24px rgba(255, 93, 31, 0.32);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.lead-submit svg {
  width: 18px;
  height: 18px;
}

.lead-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(255, 93, 31, 0.38);
  filter: brightness(1.05);
}

.lead-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.lead-footnote {
  margin: 12px 0 0;
  color: #64748b;
  text-align: center;
  font-size: 0.74rem;
  line-height: 1.45;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .lead-footnote {
    white-space: normal;
  }
}

.scroll-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 250;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--brand-orange);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(255, 70, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.2s ease;
}

.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .footer-links-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .footer-brand-col {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .footer-cta-grid {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 18px;
    padding-top: 18px;
  }

  .footer-avatar {
    min-height: 210px;
    border-radius: 12px;
    background-position: center bottom;
  }

  .footer-main {
    width: min(1240px, calc(100% - 22px));
    padding-inline: 14px;
  }

  .footer-links-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px 16px;
  }

  .footer-brand-col {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (max-width: 560px) {
  .footer-links-grid {
    grid-template-columns: 1fr 1fr;
    gap: 22px 14px;
  }

  .footer-brand-col {
    grid-column: 1 / -1;
    margin-bottom: 6px;
  }

  .footer-links-grid h3 {
    font-size: 0.92rem;
    margin-bottom: 8px;
  }

  .footer-links-grid a {
    font-size: 0.82rem;
    margin-bottom: 5px;
  }

  .footer-legal-links {
    width: 100%;
    flex-wrap: wrap;
    gap: 10px;
  }
}

@media (max-width: 900px) {
  .floating-contact {
    top: auto;
    bottom: 80px;
    right: 16px;
    transform: none;
  }

  .float-btn {
    max-width: 44px;
    height: 44px;
    padding: 4px;
  }

  .float-btn .float-icon {
    width: 34px;
    height: 34px;
    min-width: 34px;
  }

  .float-btn .float-icon svg {
    width: 18px;
    height: 18px;
  }

  .float-btn .float-text {
    display: none;
  }

  .float-btn:hover {
    max-width: 44px;
    transform: scale(1.08);
  }
}

@media (max-width: 640px) {
  .footer-main {
    padding: 22px 12px 12px;
  }

  .lead-header {
    padding: 20px 18px 16px;
  }

  .lead-header__title-row {
    gap: 10px;
  }

  .lead-header__icon {
    width: 36px;
    height: 36px;
  }

  .lead-header__icon svg {
    width: 20px;
    height: 20px;
  }

  .lead-simple h3 {
    font-size: 1.25rem;
  }

  .lead-form {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px;
  }

  .lead-simple {
    padding: 0;
  }
}

/* ── Matched Universities Pop-Up Modal ── */
.matched-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: none;
}

.matched-modal.is-open {
  display: block;
}

.matched-overlay {
  position: absolute;
  inset: 0;
  background: rgba(2, 8, 23, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.matched-dialog {
  position: relative;
  width: min(680px, calc(100% - 24px));
  max-height: 88vh;
  margin: 4vh auto 0;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 30px 80px rgba(2, 8, 23, 0.4);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: matchedModalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes matchedModalSlideUp {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.matched-close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-size: 1.4rem;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
}

.matched-close:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: scale(1.08);
}

.matched-header {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  padding: 24px 24px 20px;
  color: #ffffff;
}

.matched-badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(34, 197, 94, 0.2);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #4ade80;
  border-radius: 50px;
  font-size: 0.76rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.matched-header h2 {
  margin: 0 0 6px;
  font-size: clamp(1.2rem, 1rem + 1vw, 1.5rem);
  color: #ffffff;
}

.matched-header p {
  margin: 0;
  color: #94a3b8;
  font-size: 0.86rem;
  line-height: 1.4;
}

.matched-body {
  padding: 18px 20px;
  overflow-y: auto;
  flex: 1;
  max-height: 52vh;
}

.matched-results-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.matched-uni-card {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 14px 16px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
  transition: all 0.25s ease;
}

.matched-uni-card:hover {
  border-color: #ea580c;
  box-shadow: 0 8px 20px rgba(234, 88, 12, 0.12);
  transform: translateY(-2px);
}

.matched-uni-info h4 {
  margin: 0 0 4px;
  font-size: 0.96rem;
  color: #0f172a;
  font-weight: 700;
}

.matched-uni-tags {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.matched-tag-fee {
  font-size: 0.8rem;
  font-weight: 700;
  color: #ea580c;
  background: #fff7ed;
  padding: 2px 8px;
  border-radius: 6px;
}

.matched-tag-sch {
  font-size: 0.76rem;
  font-weight: 700;
  color: #16a34a;
  background: #f0fdf4;
  padding: 2px 8px;
  border-radius: 6px;
}

.matched-tag-acc {
  font-size: 0.74rem;
  color: #64748b;
}

.matched-uni-cta {
  padding: 8px 16px;
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.82rem;
  border-radius: 50px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.3);
  transition: all 0.2s ease;
}

.matched-uni-cta:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(234, 88, 12, 0.45);
}

.matched-footer {
  border-top: 1px solid #e2e8f0;
  padding: 14px 20px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.matched-footer-info {
  display: flex;
  flex-direction: column;
  font-size: 0.78rem;
  color: #475569;
}

.matched-footer-info strong {
  color: #0f172a;
}

.matched-footer-info a {
  color: #ea580c;
  text-decoration: none;
}

.btn-matched-done {
  padding: 8px 16px;
  font-size: 0.82rem;
  border-radius: 10px;
}

@media (max-width: 580px) {
  .matched-dialog {
    margin: 2vh auto 0;
    max-height: 94vh;
    border-radius: 20px;
  }

  .matched-uni-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .matched-uni-cta {
    width: 100%;
    text-align: center;
  }

  .matched-footer {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
}
