/* ================================================================
   UCIMED Study Abroad
   ================================================================ */

/* ----------------------------------------------------------------
   TOKENS
   ---------------------------------------------------------------- */
:root {
  --navy:        #001f5b;
  --navy-deep:   #060440;
  --navy-mid:    #0a1a4a;
  --gold:        #d4a017;
  --gold-light:  #f0c040;
  --gold-muted:  rgba(240,192,64,.35);
  --white:       #ffffff;
  --off-white:   #f7f8fc;
  --text:        #1c1c2e;
  --text-muted:  #5a5a72;

  --font: 'Roboto', sans-serif;
  --wrap: 1080px;
  --r:    14px;
  --r-sm: 8px;
}

/* ----------------------------------------------------------------
   RESET
   ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html   { scroll-behavior: smooth; font-size: 16px; }
body   { font-family: var(--font); color: var(--text); background: var(--white); overflow-x: hidden; }
img    { display: block; max-width: 100%; height: auto; }
a      { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; }

/* ----------------------------------------------------------------
   UTILITY
   ---------------------------------------------------------------- */
.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* ----------------------------------------------------------------
   ANIMATIONS (own keyframes — no CDN)
   ---------------------------------------------------------------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeLeft {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeRight {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes zoomIn {
  from { opacity: 0; transform: scale(.92); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes shimmer {
  from { background-position: -200% center; }
  to   { background-position:  200% center; }
}
@keyframes wobble {
  0%,100% { transform: translateY(0); }
  20%     { transform: translateY(-6px); }
  40%     { transform: translateY(4px); }
  60%     { transform: translateY(-3px); }
  80%     { transform: translateY(2px); }
}

/* Scroll-reveal — JS adds .in to trigger; direction set by modifier class */
.reveal                    { opacity: 0; }
.reveal.in                 { animation: fadeUp    .65s ease forwards; }
.reveal.in-left.in         { animation: fadeRight .65s ease forwards; }
.reveal.in-right.in        { animation: fadeLeft  .65s ease forwards; }
.reveal.in-zoom.in         { animation: zoomIn    .7s  ease forwards; }

/* Load animations (hero — fire immediately) */
.anim-zoom-in   { animation: zoomIn    .85s ease both; }
.anim-fade-right{ animation: fadeLeft  .7s  ease both; }
.anim-fade-left { animation: fadeRight .7s  ease both; }
.anim-d1        { animation-delay: .25s; }
.anim-d2        { animation-delay: .5s; }
.anim-d3        { animation-delay: .75s; }
.anim-d4        { animation-delay: 1s; }

/* ----------------------------------------------------------------
   HEADER
   ---------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(0,0,0,.08);
}

.header-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding-block: .85rem;
}

.header-cta {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--navy);
  background: transparent;
  border: 2px solid var(--navy);
  border-radius: 6px;
  padding: .45rem 1.1rem;
  transition: background .2s, color .2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.header-cta:hover {
  background: var(--navy);
  color: var(--white);
}

.header-logo { width: 200px; }

.header-nav {
  display: flex;
  align-items: center;
  gap: .25rem;
}

.header-nav a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: var(--navy);
  padding: .45rem .75rem;
  border-radius: var(--r-sm);
  transition: background .2s, color .2s;
}

.header-nav a:hover {
  background: var(--off-white);
  color: var(--gold);
}

.header-tagline {
  background: var(--navy);
  text-align: center;
  padding: .7rem 1.5rem;
  border-top: 2px solid var(--gold);
}

.header-tagline p {
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: .15px;
}

.tagline-years   { color: var(--gold-light); font-weight: 700; }
.tagline-rest    { color: rgba(255,255,255,.85); font-weight: 600; }
.tagline-accent  { color: var(--gold-light); font-weight: 700; }

.header-tagline-bar {
  background: var(--navy);
  text-align: center;
  padding: .9rem 1.5rem;
  border-top: 2px solid rgba(219, 153, 39, 0.9);
}

.header-tagline-text {
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: .1px;
}

/* ----------------------------------------------------------------
   HERO — full-width photo background
   ---------------------------------------------------------------- */
.section-hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  background-image: url('../imgs/hero-2.jpeg');
  background-size: cover;
  background-position: center center;
  overflow: hidden;
}

/* Capa 1: lavado azulado sobre toda la foto (duotono) */
.section-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 40, 130, .55);
  mix-blend-mode: color;
  pointer-events: none;
  z-index: 1;
}

/* Capa 2: gradiente navy → transparente para legibilidad del texto */
.section-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    105deg,
    rgba(0, 15, 70, .92) 0%,
    rgba(0, 25, 90, .75) 40%,
    rgba(0, 30, 100, .30) 72%,
    transparent 100%
  );
}

