/* MenuSifu MCA Landing Page Styles */
/* Optimized CSS extracted from reference.css with improved naming conventions */

/* Reset and base styles */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Layout container */
.mca-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: 'Montserrat', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #ffffff;
  line-height: 1.6;
  position: relative;
}

/* Animation keyframes */
@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* Hero section styles */
.mca-hero-section {
  /* SVG背景向下偏移，拉长图片高度 */
  background: url('/static/img/bg_only.svg') no-repeat;
  background-size: 100% 680px;
  background-position: center 180px;
  padding: 0px 20px 0px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  animation: fadeIn 0.8s ease-out;
  /* 移除高度限制，让内容自然流动 */
}

.mca-hero-top-logo {
  text-align: center;
  width: 100%;
  position: relative;
  margin-top: 40px;
  margin-bottom: 20px;
  z-index: 10;
}

.mca-hero-logo-image {
  max-width: 100%;
  height: auto;
  width: 400px;
}

/* Money illustration (transparent) spacing & safe overlay */
.mca-money-logo {
  display: block;
  width: 600px;
  max-width: 50%;
  height: auto;
  margin: 6px auto 10px;
  position: relative;
  z-index: 1;
  transform: translateY(-280px);
  pointer-events: none;
}

/* Language-specific adjustments to prevent overlap in Chinese */
.lang-zh .mca-money-logo {
  transform: translateY(-240px);
}

@media (max-width: 768px) {
  .mca-money-logo {
    width: 260px;
    max-width: 80%;
    margin: 6px auto 8px;
    transform: translateY(-200px);
  }

  .lang-zh .mca-money-logo {
    transform: translateY(-160px);
  }
}

@media (max-width: 480px) {
  .mca-money-logo {
    width: 220px;
    max-width: 85%;
    margin: 4px auto 8px;
    transform: translateY(-200px);
  }

  .lang-zh .mca-money-logo {
    transform: translateY(-160px);
  }
}

/* Reduce spacing below the tagline above money logo */
#tagline2 {
  margin-bottom: 4px !important;
}

.lang-zh #tagline2 {
  margin-bottom: 10px !important;
}

/* Lift contact info closer to money icon */
.mca-contact-info {
  margin-top: -260px !important;
  margin-bottom: 20px !important;
  width: 450px;
  max-width: 75%;
  margin-left: auto;
  margin-right: auto;
  padding-top: 24px;
  position: relative;
  z-index: 2;
  text-align: center;
}

@media (max-width: 768px) {
  .mca-contact-info {
    margin-top: -205px !important;
    width: 250px;
    max-width: 85%;
    padding-top: 20px;
  }
}

@media (max-width: 480px) {
  .mca-contact-info {
    margin-top: -200px !important;
    width: 220px;
    max-width: 90%;
    padding-top: 25px;
  }
}

/* Benefits grid styles */
.mca-calculator-container {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 40px;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 10;
  animation: fadeInUp 1.4s ease-out 0.8s both;
  transition: all 0.3s ease;
}

.mca-calculator-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.mca-benefits-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  grid-template-rows: repeat(2, 1fr) !important;
  gap: 20px !important;
  margin-bottom: 30px !important;
  align-items: start !important;
}

