/* ===== SUPPORT PAGE STYLES ===== */

body { overflow-x: hidden; }

/* ── Hero ── */
.support-hero {
  padding: 64px 40px 72px;
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
}

/* ── Logo circle ── */
.support-hero__logo-wrap {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 36px;
}

.support-hero__logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.support-hero__title {
  font-family: Figtree, sans-serif;
  font-size: 3.5rem;
  font-weight: 600;
  color: #1D1D1F;
  line-height: 1.0;
  margin: 0 0 28px;
  letter-spacing: -0.03em;
  margin: 0 0 28px;
  letter-spacing: -0.03em;
}

.support-hero__subtitle {
  font-family: Figtree, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: #424245;
  max-width: 480px;
  margin: 0 auto 44px;
  line-height: 1.55;
}

.support-hero__links {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.support-hero__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: Figtree, sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.support-hero__link--primary {
  background: #1d1d1f;
  color: #fff;
}

.support-hero__link--primary:hover {
  background: #3a3a3c;
}

.support-hero__link--secondary {
  background: #f5f5f7;
  color: #1d1d1f;
}

.support-hero__link--secondary:hover {
  background: #e8e8ed;
}

/* ── FAQ ── */
.support-faq {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 40px 80px;
}

.support-faq__heading {
  font-family: Figtree, sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #1d1d1f;
  margin: 0;
  padding: 0 0 32px;
  letter-spacing: -0.01em;
}

.support-faq__item {
  border-top: 1px solid #d2d2d7;
}

.support-faq__item:last-child {
  border-bottom: 1px solid #d2d2d7;
}

.support-faq__item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  cursor: pointer;
  font-family: Figtree, sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #1d1d1f;
  gap: 16px;
  user-select: none;
}

.support-faq__item summary::-webkit-details-marker {
  display: none;
}

.support-faq__item summary::after {
  content: '';
  display: block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9L12 15L18 9' stroke='%231d1d1f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.25s ease;
}

.support-faq__item[open] summary::after {
  transform: rotate(180deg);
}

.support-faq__answer {
  font-family: Figtree, sans-serif;
  font-size: 15px;
  color: #6e6e73;
  line-height: 1.65;
  margin: 0;
  padding: 0 0 24px;
  max-width: 680px;
}

/* ── Contact section ── */
.support-contact {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 40px 100px;
  position: relative;
}

.support-contact::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  background: #f8f8f8;
  z-index: -1;
}

.support-contact__heading {
  font-family: Figtree, sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #1d1d1f;
  margin: 0;
  padding: 56px 0 40px;
  letter-spacing: -0.01em;
}

/* ── More to Explore ── */
.support-explore {
  max-width: 880px;
  margin: 0 auto;
  padding: 80px 40px 100px;
  text-align: center;
}

.support-explore__heading {
  font-family: Figtree, sans-serif;
  font-size: 2rem;
  font-weight: 600;
  color: #1d1d1f;
  letter-spacing: -0.02em;
  margin: 0 0 40px;
}

.support-explore__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.support-explore__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.support-explore__media {
  width: 100%;
  height: 180px;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.support-explore__media--founder {
  background: #ddeeff;
}

.support-explore__media--community {
  background: #e4f0e0;
}

.support-explore__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.support-explore__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
}

.support-explore__title {
  font-family: Figtree, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1d1d1f;
  margin: 0;
  letter-spacing: -0.01em;
}

.support-explore__desc {
  font-family: Figtree, sans-serif;
  font-size: 0.85rem;
  color: #6e6e73;
  margin: 0;
  line-height: 1.55;
  max-width: 300px;
}

.support-explore__link {
  font-family: Figtree, sans-serif;
  font-size: 0.85rem;
  color: #0071e3;
  text-decoration: none;
  margin-top: 2px;
}

.support-explore__link:hover {
  text-decoration: underline;
}

/* ── Contact Form ── */
.ymg-contact-form {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.ymg-contact-form__row {
  display: flex;
  gap: 50px;
}

.ymg-contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
}

.ymg-contact-form__field label {
  font-size: 12px;
  color: #090909;
  font-weight: 500;
  font-family: Figtree, sans-serif;
}

