/*
  AWR Course Manager form styles.
  Covers both:
  - .awrcm-webinar-form
  - .awrcm-masterclass-form
*/

.awrcm-course-signup-form {
  --awrcm-form-blue: #253f68;
  --awrcm-form-blue-soft: #6f82c4;
  --awrcm-form-pink: #e4bfb4;
  --awrcm-form-pink-strong: #cf82ad;
  --awrcm-form-border: rgba(37, 63, 104, 0.48);
  --awrcm-form-white: #ffffff;
  --awrcm-form-muted: #9f9f9f;

  max-width: 1080px;
  margin: 0 auto;
  padding: 56px 28px;
  font-family: Arial, sans-serif;
  text-align: center;
}

.awrcm-course-signup-form *,
.awrcm-course-signup-form *::before,
.awrcm-course-signup-form *::after {
  box-sizing: border-box;
}

.awrcm-course-signup-form form {
  display: grid !important;
  gap: 28px !important;
  margin: 0 !important;
  padding: 0 !important;
}

.awrcm-course-signup-form h2 {
  margin: 0 0 20px !important;
  padding: 0 !important;
  color: var(--awrcm-form-blue-soft) !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(44px, 6vw, 78px) !important;
  font-weight: 400 !important;
  line-height: 1.05 !important;
  text-align: center !important;
}

.awrcm-course-signup-form .awrcm-form-selected-summary {
  display: grid !important;
  gap: 4px !important;
  justify-items: center !important;
  margin: -8px 0 2px !important;
  color: var(--awrcm-form-pink) !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-weight: 400 !important;
}

.awrcm-course-signup-form .awrcm-form-selected-summary::before {
  content: "❦";
  display: block;
  width: min(280px, 70%);
  margin: 0 auto 8px;
  color: var(--awrcm-form-pink);
  font-size: 28px;
  line-height: 1;
  text-align: center;
  border-top: 1px solid rgba(228, 191, 180, 0.45);
}

.awrcm-course-signup-form .awrcm-form-selected-summary span,
.awrcm-course-signup-form .awrcm-form-selected-summary strong {
  color: inherit !important;
  font-family: inherit !important;
  font-size: clamp(26px, 3vw, 38px) !important;
  font-weight: 400 !important;
  line-height: 1.15 !important;
}

.awrcm-webinar-form .awrcm-form-selected-summary {
  display: none !important;
}

.awrcm-course-signup-form .awrcm-form-schedule {
  display: grid !important;
  gap: 26px !important;
  padding: clamp(28px, 4vw, 42px) !important;
  border: 1px solid var(--awrcm-form-border) !important;
  border-radius: 32px !important;
  background: rgba(255, 255, 255, 0.18) !important;
}

.awrcm-course-signup-form .awrcm-form-date {
  display: grid !important;
  gap: 20px !important;
  margin: 0 !important;
}

.awrcm-course-signup-form .awrcm-form-date > span,
.awrcm-course-signup-form .awrcm-form-time legend {
  margin: 0 !important;
  padding: 0 !important;
  color: var(--awrcm-form-blue-soft) !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(30px, 4vw, 48px) !important;
  font-weight: 400 !important;
  line-height: 1.05 !important;
  text-align: center !important;
}

