/* ============================================
   NEW OCEAN – Singapore Landing Page Styles
   newocean.edu.vn/singapore
   ============================================ */

/* === RESET & BASE === */
* {
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
}

body {
  background: #fff;
  color: #1B2537;
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}

/* Prevent iOS Safari auto-zoom on input focus (requires font-size >= 16px) */
@media (max-width: 768px) {
  input, select, textarea, .cs-trigger {
    font-size: 16px !important;
  }
}

/* === BRAND CSS VARIABLES === */
:root {
  --grad-ocean: linear-gradient(135deg, #0090d6 0%, #0054a0 50%, #004384 100%);
  --grad-flame: linear-gradient(135deg, #fdb913 0%, #f8931b 50%, #f15b29 100%);
  --grad-mixed: linear-gradient(135deg, #0090d6 0%, #0054a0 40%, #f8931b 80%, #f15b29 100%);
  --color-ocean: #0054a0;
  --color-flame: #f15b29;
}

/* === TYPOGRAPHY === */
.serif {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.eyebrow {
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #0090d6;
}

/* === READING PROGRESS BAR === */
#rp {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--grad-flame);
  z-index: 9999;
  width: 0;
  transition: width .1s linear;
}

/* === BUTTONS === */
.btn-navy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: #0054a0;
  color: #fff;
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 3px;
  transition: all .25s;
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
}
.btn-navy:hover {
  background: #004384;
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(16, 32, 64, .2);
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--grad-flame);
  color: #fff;
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 3px;
  transition: all .25s;
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
}
.btn-gold:hover {
  background: linear-gradient(135deg, #f8931b, #c44a1e);
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(201, 146, 42, .25);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: transparent;
  color: #0054a0;
  font-weight: 500;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 3px;
  transition: all .25s;
  border: 1.5px solid #D1D9E0;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
}
.btn-outline:hover {
  border-color: #0054a0;
  background: #EEF5FB;
}

/* === CARDS === */
.card-clean {
  background: #fff;
  border: 1px solid #E8EEF4;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .04);
  transition: box-shadow .25s, transform .25s;
}
.card-clean:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, .08);
  transform: translateY(-2px);
}

.card-featured {
  background: #fff;
  border: 1px solid #E8EEF4;
  border-top: 3px solid #0054a0;
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, .06);
}

.card-navy {
  background: #102040;
  border-radius: 8px;
}

/* === FORM INPUTS === */
.inp-light {
  width: 100%;
  padding: 12px 16px;
  background-color: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: .9rem;
  color: #1B2537;
  outline: none;
  transition: border-color .25s, background-color .25s, box-shadow .25s;
}
.inp-light:focus {
  border-color: #0090d6;
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(0, 144, 214, .08);
}
.inp-light::placeholder { color: #94A3B8; }
select.inp-light {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748B'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  padding-right: 40px;
}

/* === COMPARE TABLE === */
.ct td, .ct th {
  padding: 14px 18px;
  border-bottom: 1px solid #F1F5F9;
  vertical-align: middle;
}
.ct th {
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #94A3B8;
}
.ct-sg { background: #EEF5FB; }

/* === SCARCITY PROGRESS BAR === */
.pg-track {
  height: 4px;
  background: #EEF2F7;
  border-radius: 100px;
  overflow: hidden;
}
.pg-fill {
  height: 100%;
  background: var(--grad-flame);
  border-radius: 100px;
}

/* === STICKY MOBILE CTA === */
.sticky-m {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #fff;
  border-top: 1px solid #E8EEF4;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, .08);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  transform: translateY(100%);
  transition: transform .35s cubic-bezier(.4, 0, .2, 1);
}
.sticky-m.on { transform: translateY(0); }

/* Phone ring animation */
@keyframes phone-ring {
  0%, 100% { transform: rotate(0deg); }
  10% { transform: rotate(-12deg); }
  20% { transform: rotate(12deg); }
  30% { transform: rotate(-10deg); }
  40% { transform: rotate(8deg); }
  50% { transform: rotate(0deg); }
}
/* Subtle pulse glow on hotline button */
@keyframes hotline-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .7; }
}

@media (min-width: 768px) { .sticky-m { display: none !important; } }

/* === FLOATING ACTION BUTTONS === */
.fab {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .12);
  transition: transform .2s;
}
.fab:hover { transform: translateY(-2px); }

/* === SCROLL ANIMATIONS === */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.aos {
  opacity: 0;
  transform: translateY(20px);
}
.aos.in {
  animation: fadeUp .65s cubic-bezier(.4, 0, .2, 1) forwards;
}

/* === STAT NUMBERS === */
.stat-n {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: #102040;
  line-height: 1;
  letter-spacing: -0.04em;
}