.hwt-welcome {
  display: block;
  color: var(--white);
}

.ucimed-tittle {
  display: block;
  color: var(--gold-light);
  font-size: 1.70em;
}

.international {
  display: block;
  color: var(--white);
  font-size: 0.95em;
}

.hero-inner {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 3rem;
  padding-block: 5rem;
  width: 100%;
}

/* Left: text + buttons */
.hero-content {
  flex: 0 0 560px;
  max-width: 560px;
}

.hero-label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .75rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.hero-label::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--gold);
  flex-shrink: 0;
}

.hero-welcome-text {
  font-size: 3rem;
  font-weight: 900;
  color: var(--white);
  line-height: .9;
  letter-spacing: -.5px;
  text-transform: uppercase;
  text-shadow: 0 3px 20px rgba(0,0,0,.55);
  margin-bottom: 1.75rem;
}

.hero-welcome-text span {
  display: block;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: .80rem;
  max-width: 260px;
  margin-top: 4rem;
}

.hero-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.4rem;
  padding: .6rem 1.4rem;
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: .5px;
  text-transform: uppercase;
  text-align: center;
  border: 1.5px solid rgba(245, 181, 6, 0.3);
  border-radius: 13px;
  line-height: 1.35;
  transition: background .25s, border-color .25s, color .25s, transform .2s;
}

.hero-btn:hover {
  background: rgba(240,192,64,.18);
  border-color: var(--gold-light);
  color: var(--gold-light);
  transform: translateX(4px);
}

/* ----------------------------------------------------------------
   SCROLL INDICATOR
   ---------------------------------------------------------------- */
.scroll-indicator {
  position: absolute;
  bottom: 4rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  color: rgba(255,255,255,.75);
  opacity: 0;
  animation: fadeUp .6s ease forwards;
  animation-delay: 1.8s;
  cursor: default;
  user-select: none;
  z-index: 10;
}

.scroll-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  opacity: .55;
}

.scroll-arrows {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}

.scroll-arrows svg {
  width: 18px;
  height: 10px;
  display: block;
}

.scroll-arrows svg:nth-child(1) { animation: arrowCascade 1.8s ease-in-out infinite 0s; }
.scroll-arrows svg:nth-child(2) { animation: arrowCascade 1.8s ease-in-out infinite .22s; }
.scroll-arrows svg:nth-child(3) { animation: arrowCascade 1.8s ease-in-out infinite .44s; }

@keyframes arrowCascade {
  0%, 100% { opacity: .12; transform: translateY(0); }
  50%       { opacity: 1;   transform: translateY(4px); }
}

/* Right: WELCOME-2 graphic — floats over photo */
.hero-image-wrap {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-welcome-img {
  width: min(420px, 90%);
  filter: drop-shadow(0 24px 48px rgba(0,0,0,.55));
  border-radius: var(--r);
}

/* ----------------------------------------------------------------
   INTRO — Path of Excellence
   ---------------------------------------------------------------- */
.section-intro {
  background: var(--off-white);
  padding: 5rem 0;
  border-top: 4px solid var(--navy-deep);
}

.intro-inner {
  display: flex;
  align-items: flex-start;
  gap: 4rem;
}

.intro-media {
  flex: 0 0 44%;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.intro-video {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--r);
  border: none;
  box-shadow: 0 12px 36px rgba(0,0,0,.13);
}

.galileo-logo { width: 120px; }

.intro-text { flex: 1; }

.section-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .75rem;
}

.intro-heading {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.12;
  color: var(--navy-deep);
  margin-bottom: 1.25rem;
}

.intro-heading span { color: var(--gold); }

.intro-text p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: .85rem;
  text-align: justify;
}

.intro-text p strong { color: var(--navy); }

