/* ==========================================================================
   ASHER Vibe Pahol-Ari — Coming Soon landing page
   สไตล์ทั้งหมดของเว็บอยู่ในไฟล์นี้ไฟล์เดียว
   ========================================================================== */

:root {
  --cs-cream: #faf2da;
  --cs-navy: #1b3b7f;
  --cs-navy-btn: #1f4499;
  --cs-navy-btn-hover: #17357a;
  --cs-text: #3c4043;
  --cs-muted: #8b8f94;
  --cs-border: #e3e5e8;
  --cs-facebook: #1877f2;
  --cs-line: #06c755;
  --cs-radius: 10px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--cs-cream);
  color: var(--cs-text);
  font-family: Prompt, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

img {
  max-width: 100%;
}

/* --------------------------------------------------------------- hero --- */

.cs-hero {
  display: block;
  line-height: 0;
}

.cs-hero picture {
  display: block;
}

.cs-hero img {
  width: 100%;
  height: auto;
  display: block;
}

/* ----------------------------------------------------------- register --- */

.cs-register {
  padding: 40px 20px 56px;
}

.cs-card {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 56px 24px 48px;
  background-color: #fff;
  border-radius: 24px;
  box-shadow: 0 2px 24px rgba(0, 0, 0, .04);
}

.cs-title {
  max-width: 760px;
  margin: 0 auto 32px;
  color: var(--cs-navy);
  text-align: center;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.5;
}

/* ระยะกว้างของคอลัมน์ฟอร์ม ใช้ร่วมกันทั้งปุ่ม social / ฟิลด์ / ปุ่มส่ง */
.cs-inner {
  width: 100%;
  max-width: 745px;
  margin: 0 auto;
}

/* ------------------------------------------------------ social buttons --- */

.cs-auth {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 22px;
}

.cs-auth-btn {
  width: 240px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: filter .15s ease, background-color .15s ease;
}

.cs-auth-btn:hover {
  filter: brightness(.95);
}

.cs-auth-btn svg {
  flex: none;
}

.cs-auth-btn--facebook {
  background-color: var(--cs-facebook);
  color: #fff;
}

.cs-auth-btn--google {
  background-color: #fff;
  border-color: #dadce0;
  color: #3c4043;
}

.cs-auth-btn--line {
  background-color: var(--cs-line);
  color: #fff;
}

.cs-auth-btn--tel {
  background-color: var(--cs-navy-btn);
  color: #fff;
}

/* ตัวคั่นความสูง 0 บังคับให้ปุ่ม LINE ตกลงไปอยู่แถวที่ 2 เสมอ
   (ถ้าใช้ flex-basis:100% ที่ตัวปุ่มเอง max-width จะทำให้มันกลับขึ้นมาแถวเดียวกัน) */
.cs-auth-break {
  flex-basis: 100%;
  height: 0;
}

.cs-line-badge {
  padding: 1px 7px;
  background-color: #fff;
  border-radius: 5px;
  color: var(--cs-line);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .5px;
}

/* --------------------------------------------------------- or divider --- */

.cs-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
  color: var(--cs-muted);
  font-size: 14px;
}

.cs-divider::before,
.cs-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: var(--cs-border);
}

/* --------------------------------------------------------------- form --- */

.cs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.cs-field--full {
  grid-column: 1 / -1;
}

.cs-input,
.cs-select {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  background-color: #fff;
  border: 1px solid var(--cs-border);
  border-radius: var(--cs-radius);
  color: var(--cs-text);
  font-family: inherit;
  font-size: 15px;
}

.cs-input::placeholder {
  color: var(--cs-muted);
}

.cs-input:focus,
.cs-select:focus {
  border-color: var(--cs-navy);
  outline: 2px solid rgba(27, 59, 127, .12);
  outline-offset: 0;
}

/* select: ซ่อนลูกศรเดิมของเบราว์เซอร์ แล้ววาดลูกศรเองให้ตรงดีไซน์ */
.cs-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  color: var(--cs-muted);
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%233c4043' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.cs-select.is-filled {
  color: var(--cs-text);
}

/* ---------------------------------------------------------- recaptcha --- */

.cs-recaptcha {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

/* ------------------------------------------------------------- notice --- */

.cs-notice {
  max-width: 640px;
  margin: 24px auto 0;
  color: #6b6f74;
  text-align: center;
  font-size: 13px;
  line-height: 1.7;
}

.cs-notice a {
  color: #6b6f74;
  font-weight: 600;
  text-decoration: underline;
}

/* ------------------------------------------------------- submit / cta --- */

.cs-submit-wrap {
  margin-top: 28px;
  text-align: center;
}

.cs-submit {
  min-width: 160px;
  padding: 13px 40px;
  background-color: var(--cs-navy-btn);
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color .15s ease;
}

.cs-submit:hover {
  background-color: var(--cs-navy-btn-hover);
}

.cs-submit[disabled] {
  opacity: .6;
  cursor: not-allowed;
}

/* ------------------------------------------------------------- mobile --- */

@media screen and (max-width: 767px) {
  .cs-register {
    padding: 28px 16px 40px;
  }

  .cs-card {
    padding: 36px 20px 32px;
    border-radius: 18px;
  }

  /* ย่อขนาดตามความกว้างจอ กันบรรทัด "ลงทะเบียนรับสิทธิ์เยี่ยมชมก่อนใคร" ตกบรรทัด */
  .cs-title {
    margin-bottom: 26px;
    font-size: clamp(15px, 4.4vw, 20px);
  }

  /* มือถือ: ปุ่ม social เรียงลงมาเต็มความกว้าง ไม่ต้องใช้ตัวคั่น */
  .cs-auth {
    flex-direction: column;
    gap: 12px;
  }

  .cs-auth-btn {
    width: 100%;
    max-width: none;
  }

  .cs-auth-break {
    display: none;
  }

  /* placeholder ช่องเบอร์โทรยาวกว่าช่องอื่น ย่อลงไม่ให้โดนตัดท้าย */
  .cs-input--tel::placeholder {
    font-size: 12px;
  }

  .cs-grid {
    grid-template-columns: 1fr;
  }

  .cs-input,
  .cs-select {
    height: 50px;
    font-size: 14px;
  }

  .cs-notice {
    font-size: 12px;
  }

  .cs-submit {
    width: 100%;
    max-width: 260px;
  }
}

/* reCAPTCHA กว้าง 304px คงที่ — ย่อลงบนจอแคบมากเพื่อไม่ให้ล้นขอบ */
@media screen and (max-width: 360px) {
  .cs-recaptcha {
    transform: scale(.88);
    transform-origin: center;
  }
}