/* === DIVIDER LINES === */
.rule {
  height: 1px;
  background: #EEF2F7;
  border: none;
}
.rule-gold {
  height: 1px;
  background: linear-gradient(90deg, #0054a0, transparent);
  border: none;
}

/* === CHECK MARKS === */
.ck-y { color: #f8931b; font-weight: 700; }
.ck-n { color: #CBD5E1; }

/* === PROCESS TIMELINE NUMBERS === */
.tl-num {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  color: #E8EEF4;
  line-height: 1;
  letter-spacing: -0.04em;
}

/* === MARQUEE ANIMATION === */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.animate-marquee {
  animation: marquee 35s linear infinite;
  display: flex;
}
.animate-marquee:hover {
  animation-play-state: paused;
}

/* === CUSTOM SELECT DROPDOWN === */
.custom-select {
  position: relative;
  width: 100%;
}
.cs-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  background-color: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: .9rem;
  color: #1B2537;
  cursor: pointer;
  transition: border-color .25s, background-color .25s, box-shadow .25s;
  text-align: left;
}
.cs-trigger:hover {
  border-color: #CBD5E1;
  background-color: #fff;
}
.cs-trigger:focus,
.cs-trigger[aria-expanded="true"] {
  border-color: #0090d6;
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(0, 144, 214, .08);
  outline: none;
}
.cs-trigger .cs-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cs-trigger .cs-label.placeholder {
  color: #94A3B8;
}
.cs-arrow {
  color: #64748B;
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  flex-shrink: 0;
}
.cs-trigger[aria-expanded="true"] .cs-arrow {
  transform: rotate(180deg);
}
.cs-options {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  box-shadow: 0 12px 36px rgba(0,0,0,.1), 0 2px 8px rgba(0,0,0,.04);
  z-index: 50;
  list-style: none;
  margin: 0;
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(.98);
  transition: opacity .2s, transform .25s cubic-bezier(.4,0,.2,1), visibility .2s;
}
.cs-options.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.cs-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color .15s, transform .15s;
}
.cs-option:hover {
  background-color: #F0F7FF;
  transform: translateX(2px);
}
.cs-option.selected {
  background: linear-gradient(135deg, #EEF5FB 0%, #F0F7FF 100%);
  border-left: 3px solid #0090d6;
}
.cs-icon {
  width: 22px;
  height: 22px;
  color: #0090d6;
  flex-shrink: 0;
}
.cs-option:hover .cs-icon {
  color: #0054a0;
}
.cs-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cs-main {
  font-size: .875rem;
  font-weight: 600;
  color: #1B2537;
}
.cs-sub {
  font-size: .7rem;
  color: #94A3B8;
  font-weight: 400;
}
.cs-option:hover .cs-main {
  color: #0054a0;
}

/* === UTILITIES TO REPLACE INLINE STYLES === */
.delay-100 { animation-delay: 0.1s !important; }
.delay-200 { animation-delay: 0.2s !important; }

.shadow-card {
  box-shadow: 0 1px 4px rgba(0,84,160,.12);
  border: 1px solid #DBEAFE;
}
.shadow-card-flame {
  box-shadow: 0 1px 4px rgba(241,91,41,.12);
  border: 1px solid #FED7AA;
}
.shadow-card-light {
  box-shadow: 0 12px 40px -12px rgba(0,0,0,.05);
  border: 1px solid #EEF2F7;
}

/* === SUCCESS POPUP === */
#success-popup.popup-visible {
  opacity: 1;
  pointer-events: auto;
}
#success-popup.popup-visible #success-popup-card {
  transform: scale(1) translateY(0);
}

@keyframes popIn {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes drawCheck {
  to { stroke-dashoffset: 0; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === SOCIAL PROOF TOAST === */
#sp-toast {
  position: fixed;
  z-index: 9999;
  left: 50%;
  top: 12px;
  transform: translateX(-50%) translateY(-20px);
  background: rgba(255,255,255,.98);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: 100px;
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
  border: 1px solid rgba(0,0,0,.06);
  padding: 8px 8px 8px 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s ease, transform .4s cubic-bezier(.4,0,.2,1);
  font-family: 'Inter', sans-serif;
}
@media (min-width: 768px) {
  #sp-toast {
    left: 24px;
    top: auto;
    bottom: 24px;
    transform: translateX(0) translateY(16px);
  }
}
#sp-toast.spt-show {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
@media (min-width: 768px) {
  #sp-toast.spt-show {
    transform: translateX(0) translateY(0);
  }
}
.spt-icon {
  width: 22px;
  height: 22px;
  background: #FFFBEB;
  color: #F59E0B;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.spt-text {
  font-size: 12.5px;
  color: #475569;
  line-height: 1;
}
.spt-text strong {
  color: #1B2537;
  font-weight: 600;
}
#spt-time {
  color: #EA580C; /* Orange/Red for urgency */
  font-weight: 600;
}
.spt-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #94A3B8;
  background: transparent;
  border: none;
  cursor: pointer;
  margin-left: 4px;
  transition: all .2s;
}
.spt-close:hover {
  background: #F1F5F9;
  color: #64748B;
}