/* ----------------------------------------------------------------
   CONTENT SECTIONS — shared dark layout
   ---------------------------------------------------------------- */
.section-content {
  background: var(--navy);
  padding: 5rem 0;
  position: relative;
}

/* Alternating subtle tint */
.section-content:nth-of-type(even) { background: var(--navy-mid); }

/* White separator between content sections */
.section-content + .section-content {
  border-top: 1px solid rgba(255,255,255,.14);
}

.content-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* Section label + heading */
.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .5rem;
}

.section-heading {
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: .75rem;
}

.section-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
}

/* Text column */
.content-text-col {
  min-width: 0; /* prevent grid cell overflow */
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Image column */
.content-image-col {
  position: sticky;
  top: 5rem;
  min-width: 0;
}

.content-img {
  width: 100%;
  border-radius: var(--r);
  box-shadow: 0 20px 48px rgba(0,0,0,.4);
  border: 1px solid rgba(240,192,64,.15);
}

/* ----------------------------------------------------------------
   ACCORDION
   ---------------------------------------------------------------- */
.accordion { display: flex; flex-direction: column; gap: .4rem; }

.accordion-item {
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  transition: border-color .2s;
}

.accordion-item:hover { border-color: rgba(240,192,64,.25); }

.accordion-item[open] {
  border-color: rgba(240,192,64,.4);
  background: rgba(255,255,255,.06);
}

.accordion-title {
  cursor: pointer;
  list-style: none;
  padding: .9rem 1.1rem;
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  user-select: none;
  transition: color .2s;
}

.accordion-title::-webkit-details-marker { display: none; }

.accordion-item[open] .accordion-title { color: var(--gold-light); }

.accordion-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid rgba(240,192,64,.5);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
  line-height: 1;
  color: var(--gold-light);
  transition: transform .3s, background .2s;
}

.accordion-item[open] .accordion-icon {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy-deep);
  transform: rotate(45deg);
}

.accordion-body {
  padding: 0 1.1rem 1.1rem;
  font-size: 14px;
  line-height: 1.75;
  color: rgba(255,255,255,.8);
  border-top: 1px solid rgba(255,255,255,.06);
}

.accordion-body p { margin-bottom: .6rem; }
.accordion-body p:last-child { margin-bottom: 0; }

.accordion-body ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: .6rem;
}

.accordion-body li {
  padding-left: 1.1rem;
  position: relative;
  margin-bottom: .35rem;
}

.accordion-body li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

.accordion-body strong { color: var(--gold-light); font-weight: 600; }

.link-external {
  color: var(--gold-light);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity .2s;
}
.link-external:hover { opacity: .75; }

/* ----------------------------------------------------------------
   FORM PLACEHOLDER (inside accordion body)
   ---------------------------------------------------------------- */
.form-note {
  font-size: 13.5px;
  color: rgba(255,255,255,.55);
  margin-bottom: .6rem;
  margin-top: .25rem;
}

.form-placeholder {
  margin-top: .5rem;
  padding: 1.5rem;
  border-radius: var(--r-sm);
  border: 1.5px dashed rgba(240,192,64,.3);
  background: rgba(0,0,0,.15);
  text-align: center;
  color: rgba(240,192,64,.5);
  font-size: 13px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
}

.form-placeholder svg { opacity: .45; }

/* Agreements logos strip */
.agreements-strip {
  margin-top: 1.5rem;
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 1px solid rgba(240,192,64,.15);
}

.agreements-img { border-radius: var(--r-sm); }

/* ----------------------------------------------------------------
   CONTACT SECTION (standalone)
   ---------------------------------------------------------------- */
.section-contact {
  background: var(--navy-deep);
  padding: 5rem 0;
  text-align: center;
}

.section-contact .section-heading {
  margin-inline: auto;
}

.section-contact .section-heading::after {
  left: 50%;
  transform: translateX(-50%);
}

.contact-form-wrap {
  max-width: 560px;
  margin-inline: auto;
}

.contact-placeholder {
  max-width: 540px;
  margin: 0 auto;
  padding: 3rem 2rem;
  border: 1.5px dashed rgba(240,192,64,.25);
  border-radius: var(--r);
  background: rgba(255,255,255,.03);
  color: rgba(255,255,255,.4);
  font-size: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
}