.mca-benefit-card {
  text-align: center;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.mca-benefit-card h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 10px;
  min-height: 35px !important;
  line-height: 1.2 !important;
  word-wrap: break-word !important;
  hyphens: auto !important;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mca-benefit-card p {
  color: #64748b;
  font-size: 1rem;
  margin: 0;
  text-align: center;
  line-height: 1.3 !important;
  word-wrap: break-word !important;
  hyphens: auto !important;
  min-height: 20px;
}

/* Special styling for bullet list content in pay card */
.mca-benefit-card div[style*="color: #64748b"] {
  text-align: left !important;
}

.mca-benefit-card p[style*="font-style: italic"] {
  text-align: left !important;
}

/* Apply button styles */
.mca-apply-button {
  background: linear-gradient(135deg, #ffb600 0%, #e6a500 100%);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 20px 60px;
  font-size: 1.25rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(255, 182, 0, 0.3);
  width: 100%;
  max-width: 400px;
  position: relative;
  overflow: hidden;
}

.mca-apply-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.mca-apply-button:hover::before {
  left: 100%;
}

.mca-apply-button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 32px rgba(255, 182, 0, 0.4);
  background: linear-gradient(135deg, #e6a500 0%, #cc9400 100%);
}

.mca-apply-button:active {
  transform: translateY(0px) scale(0.98);
}

.mca-apply-button:disabled {
  background: #cbd5e1;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  opacity: 0.7;
}

/* Footer styles */
.mca-footer {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  padding: 30px 20px 30px;
  margin-top: 0;
  animation: fadeIn 1s ease-out;
}

.mca-footer-content {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}

.mca-footer-logo {
  display: flex;
  justify-content: center;
  animation: fadeInUp 1.2s ease-out 0.3s both;
}

.mca-footer-logo-image {
  width: 180px;
  height: auto;
}

.mca-footer-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.mca-contact-details {
  display: flex;
  justify-content: center;
  gap: 24px;
  text-align: center;
  flex-wrap: wrap;
}

.mca-contact-details p {
  color: #555555;
  font-size: 14px;
  font-weight: 500;
  margin: 0;
  line-height: 1.4;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.mca-legal-links {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.mca-legal-links a {
  text-decoration: none;
}

.mca-legal-links span {
  color: #555555;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.mca-legal-links a span {
  text-decoration: underline;
  color: #ffb600;
}

.mca-legal-links a:hover span {
  color: #e6a500;
  transform: translateY(-1px);
}

.mca-legal-links>span:nth-child(even) {
  color: #f59e0b;
  cursor: default;
  font-weight: 600;
}

.mca-copyright-text {
  font-size: 16px;
  font-weight: 600;
  color: #1e1e1e;
  margin: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.mca-disclaimer {
  max-width: 700px;
  text-align: center;
  margin-top: 8px;
  font-size: 0.875rem;
  color: #94a3b8;
  font-style: italic;
}

.mca-disclaimer p {
  color: #555555;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  margin: 0;
}

/* Responsive design */
@media (max-width: 768px) {
  .mca-hero-logo-image {
    width: 300px !important;
    max-width: 85% !important;
  }

  .mca-hero-top-logo {
    margin-bottom: 15px !important;
  }

  .mca-benefits-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 15px !important;
  }

  .mca-calculator-container {
    padding: 32px 20px;
    margin-top: 20px;
    align-self: center;
    max-width: 100%;
    width: 100%;
  }

  .mca-apply-button {
    font-size: 1.125rem;
    padding: 16px 40px;
  }

  .mca-footer {
    padding: 30px 16px 20px;
  }

  .mca-footer-content {
    gap: 20px;
  }

  .mca-footer-logo-image {
    width: 160px;
  }

  .mca-footer-info {
    gap: 12px;
  }

  .mca-contact-details {
    flex-direction: column;
    gap: 8px;
  }

  .mca-contact-details p {
    font-size: 13px;
    justify-content: center;
  }

  .mca-legal-links {
    gap: 8px;
    margin-bottom: 8px;
  }

  .mca-legal-links span {
    font-size: 12px;
  }

  .mca-copyright-text {
    font-size: 14px;
  }

  .mca-disclaimer {
    max-width: 100%;
    margin-top: 6px;
  }

  .mca-disclaimer p {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .mca-hero-logo-image {
    width: 250px !important;
    max-width: 90% !important;
  }

  .mca-hero-top-logo {
    margin-bottom: 12px !important;
  }

  .mca-benefits-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }

  .mca-calculator-container {
    padding: 28px 16px;
  }

  .mca-hero-section {
    padding: 30px 12px 20px;
  }

  .mca-benefit-card h4 {
    font-size: 1.1rem !important;
  }

  .mca-benefit-card p {
    font-size: 0.9rem !important;
  }
}

@media (max-width: 360px) {
  .mca-hero-logo-image {
    width: 200px !important;
    max-width: 95% !important;
  }
}

/* Main content responsive design */
@media (max-width: 768px) {
  div[style*="max-width: 800px"] {
    max-width: 95% !important;
    margin: 30px auto !important;
    padding: 0 15px !important;
  }

  h1 {
    font-size: 2rem !important;
  }

  h2 {
    font-size: 1.75rem !important;
  }
}

@media (max-width: 480px) {
  div[style*="max-width: 800px"] {
    max-width: 98% !important;
    margin: 20px auto !important;
    padding: 0 10px !important;
  }

  h1 {
    font-size: 1.8rem !important;
    margin-bottom: 20px !important;
  }

  h2 {
    font-size: 1.5rem !important;
    margin-bottom: 20px !important;
  }

  #tagline1 {
    font-size: 1.1rem !important;
  }

  #tagline2 {
    font-size: 1rem !important;
  }
}

/* SVG背景响应式设计 */
@media (max-width: 768px) {
  .mca-hero-section {
    /* 平板设备 - 调整背景图片高度和位置，与桌面版本成比例 */
    background: url('/static/img/bg_only.svg') center 40px/100% 700px no-repeat;
    background-position: center 40px;
    background-attachment: scroll;
  }

  .mca-hero-top-logo {
    margin-top: 20px;
  }
}

@media (max-width: 480px) {
  .mca-hero-section {
    /* 手机设备 - 使用伪元素扩展背景，不改变容器高度 */
    background: none;
    background-attachment: scroll;
    padding: 0px 12px 0px;
    z-index: 0;
    /* 创建新的层叠上下文，便于 ::before 置于下方 */
  }

  /* 手机端：缩小联系信息与其下方的留白 */
  .mca-hero-section>div[style*="margin-bottom: 20px;"] {
    margin-bottom: 8px !important;
  }

  .mca-hero-section::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 600px;
    background: url('/static/img/bg_only.svg') center 0/100% 100% no-repeat;
    pointer-events: none;
    z-index: -1;
    transform: scaleY(1.35);
    transform-origin: top center;
  }

  .mca-hero-top-logo {
    margin-top: 15px;
  }
}