:root {
  --burgundy: #5a102c;
  --ink: #1b1818;
  --muted: #685d67;
  --border: #9c6e86;
  --error: #9f2844;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  color: var(--ink);
  background: #f1e9f5;
  font-family: Inter, Arial, sans-serif;
}
h1, h2, p { margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; }
.signup-card {
  position: relative;
  display: grid;
  grid-template-columns: 45% 55%;
  width: 100%;
  max-width: 1600px;
  min-height: 800px;
  margin-inline: auto;
  overflow: hidden;
  background: #f1e9f5;
}
.content-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 42px;
  padding: 40px clamp(32px, 4vw, 64px);
  background: linear-gradient(125deg, #f3edf8, #f5e7f1);
}
.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.monogram { width: 60px; height: 60px; }
.wordmark { display: block; width: min(320px, 100%); height: auto; }
.signup-content, #signup-default { width: 100%; }
h1, h2 {
  color: var(--burgundy);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(38px, 3.875vw, 62px);
  line-height: 1.08;
  font-weight: 500;
  font-style: italic;
  letter-spacing: -1.6px;
  text-align: center;
}
.divider {
  width: 126px;
  height: 1px;
  margin: 25px auto;
  background: #9d607e;
}
.description {
  max-width: 490px;
  margin-inline: auto;
  font-size: clamp(16px, 1.25vw, 20px);
  line-height: 1.55;
  text-align: center;
}
.form-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 32px;
}
.input-wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  min-height: 60px;
  padding-inline: 24px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #ffffff70;
}
.envelope { flex: none; color: var(--burgundy); }
input {
  width: 100%;
  min-width: 0;
  padding: 16px 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  font-size: 18px;
  line-height: 26px;
  text-align: start;
}
input::placeholder { color: var(--muted); opacity: 1; }
.input-wrap:focus-within {
  border-color: var(--burgundy);
  box-shadow: 0 0 0 1px var(--burgundy), 0 0 0 4px #5a102c16;
  background: #fffafe;
}
.input-wrap.is-invalid {
  border-color: var(--error);
  box-shadow: 0 0 0 1px var(--error);
  background: #fff6f8;
}
.validation { padding-inline: 8px; color: var(--error); font-size: 13px; line-height: 20px; }
.signup-button {
  width: 100%;
  min-height: 60px;
  padding: 14px 20px;
  border: 0;
  border-radius: 18px;
  background: var(--burgundy);
  color: #fff9f5;
  font-size: 20px;
  line-height: 28px;
  font-weight: 500;
}
.signup-button:hover { background: #751a40; }
.signup-button:focus-visible, .close:focus-visible { outline: 2px solid var(--burgundy); outline-offset: 4px; }
.signup-button:disabled { background: #d9c8d6; color: #786a75; cursor: default; }
.consent {
  padding: 2px 8px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
  text-align: center;
}
.photo-panel { position: relative; overflow: hidden; min-height: 800px; background: #eee6f4; }
.photo-panel img {
  position: absolute;
  top: 50%;
  left: -54.545%;
  display: block;
  width: 161.616%;
  max-width: none;
  height: auto;
  transform: translateY(-50%);
}
.close {
  position: absolute;
  inset-inline-end: 16px;
  top: 14px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--burgundy);
  font-family: Arial, sans-serif;
  font-size: 28px;
  line-height: 1;
}
.success-message { text-align: center; outline: none; }
.success-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 24px;
  border: 1px solid #9d607e;
  border-radius: 50%;
  color: var(--burgundy);
  font-size: 23px;
}
.success-message p { max-width: 410px; margin-inline: auto; font-size: 20px; line-height: 1.6; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
html[lang="ar"] body { font-family: "Noto Sans Arabic", Tahoma, Arial, sans-serif; }
html[lang="ar"] h1, html[lang="ar"] h2 {
  font-family: "Noto Naskh Arabic", Georgia, serif;
  font-style: normal;
  letter-spacing: 0;
  font-size: clamp(40px, 3.5vw, 56px);
  line-height: 1.4;
}
html[lang="ar"] .description { font-size: 18px; line-height: 1.9; }
html[lang="ar"] .consent { line-height: 1.9; }
html[lang="ar"] .input-wrap:focus-within input:not(:placeholder-shown) { direction: ltr; text-align: right; }

@media (max-width: 1100px) and (min-width: 901px) {
  .signup-card { grid-template-columns: 50% 50%; }
  .content-panel { padding-inline: 28px; }
  h1 { letter-spacing: -1px; }

}
@media (max-width: 900px) {
  .signup-card { display: flex; flex-direction: column; min-height: 844px; }
  .content-panel { display: contents; }
  .brand {
    order: 0;
    flex: none;
    width: 100%;
    height: 92px;
    gap: 5px;
    justify-content: center;
    background: #f2eaf6;
  }
  .monogram { width: 34px; height: 34px; }
  .wordmark { width: 228px; }
  .photo-panel { order: 1; flex: none; width: 100%; min-height: 0; height: clamp(220px, 64.615vw, 360px); }
  .photo-panel img { top: -6%; left: auto; right: 0; width: 128.205%; height: auto; transform: none; }
  .signup-content {
    order: 2;
    flex: 1;
    padding: 26px 24px 36px;
    background: linear-gradient(135deg, #f3edf8, #f5e7f1);
  }
  h1, h2 { font-size: clamp(32px, 9.74vw, 46px); line-height: 1.13; letter-spacing: -.9px; }
  .divider { width: 82px; margin-block: 17px; }
  .description { font-size: 15px; line-height: 1.55; }
  .form-stack { gap: 12px; margin-top: 22px; }
  .input-wrap { min-height: 52px; padding-inline: 18px; gap: 12px; border-radius: 14px; }
  input { padding-block: 12px; font-size: 16px; line-height: 26px; }
  .envelope { width: 23px; height: 23px; }
  .signup-button { min-height: 52px; padding: 12px 18px; border-radius: 14px; font-size: 16px; }
  .consent { padding: 2px 0 0; font-size: 11px; line-height: 1.6; }
  .success-message { padding-block: 28px; }
  .success-message p { font-size: 16px; }
  html[lang="ar"] h1, html[lang="ar"] h2 { font-size: 39px; line-height: 1.5; }
  html[lang="ar"] .description { font-size: 15px; line-height: 1.9; }
}

/* Popup canvas: preserve the supplied composition at comfortable modal sizes. */
html { color-scheme: light; }
.signup-card { min-height: 650px; }
.photo-panel { min-height: 650px; }
.content-panel { gap: 24px; padding: 30px 36px; }
h1,h2 { font-size: clamp(34px,3.875vw,54px); }
@media (min-width:901px) and (max-width:1200px) {
 .signup-card { grid-template-columns: 46% 54%; }
 .content-panel { padding: 28px; gap: 22px; }
 .description { font-size: 16px; }
 .form-stack { margin-top:24px; }
 .monogram { width:44px; height:44px; }
 .wordmark { width:260px; }
}
@media (max-width:900px) {
 .signup-card { min-height:0; }
 .content-panel { display:contents; }
 .photo-panel { min-height:0; }
 .brand { height:82px; }
 .signup-content { padding:22px 24px 28px; }
 .photo-panel { height:clamp(190px,58vw,290px); }
 html[lang="ar"] h1,html[lang="ar"] h2 { font-size:34px; }
}