.ymg-contact-form__field input,
.ymg-contact-form__field textarea {
  background: #fff;
  border: 1px solid #d4d4d4;
  padding: 10px 12px;
  color: #090909;
  font-size: 13px;
  border-radius: 10px;
  outline: none;
  transition: border-color 0.15s;
  width: 100%;
  font-family: Figtree, sans-serif;
  box-sizing: border-box;
}

.ymg-contact-form__field input::placeholder,
.ymg-contact-form__field textarea::placeholder {
  color: #888;
}

.ymg-contact-form__field input:focus,
.ymg-contact-form__field textarea:focus {
  border-color: #959595;
}

.ymg-contact-form__field textarea {
  min-height: 130px;
  resize: vertical;
  line-height: 1.5;
}

.ymg-contact-form__actions {
  display: flex;
  justify-content: flex-end;
}

.ymg-contact-form__submit {
  background: #0071e3;
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: 7px 17px;
  font-size: 0.85rem;
  font-family: Figtree, sans-serif;
  cursor: pointer;
  transition: background 0.2s ease;
}

.ymg-contact-form__submit:hover {
  background: #0077ed;
}

.ymg-contact-form__privacy {
  font-family: Figtree, sans-serif;
  font-size: 10px;
  color: #6e6e73;
  margin: 10px 0 0;
  line-height: 1.5;
}

.ymg-contact-form__privacy-link {
  color: #0071e3;
  text-decoration: none;
}

.ymg-contact-form__privacy-link:hover {
  text-decoration: underline;
}

/* ── Submit Success Popup ── */
.ymg-submit-success-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  z-index: 10060;
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, backdrop-filter 0.25s ease;
}

.ymg-submit-success-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.25s ease, backdrop-filter 0.25s ease, visibility 0s 0s;
}

.ymg-submit-success-overlay.is-closing {
  opacity: 0;
  backdrop-filter: blur(0px);
  transition: opacity 0.25s ease, backdrop-filter 0.25s ease, visibility 0s 0.25s;
}

.ymg-submit-success-modal {
  position: relative;
  z-index: 1;
  background: #fff;
  border: 1px solid #959595;
  border-radius: 10px;
  padding: 18px 18px 16px;
  width: min(92vw, 420px);
  font-family: Figtree;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  box-sizing: border-box;
  transform: scale(0.95);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.ymg-submit-success-overlay.is-open .ymg-submit-success-modal {
  transform: scale(1);
  opacity: 1;
}

.ymg-submit-success-overlay.is-closing .ymg-submit-success-modal {
  transform: scale(0.95);
  opacity: 0;
}

.ymg-submit-success-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-height: 40px;
  border: 1px solid #959595;
  border-radius: 50%;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.ymg-submit-success-logo i {
  color: #000;
  font-size: 18px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.ymg-submit-success-title {
  color: #000;
  font-size: 14px;
  margin-top: 6px;
  font-weight: 700;
  transition: opacity 0.3s ease;
  min-height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ymg-submit-success-note {
  color: #222222;
  font-size: 11px;
  transition: opacity 0.3s ease;
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.ymg-submit-success-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid #959595;
  background: transparent;
  color: #000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.08s ease;
  z-index: 2;
}

.ymg-submit-success-close:hover {
  background: rgba(0, 0, 0, 0.07);
  border-color: #000;
}

.ymg-submit-success-close i {
  font-size: 12px;
  line-height: 1;
}

.ymg-submit-success-logo .ymg-custom-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #d0d0d0;
  border-top-color: #000;
  border-radius: 50%;
  animation: ymg-spinner-rotate 0.8s linear infinite;
}

.ymg-submit-success-logo i.fa-circle-notch {
  animation: ymg-spinner-rotate 0.8s linear infinite;
}

@keyframes ymg-spinner-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.ymg-submit-success-backdrop {
  position: fixed;
  inset: 0;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  cursor: default;
  z-index: 0;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .support-hero {
    padding: 44px 20px 56px;
  }

  .support-faq,
  .support-contact,
  .support-explore {
    padding-left: 40px;
    padding-right: 40px;
  }

  .support-explore__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .support-hero__title {
    font-size: clamp(44px, 12vw, 58px);
  }

  .support-hero__links {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 640px) {
  .ymg-contact-form__row {
    flex-direction: column;
    gap: 20px;
  }
}

@media (max-width: 749px) {
  .ymg-submit-success-modal {
    width: calc(var(--app-width, 100vw) * 0.95);
    max-width: calc(var(--app-width, 100vw) * 0.95);
  }
}
