* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  min-height: 100%;
  font-family: Arial, sans-serif;
  color: #12322d;
}
body {
  background: #fbf0df;
}
.page {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 75% 40%,
      rgba(195, 150, 54, 0.18),
      transparent 25%
    ),
    linear-gradient(110deg, #fff8ed, #f4e4cf);
}
.page:after {
  content: "";
  position: absolute;
  width: 580px;
  height: 580px;
  border: 2px solid rgba(190, 142, 42, 0.35);
  border-radius: 50%;
  right: -180px;
  top: 110px;
}
.top {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: min(1180px, 92%);
  margin: auto;
  padding: 26px 0;
}
.logo {
  width: 250px;
  max-height: 90px;
  object-fit: contain;
  object-position: left;
}
.lang button {
  border: 0;
  background: none;
  color: #0a4439;
  cursor: pointer;
  font-weight: 700;
}
.main {
  position: relative;
  z-index: 2;
  width: min(1180px, 92%);
  margin: auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  min-height: calc(100vh - 160px);
  gap: 60px;
  padding: 40px 0 70px;
}
.eyebrow {
  color: #9c772a;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  font-size: 0.75rem;
}
.copy h1 {
  font:
    clamp(3.2rem, 6vw, 6rem)/0.98 Georgia,
    serif;
  font-weight: 400;
  margin: 18px 0 25px;
  max-width: 780px;
}
.copy > p {
  max-width: 650px;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #455e59;
}
.countdown {
  display: flex;
  gap: 12px;
  margin: 32px 0;
}
.time {
  min-width: 82px;
  background: #fffaf1cc;
  border: 1px solid #dfc58e;
  border-radius: 10px;
  padding: 14px;
  text-align: center;
}
.time strong {
  display: block;
  font: 1.8rem Georgia;
  color: #9a701b;
}
.time span {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.newsletter {
  background: rgba(255, 250, 242, 0.9);
  border: 1px solid #e5cf9e;
  border-radius: 18px;
  padding: 34px;
  box-shadow: 0 25px 60px rgba(67, 48, 17, 0.12);
  backdrop-filter: blur(10px);
}
.mark {
  width: 170px;
  margin: 0 auto 20px;
}
.newsletter h2 {
  text-align: center;
  font: 2.1rem Georgia;
  margin: 8px;
}
.newsletter .intro {
  text-align: center;
  color: #61716e;
}
.form {
  display: grid;
  gap: 13px;
  margin-top: 25px;
}
.field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.field input {
  width: 100%;
  padding: 14px;
  border: 1px solid #d9c8a9;
  border-radius: 8px;
  background: white;
  font: inherit;
  outline: none;
}
.field input:focus {
  border-color: #b78b2d;
  box-shadow: 0 0 0 3px rgba(183, 139, 45, 0.12);
}
.field input.invalid {
  border-color: #b33b35;
}
.error {
  display: block;
  min-height: 17px;
  color: #a52f2a;
  font-size: 0.72rem;
  margin-top: 4px;
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.78rem;
  color: #536561;
}
.check input {
  margin-top: 3px;
}
.submit {
  border: 0;
  border-radius: 8px;
  background: #073f36;
  color: white;
  padding: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
}
.submit:hover {
  background: #0a5144;
}
.privacy {
  font-size: 0.7rem;
  text-align: center;
  color: #71807c;
}
.message {
  display: none;
  padding: 12px;
  border-radius: 7px;
  font-size: 0.84rem;
}
.message.success {
  display: block;
  background: #e7f3ec;
  color: #145d42;
}
.message.failure {
  display: block;
  background: #f8e8e5;
  color: #8e2f29;
}
.footer {
  position: relative;
  z-index: 2;
  width: min(1180px, 92%);
  margin: auto;
  padding: 0 0 28px;
  display: flex;
  justify-content: space-between;
  color: #6a7773;
  font-size: 0.78rem;
}
.social a {
  margin-left: 15px;
  color: #8c681c;
}
[dir="rtl"] .logo {
  object-position: right;
}
[dir="rtl"] .social a {
  margin-left: 0;
  margin-right: 15px;
}
@media (max-width: 850px) {
  .main {
    grid-template-columns: 1fr;
    gap: 25px;
    padding-top: 15px;
  }
  .copy {
    text-align: center;
  }
  .copy > p {
    margin-left: auto;
    margin-right: auto;
  }
  .countdown {
    justify-content: center;
  }
  .newsletter {
    max-width: 620px;
    margin: auto;
    width: 100%;
  }
  .footer {
    margin-top: 20px;
  }
}
@media (max-width: 520px) {
  .top {
    align-items: flex-start;
  }
  .logo {
    width: 190px;
  }
  .copy h1 {
    font-size: 3.25rem;
  }
  .countdown {
    gap: 6px;
  }
  .time {
    min-width: 0;
    flex: 1;
    padding: 10px 5px;
  }
  .time strong {
    font-size: 1.45rem;
  }
  .newsletter {
    padding: 24px 18px;
  }
  .footer {
    display: grid;
    gap: 12px;
    text-align: center;
  }
  .social a {
    margin: 0 8px;
  }
  .page:after {
    width: 350px;
    height: 350px;
  }
}
.powered-by {
  position: relative;
  z-index: 3;
  background: #050908;
  color: #fff;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.powered-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}
.powered-link:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}
.powered-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
}
.powered-name {
  font-weight: 700;
  font-size: 1.08rem;
}
[dir="rtl"] .powered-link {
  flex-direction: row-reverse;
}
@media (max-width: 520px) {
  .powered-by {
    min-height: 66px;
  }
  .powered-logo {
    width: 39px;
    height: 39px;
  }
  .powered-link {
    gap: 10px;
    font-size: 0.9rem;
  }
  .powered-name {
    font-size: 1rem;
  }
}

/* ==================================================
   Newsletter Validation
   ================================================== */

.field input.invalid {
  border-color: #c62828;
  outline-color: #c62828;
}

.error {
  display: block;
  min-height: 18px;
  margin-top: 6px;
  color: #b42318;
  font-size: 0.82rem;
}

.human-check {
  margin-top: 18px;
}

.human-check label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.human-check input {
  width: 100%;
}

.submit:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.message {
  margin-top: 15px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.success-message {
  padding: 12px 14px;
  border-radius: 8px;
  background: #edf7ed;
  color: #1b5e20;
}

.error-message {
  padding: 12px 14px;
  border-radius: 8px;
  background: #fff1f0;
  color: #b42318;
}