.awrcm-course-signup-form .awrcm-form-time {
  display: grid !important;
  gap: 20px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

.awrcm-course-signup-form .awrcm-form-time::before {
  content: "❦";
  display: block;
  width: 100%;
  margin: 4px 0 6px;
  color: var(--awrcm-form-pink);
  font-size: 30px;
  line-height: 1;
  text-align: center;
  border-top: 1px solid rgba(228, 191, 180, 0.55);
}

.awrcm-course-signup-form select,
.awrcm-course-signup-form input[type="text"],
.awrcm-course-signup-form input[type="email"],
.awrcm-course-signup-form input[type="tel"] {
  width: 100% !important;
  min-height: 76px !important;
  margin: 0 !important;
  padding: 16px 42px !important;
  border: 1px solid var(--awrcm-form-border) !important;
  border-radius: 999px !important;
  background-color: #ffffff !important;
  box-shadow: none !important;
  color: var(--awrcm-form-blue) !important;
  font-family: Arial, sans-serif !important;
  font-size: clamp(24px, 3vw, 36px) !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  text-align: center !important;
}

.awrcm-course-signup-form input[type="text"],
.awrcm-course-signup-form input[type="email"],
.awrcm-course-signup-form input[type="tel"] {
  padding-left: 110px !important;
  text-align: left !important;
  background-repeat: no-repeat !important;
  background-position: 42px 50% !important;
  background-size: 34px 34px !important;
}

.awrcm-course-signup-form input[name="first_name"] {
  background-image: url("data:image/svg+xml,%3Csvg width='34' height='34' viewBox='0 0 24 24' fill='none' stroke='%23758aa8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 21a8 8 0 0 0-16 0'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E") !important;
}

.awrcm-course-signup-form input[name="email"] {
  background-image: url("data:image/svg+xml,%3Csvg width='34' height='34' viewBox='0 0 24 24' fill='none' stroke='%23758aa8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E") !important;
}

.awrcm-course-signup-form input[name="phone"] {
  background-image: url("data:image/svg+xml,%3Csvg width='34' height='34' viewBox='0 0 24 24' fill='none' stroke='%23758aa8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2A19.86 19.86 0 0 1 11.19 18a19.5 19.5 0 0 1-6-6A19.86 19.86 0 0 1 2.08 4.18 2 2 0 0 1 4.06 2h3a2 2 0 0 1 2 1.72c.12.9.33 1.77.62 2.61a2 2 0 0 1-.45 2.11L8 9.67a16 16 0 0 0 6.33 6.33l1.23-1.23a2 2 0 0 1 2.11-.45c.84.29 1.71.5 2.61.62A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E") !important;
}

.awrcm-course-signup-form input::placeholder {
  color: var(--awrcm-form-muted) !important;
  opacity: 1 !important;
}

.awrcm-course-signup-form .awrcm-form-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 34px !important;
}

.awrcm-course-signup-form .awrcm-form-time-options {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 26px !important;
}

.awrcm-course-signup-form .awrcm-form-time-option {
  display: inline-flex !important;
  min-width: min(320px, 100%) !important;
  margin: 0 !important;
  cursor: pointer !important;
}

.awrcm-course-signup-form .awrcm-form-time-option input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
}

.awrcm-course-signup-form .awrcm-form-time-option span {
  display: inline-flex !important;
  width: 100% !important;
  min-height: 66px !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 14px 34px !important;
  border: 1px solid var(--awrcm-form-blue-soft) !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  color: var(--awrcm-form-blue) !important;
  font-family: Arial, sans-serif !important;
  font-size: clamp(22px, 2.5vw, 32px) !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em !important;
  line-height: 1.2 !important;
}

.awrcm-course-signup-form .awrcm-form-time-option input:checked + span {
  background: linear-gradient(135deg, var(--awrcm-form-blue-soft), #536fc4) !important;
  border-color: transparent !important;
  color: #ffffff !important;
}

.awrcm-course-signup-form .awrcm-form-consent {
  display: flex !important;
  max-width: 880px !important;
  gap: 22px !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  margin: 0 auto !important;
  text-align: left !important;
  color: var(--awrcm-form-blue) !important;
  font-family: Arial, sans-serif !important;
  font-size: clamp(17px, 2vw, 24px) !important;
  line-height: 1.55 !important;
}

.awrcm-course-signup-form .awrcm-form-consent input {
  flex: 0 0 auto !important;
  width: 28px !important;
  height: 28px !important;
  min-height: 0 !important;
  margin: 7px 0 0 !important;
  padding: 0 !important;
}

.awrcm-course-signup-form button[type="submit"] {
  display: inline-flex !important;
  width: min(820px, 100%) !important;
  min-height: 86px !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 8px auto 0 !important;
  padding: 18px 34px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--awrcm-form-pink) !important;
  box-shadow: none !important;
  color: var(--awrcm-form-blue) !important;
  font-family: Arial, sans-serif !important;
  font-size: clamp(24px, 3vw, 36px) !important;
  font-weight: 800 !important;
  letter-spacing: 0.18em !important;
  line-height: 1.2 !important;
  text-align: center !important;
  text-decoration: none !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
}

.awrcm-course-signup-form button[type="submit"]:hover,
.awrcm-course-signup-form button[type="submit"]:focus {
  background: var(--awrcm-form-pink) !important;
  color: var(--awrcm-form-blue) !important;
  box-shadow: none !important;
}