.contact-placeholder svg { opacity: .35; }

/* ----------------------------------------------------------------
   50 YEARS
   ---------------------------------------------------------------- */
.section-fifty {
  background: var(--navy-deep);
  padding: 5rem 0;
  border-top: 1px solid rgba(240,192,64,.2);
}

.fifty-inner {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.fifty-text { flex: 0 0 40%; }

.fifty-heading {
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.fifty-heading span { color: var(--gold-light); }

.fifty-text p {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255,255,255,.7);
}

.fifty-text p strong { color: var(--white); }

.fifty-video { flex: 1; }

.fifty-video iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--r);
  border: none;
  box-shadow: 0 20px 48px rgba(0,0,0,.5);
}

/* ----------------------------------------------------------------
   FOOTER — minimal centered
   ---------------------------------------------------------------- */
.site-footer {
  background: var(--navy-mid);
  border-top: 3px solid var(--gold);
  padding: 3rem 0 2rem;
}

.footer-minimal {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .75rem;
}

.footer-logo { width: 190px; }

.footer-copy {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255,255,255,.5);
}

.footer-bar {
  margin-top: .5rem;
  font-size: 12px;
  color: rgba(255,255,255,.28);
}

/* ----------------------------------------------------------------
   RESPONSIVE — tablet
   ---------------------------------------------------------------- */
@media (max-width: 1024px) {
  .header-nav { display: none; }

  .section-hero {
    min-height: 70vh;
    background-position: 70% top;
  }
  .section-hero::before {
    background: linear-gradient(
      180deg,
      rgba(4,3,40,.9)  0%,
      rgba(4,3,40,.75) 55%,
      rgba(4,3,40,.5)  100%
    );
  }

  /* Hero layout */
  .hero-inner   { flex-direction: column; gap: 1.25rem; padding-block: 3.5rem; }
  .hero-content { flex: none; max-width: 100%; }
  .hero-welcome-text { font-size: 2.4rem; }
  .hero-buttons { max-width: 300px; margin-top: 1.5rem; }

  /* Content sections */
  .intro-inner { flex-direction: column; gap: 2.5rem; }
  .intro-media { flex: none; width: 100%; }

  .content-inner { grid-template-columns: 1fr; }
  .content-text-col { width: 100%; }
  .content-image-col { position: static; width: 100%; }
  .content-image-col img { max-height: 340px; object-fit: cover; }

  .fifty-inner { flex-direction: column; gap: 2.5rem; }
  .fifty-text  { flex: none; }
  .fifty-heading { font-size: 2.5rem; }
}

/* ----------------------------------------------------------------
   RESPONSIVE — mobile
   ---------------------------------------------------------------- */
@media (max-width: 640px) {
  html { font-size: 15px; }

  /* Header */
  .header-logo { width: 150px; }
  .header-tagline-text { font-size: 13px; }

  /* Hero */
  .section-hero { min-height: 100svh; background-position: 65% top; }
  .hero-inner   { padding-block: 2.5rem; gap: 1rem; }
  .hero-welcome-text { font-size: 3rem; margin-left: 1rem;}
  .hero-buttons {
    max-width: 100%;
    margin-top: 1.25rem;
  }
  .hero-btn { min-height: 3rem; font-size: 11px; }
  .scroll-indicator { display: none; }

  /* Sections */
  .section-heading { font-size: 1.65rem; }
  .intro-heading   { font-size: 1.75rem; }
  .fifty-heading   { font-size: 2rem; }

  /* Forms */
  .form-row-2 { grid-template-columns: 1fr; }
  .phone-code  { flex: 0 0 90px; }
  .ucimed-form { padding: 1.25rem; }
}

/* ================================================================
   MULTI-STEP CONTACT FORM
   ================================================================ */

/* Card wrapper */
.ucimed-form {
  background: #ffffff;
  border-radius: 14px;
  padding: 1.75rem;
  box-shadow: 0 6px 32px rgba(0,0,0,.22);
  margin-top: 1.25rem;
}

/* ── Step indicator ──────────────────────────────────────────── */
.form-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 1.75rem;
}

