/* ========================================
   Thank You Page — Professional Redesign
   Force light theme, no dark mode
   ======================================== */

.thank-you-page {
  min-height: 100vh;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  color-scheme: light;
}

.thank-you-hero {
  background: linear-gradient(160deg, #001f3f 0%, #003875 60%, #0056b3 100%);
  padding: 72px 24px 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.thank-you-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(0,123,255,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.thank-you-check {
  width: 88px;
  height: 88px;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 32px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
  animation: popIn 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes popIn {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.thank-you-check svg {
  width: 44px;
  height: 44px;
}

.thank-you-hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 12px;
  letter-spacing: -0.5px;
  line-height: 1.15;
  animation: fadeUp 0.5s ease 0.2s both;
}

.thank-you-hero-sub {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.75);
  margin: 0;
  animation: fadeUp 0.5s ease 0.3s both;
}

@keyframes fadeUp {
  from { transform: translateY(16px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* ---- wave divider ---- */
.thank-you-wave {
  display: block;
  margin-top: -2px;
  line-height: 0;
}

.thank-you-wave svg {
  width: 100%;
  height: auto;
}

/* ---- body section ---- */
.thank-you-body {
  flex: 1;
  background: #ffffff;
  padding: 40px 24px 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.thank-you-message {
  max-width: 520px;
  width: 100%;
  text-align: center;
  animation: fadeUp 0.5s ease 0.35s both;
}

.thank-you-message p {
  font-size: 1.0625rem;
  color: #374151;
  line-height: 1.7;
  margin: 0 0 10px;
}

.thank-you-message p:last-child {
  margin: 0;
}

.thank-you-message strong {
  color: #001f3f;
  font-weight: 700;
}

/* ---- CTA button ---- */
.thank-you-cta {
  animation: fadeUp 0.5s ease 0.45s both;
}

.thank-you-btn {
  display: inline-block;
  padding: 15px 40px;
  background: #001f3f;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 20px rgba(0,31,63,0.22);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.thank-you-btn:hover {
  background: #003875;
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,31,63,0.3);
}

.thank-you-btn:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,31,63,0.22);
}

/* ---- contacts card ---- */
.thank-you-card {
  max-width: 520px;
  width: 100%;
  background: #f8f9fb;
  border: 1px solid #e5e9f0;
  border-radius: 20px;
  padding: 32px;
  animation: fadeUp 0.5s ease 0.55s both;
}

.thank-you-card-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 20px;
}

.ty-contact-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.ty-contact-row:last-child {
  margin-bottom: 0;
}

.ty-contact-icon {
  width: 38px;
  height: 38px;
  background: #001f3f;
  border-radius: 10px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ty-contact-icon svg {
  width: 18px;
  height: 18px;
  color: #ffffff;
}

.ty-contact-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  justify-content: center;
}

.ty-contact-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ty-contact-value {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #001f3f;
  text-decoration: none;
  transition: color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.ty-contact-value:hover {
  color: #007bff;
}

/* ---- messenger icons ---- */
.ty-messengers {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.ty-messenger-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.ty-messenger-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.ty-messenger-btn svg {
  width: 20px;
  height: 20px;
}

.ty-messenger-btn--tg  { background: #229ed9; color: #fff; }
.ty-messenger-btn--vb  { background: #7360f2; color: #fff; }
.ty-messenger-btn--wa  { background: #25d366; color: #fff; }

/* ---- footer strip ---- */
.thank-you-footer {
  background: #001f3f;
  color: rgba(255,255,255,0.5);
  font-size: 0.8125rem;
  text-align: center;
  padding: 18px 24px;
  padding-bottom: max(18px, env(safe-area-inset-bottom));
}

/* =========================================
   Tablet ≤ 768px
   ========================================= */
@media (max-width: 768px) {
  .thank-you-hero {
    padding: 56px 20px 80px;
  }

  .thank-you-check {
    width: 76px;
    height: 76px;
  }

  .thank-you-check svg {
    width: 38px;
    height: 38px;
  }

  .thank-you-card {
    padding: 24px;
    border-radius: 16px;
  }
}

/* =========================================
   Mobile ≤ 480px
   ========================================= */
@media (max-width: 480px) {
  .thank-you-hero {
    padding: 40px 16px 72px;
    padding-top: max(40px, env(safe-area-inset-top));
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }

  .thank-you-check {
    width: 68px;
    height: 68px;
    margin-bottom: 24px;
  }

  .thank-you-check svg {
    width: 34px;
    height: 34px;
  }

  .thank-you-hero-title {
    font-size: 1.75rem;
  }

  .thank-you-hero-sub {
    font-size: 1rem;
  }

  .thank-you-body {
    padding: 32px 16px 48px;
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
    gap: 24px;
  }

  .thank-you-btn {
    display: block;
    text-align: center;
    width: 100%;
    padding: 15px 24px;
  }

  .thank-you-card {
    padding: 20px;
  }

  .ty-contact-label {
    font-size: 0.6875rem;
  }

  .ty-contact-value {
    font-size: 0.875rem;
  }

  .thank-you-footer {
    padding: 16px 16px;
    padding-bottom: max(16px, env(safe-area-inset-bottom));
  }
}

/* =========================================
   iOS Safari safe-area support
   ========================================= */
@supports (padding: max(0px)) {
  .thank-you-hero {
    padding-left: max(24px, env(safe-area-inset-left));
    padding-right: max(24px, env(safe-area-inset-right));
    padding-top: max(72px, env(safe-area-inset-top));
  }
}