.awrcm-course-signup-form .awrcm-form-message {
  margin: 0 auto 24px !important;
  padding: 14px 18px !important;
  border-radius: 12px !important;
  font-family: Arial, sans-serif !important;
  font-size: 16px !important;
  font-weight: 700 !important;
}

.awrcm-course-signup-form .awrcm-form-message--success {
  border: 1px solid #b9e2c1 !important;
  background: #effaf1 !important;
  color: #166534 !important;
}

.awrcm-course-signup-form .awrcm-form-message--error {
  border: 1px solid #f1b7b7 !important;
  background: #fff1f1 !important;
  color: #991b1b !important;
}

/* Webinar light variant */
.awrcm-webinar-form {
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.92), rgba(227, 247, 244, 0.72)) !important;
}

.awrcm-webinar-form .awrcm-form-schedule {
  background: rgba(255, 255, 255, 0.24) !important;
}

/* Masterclass blue variant */
.awrcm-masterclass-form {
  --awrcm-form-blue: #ffffff;
  --awrcm-form-blue-soft: #ffffff;
  --awrcm-form-pink: #d18ab3;
  --awrcm-form-pink-strong: #d18ab3;
  --awrcm-form-border: rgba(255, 255, 255, 0.22);
  --awrcm-form-muted: #a7aab7;

  padding: clamp(38px, 5vw, 64px) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 34px !important;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.10), transparent 36%),
    linear-gradient(135deg, #4d6fae 0%, #4566a1 48%, #3c5a8f 100%) !important;
}

.awrcm-masterclass-form h2 {
  color: #ffffff !important;
}

.awrcm-masterclass-form .awrcm-form-schedule {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.awrcm-masterclass-form .awrcm-form-date > span,
.awrcm-masterclass-form .awrcm-form-time legend {
  color: #ffffff !important;
}

.awrcm-masterclass-form select,
.awrcm-masterclass-form input[type="text"],
.awrcm-masterclass-form input[type="email"],
.awrcm-masterclass-form input[type="tel"] {
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #1f365f !important;
}

.awrcm-masterclass-form .awrcm-form-time-option span {
  background: transparent !important;
  border-color: rgba(255, 255, 255, 0.62) !important;
  color: #ffffff !important;
}

.awrcm-masterclass-form .awrcm-form-time-option input:checked + span {
  background: linear-gradient(135deg, #d18ab3, #c984ad) !important;
  border-color: transparent !important;
  color: #ffffff !important;
}

.awrcm-masterclass-form .awrcm-form-consent {
  color: #ffffff !important;
}

.awrcm-masterclass-form button[type="submit"] {
  background: linear-gradient(135deg, #d18ab3, #c984ad) !important;
  color: #ffffff !important;
}

.awrcm-masterclass-form button[type="submit"]:hover,
.awrcm-masterclass-form button[type="submit"]:focus {
  background: linear-gradient(135deg, #d18ab3, #c984ad) !important;
  color: #ffffff !important;
}

@media (max-width: 760px) {
  .awrcm-course-signup-form {
    padding: 36px 16px;
  }

  .awrcm-course-signup-form .awrcm-form-schedule {
    padding: 24px 18px !important;
    border-radius: 24px !important;
  }

  .awrcm-course-signup-form .awrcm-form-grid {
    grid-template-columns: 1fr !important;
    gap: 22px !important;
  }

  .awrcm-course-signup-form select,
  .awrcm-course-signup-form input[type="text"],
  .awrcm-course-signup-form input[type="email"],
  .awrcm-course-signup-form input[type="tel"] {
    min-height: 64px !important;
    font-size: 22px !important;
  }

  .awrcm-course-signup-form input[type="text"],
  .awrcm-course-signup-form input[type="email"],
  .awrcm-course-signup-form input[type="tel"] {
    padding-left: 72px !important;
    background-position: 24px 50% !important;
    background-size: 28px 28px !important;
  }

  .awrcm-course-signup-form .awrcm-form-time-options {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .awrcm-course-signup-form .awrcm-form-time-option {
    min-width: 0 !important;
  }

  .awrcm-course-signup-form .awrcm-form-consent {
    font-size: 16px !important;
  }

  .awrcm-course-signup-form button[type="submit"] {
    min-height: 72px !important;
    letter-spacing: 0.12em !important;
  }
}