.form-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  flex-shrink: 0;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  /* default — future step */
  border: 2px solid #ccc;
  color: #aaa;
  background: #fff;
  transition: background .3s, border-color .3s, color .3s;
}

.step-label {
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  color: #aaa;
  line-height: 1.3;
  transition: color .3s;
}

/* Active step */
.form-step.is-active .step-num {
  border-color: var(--gold);
  color: var(--gold);
  background: #fff;
}
.form-step.is-active .step-label { color: var(--gold); }

/* Completed step */
.form-step.is-done .step-num {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}
.form-step.is-done .step-label { color: var(--navy); }

/* Connecting line */
.step-line {
  flex: 1;
  height: 2px;
  background: #ddd;
  margin-top: 17px; /* centers with the circle */
}

/* ── Form fields ─────────────────────────────────────────────── */
.form-panel          { display: flex; flex-direction: column; gap: 1rem; }
.form-panel[hidden]  { display: none; }

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-label {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
}

.label-text { display: inline; }  /* keeps text + * on the same line */
.req { color: #d63638; font-weight: 700; }

.form-input {
  width: 100%;
  background: #e8edf8;
  border: 2px solid transparent;
  border-radius: 10px;
  padding: .75rem 1rem;
  font-family: var(--font);
  font-size: 15px;
  color: var(--text);
  outline: none;
  transition: border-color .2s, background .2s;
  appearance: none;
  -webkit-appearance: none;
}

.form-input::placeholder { color: #9aa2b8; }

.form-input:focus {
  border-color: var(--navy);
  background: #f0f4ff;
}

.form-input.is-error {
  border-color: #d63638;
  background: #fff5f5;
}

select.form-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23001f5b' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 2.5rem;
  cursor: pointer;
}

textarea.form-input {
  resize: vertical;
  min-height: 96px;
}

/* Phone field — gap-free, visually joined */
.phone-wrap {
  display: flex;
  border-radius: 10px;
  overflow: hidden;
  background: #e8edf8;
  border: 2px solid transparent;
  transition: border-color .2s;
}

.phone-wrap:focus-within { border-color: var(--navy); background: #f0f4ff; }

.phone-code {
  flex: 0 0 110px;
  border-radius: 0;
  border-right: 1.5px solid rgba(0,31,91,.12);
  background: transparent;
  border-top: none;
  border-bottom: none;
  border-left: none;
}

.phone-number {
  flex: 1;
  border-radius: 0;
  background: transparent;
}

/* override default focus style inside phone-wrap */
.phone-wrap .form-input:focus {
  border-color: transparent;
  background: transparent;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn-form {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .85rem 1.5rem;
  border-radius: 10px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .3px;
  cursor: pointer;
  border: none;
  transition: opacity .2s, transform .15s;
}

.btn-form:hover:not(:disabled) { opacity: .88; transform: translateY(-1px); }
.btn-form:active:not(:disabled) { transform: translateY(0); }
.btn-form:disabled { opacity: .55; cursor: not-allowed; }

.btn-next {
  width: 100%;
  background: var(--navy);
  color: #fff;
}

.btn-prev {
  background: var(--gold);
  color: #fff;
  flex: 1;
}

.btn-submit {
  background: var(--navy);
  color: #fff;
  flex: 1;
}

.form-btn-row {
  display: flex;
  gap: .75rem;
}

/* ── Error message ───────────────────────────────────────────── */
.form-error-msg          { display: none; }  /* hidden by default via [hidden] */
.form-error-msg:not([hidden]) {
  display: block;
  font-size: 13.5px;
  color: #d63638;
  background: #fff5f5;
  border: 1px solid #fca5a5;
  border-radius: 8px;
  padding: .6rem .9rem;
}

/* ── Success state ───────────────────────────────────────────── */
.form-success {
  text-align: center;
  padding: 2rem 1rem;
}

.form-success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 26px;
  line-height: 56px;
  margin: 0 auto 1rem;
}

.form-success h3 {
  font-size: 20px;
  color: var(--navy);
  margin-bottom: .5rem;
}

.form-success p {
  font-size: 14.5px;
  color: var(--text-muted);
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 640px) {
  .form-row-2 { grid-template-columns: 1fr; }
  .phone-code  { flex: 0 0 90px; }
  .ucimed-form { padding: 1.25rem; }
}
