/* FTAF Landing Page */

section.forward-to-friend-section .registration-heading {
  padding-bottom: 32px;
  position: relative;
  z-index: 1;
  max-width: 554px;
}

section.forward-to-friend-section span.code {
  position: relative;
  left: 16px;
  color: #535353;
  font-family: "AvenirNextLT-Pro-Regular";
  -webkit-font-smoothing: auto;
}

section.forward-to-friend-section .iti__selected-flag:before {
  content: "";
  position: absolute;
  left: 54px;
  top: 0;
  width: 1px;
  height: 100%;
  background: #c6aa76;
}

.iti__selected-flag {
  z-index: 1;
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  padding: 1px 6px 0 8px;
}

section.forward-to-friend-section .registration-heading h2 {
  color: #ffffff;
  font-size: 64px;
  font-weight: 500;
  line-height: 70.4px;
  letter-spacing: -0.64px;
  margin-bottom: 16px;
  font-family: "Libre Caslon Text", serif;
  margin-top: 40px;
}

section.forward-to-friend-section .registration-heading p {
  color: #ffffff;
  font-size: 18px;
  font-weight: 400;
  line-height: 27px;
  font-family: "AvenirNextLT-Pro-Regular";
}

section.forward-to-friend-section form {
  padding: 200px 0px 128px;
  background-color: #f4f0ee;
  height: 100%;
  max-width: 1140px;
  margin: 0 auto;
  flex-direction: column;
  box-sizing: border-box;
}

section.forward-to-friend-section form ::-webkit-input-placeholder {
  color: #535353;
  font-size: 16px;
  line-height: 24px;
  font-family: "AvenirNextLT-Pro-Regular";
}

section.forward-to-friend-section input#registration-phone {
  padding-left: 94px;
  width: 536px;
  padding-top: 16px;
}

section.forward-to-friend-section input#submit-forward {
  display: inline-block;
  width: auto;
  margin: 0;
  cursor: pointer;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  pointer-events: all;
  text-transform: uppercase;
  color: #ffffff;
  padding: 13px 20px;
  font-family: "AvenirNext-Medium";
  letter-spacing: 1.28px;
  background-color: #df2f08;
  border: 0px;
  height: 48px !important;
  -webkit-font-smoothing: auto;
}

/* Override pointer-events when form is valid */
section.forward-to-friend-section input#submit-forward.form-valid {
  pointer-events: auto;
}

section.forward-to-friend-section input#submit-forward[disabled] {
  background: #df2f08;
  box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);
  pointer-events: none;
  border: 2px solid #1c1b19 !important;
  height: 48px !important;
  font-family: "AvenirNext-Medium";
  -webkit-font-smoothing: auto;
  -webkit-text-fill-color: #ffffff !important;
}

.box-container {
  flex: 9;
}

.form-verify-button {
  flex: 1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, 0%);
}

.rewards-logo img.main-logo {
  display: block;
  margin: 9px auto;
  max-width: 275px;
}

section.forward-to-friend-section .flex-inputs {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

section.forward-to-friend-section .flex-inputs p {
  margin: 0;
}

section.forward-to-friend-section label {
  font-size: 16px;
  line-height: 20px;
  font-family: "AvenirNextLT-Pro-Regular" !important;
  color: #1c1b19;
  -webkit-font-smoothing: auto;
  padding-bottom: 8px;
}

.code-status {
  font-family: "AvenirNextLT-Pro-Regular" !important;
}

section.forward-to-friend-section .flex-inputs label {
  color: #000;
  font-size: 14px;
  line-height: 20px;
}

section.forward-to-friend-section .form-column {
  width: 100%;
  position: relative;
}

.form-single-column p.birthday-message {
  margin: 0px;
  padding-top: 6px;
}

section.forward-to-friend-section .form-column {
  width: 100%;
  position: relative;
}

section.forward-to-friend-section .form-single-column {
  position: relative;
}

section.forward-to-friend-section span.error-message,
section.forward-to-friend-section .date-error-phone,
section.forward-to-friend-section .date-error, section.forward-to-friend-section span.error-msg  {
  color: #d5250a;
  position: absolute;
  bottom: -30px;
  left: 0;
  font-size: 14px;
  height: fit-content;
  height: 26px;
  font-family: "AvenirNextLT-Pro-Regular";
  -webkit-font-smoothing: auto;
}

section.forward-to-friend-section div#date-error {
  color: #d5250a;
  position: absolute;
  bottom: -16px;
  left: 0;
  font-size: 14px;
  font-family: "AvenirNextLT-Pro-Regular";
  -webkit-font-smoothing: auto;
}

/* heading styling */

.form-heading h1 {
  font-family: "Libre Caslon Text", serif;
  font-style: italic;
  font-size: 40px;
  line-height: 48px;
  color: #1c1b19;
  margin: 0px 0px 32px;
}

.form-heading p {
  color: #1c1b19;
  font-family: "AvenirNextCondenced";
  font-size: 38px;
  line-height: 42px;
  margin: 0 0 32px;
  text-align: center;
  -webkit-font-smoothing: auto;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.text-container h1 {
  font-size: 18px;
  line-height: 28px;
  font-family: "AvenirNextLTPro-Bold";
  margin: 20px 0px 20px;
  color: #1c1b19;
}

@media (max-width: 900px) {
  section.forward-to-friend-section div#date-error {
    position: static;
    margin-top: 4px;
    margin-bottom: -16px;
  }

  .form-single-column .birthday-mesage {
    margin-bottom: 0px;
  }
}

section.forward-to-friend-section input {
  border: 1px solid #c6aa76;
  background: #ffffff;
  padding: 14px 12px;
  box-sizing: border-box;
  width: 100%;
  font-size: 16px;
  color: #535353;
  font-weight: 400;
  font-family: "AvenirNextLT-Pro-Regular";
  height: 48px !important;
  margin: 0 !important;
  -webkit-font-smoothing: auto;
}

section.forward-to-friend-section input::placeholder {
  color: #535353 !important;
  opacity: 1 !important;
  transition: none !important;
  font-family: "AvenirNextLT-Pro-Regular" !important;
  font-weight: 400 !important;
}

section.forward-to-friend-section .form-single-column select {
  width: 100%;
  padding: 10px 14px;
  font-size: 16px;
  line-height: 16px;
  border: 1px solid #c6aa76;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #f4f0ee;
  background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none"%3E%3Cpath d="M5 7.5L10 12.5L15 7.5" stroke="%23C6AA76" stroke-width="1.66667" stroke-linecap="round" stroke-linejoin="round"/%3E%3C/svg%3E') !important;
  background-repeat: no-repeat !important;
  background-position: right 10px center !important;
  background-size: 24px;
  cursor: pointer;
  font-family: "AvenirNextLT-Pro-Regular";
}

section.forward-to-friend-section .form-single-column .iti__arrow {
  margin-left: 6px;
  width: 14px;
  height: 14px;
  border-left: 0px solid transparent;
  border-right: 0px solid transparent;
  border-top: 0px solid #555;
  background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none"%3E%3Cpath d="M5 7.5L10 12.5L15 7.5" stroke="%23C6AA76" stroke-width="1.66667" stroke-linecap="round" stroke-linejoin="round"/%3E%3C/svg%3E');
  background-position: 67% 5%;
  font-family: "AvenirNextLT-Pro-Regular";
  margin-bottom: 8px;
}

section.forward-to-friend-section input#registration-date-picker {
  margin-bottom: 0;
}

section.forward-to-friend-section .iti__arrow--up {
  border-bottom: 0;
}

section.forward-to-friend-section .form-single-column select option[disabled] {
  color: #aaa;
}

section.forward-to-friend-section .iti__flag {
  background-image: none;
  background-color: transparent;
  box-shadow: none;
  font-size: 16px;
  color: #535353;
  margin-bottom: 6px;
  font-family: "AvenirNextLT-Pro-Regular";
  -webkit-font-smoothing: auto;
}

.iti--allow-dropdown .iti__flag-container:hover .iti__selected-flag {
  background-color: #f4f0ee !important;
}

/* WebKit-based browsers (Chrome, Safari) */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
  background-color: #ffffff !important;
  color: #535353 !important;
  box-shadow: 0 0 0px 1000px #ffffff inset !important;
  -webkit-text-fill-color: #535353 !important;
  /* Controls font color */
}

/* Firefox */
input:autofill,
textarea:autofill,
select:autofill {
  background-color: #ffffff !important;
  color: #535353 !important;
  /* Controls font color */
}

.iti__country.iti__highlight {
  background-color: #f4f0ee;
}

.iti__flag-container {
  padding: 2px;
}

section.forward-to-friend-section .iti.iti--allow-dropdown {
  display: inline-block;
  width: 100%;
}

@media (max-width: 768px) {
  section.forward-to-friend-section .regitration-wrapper {
    display: block;
  }

  section.forward-to-friend-section .registration-heading h2 {
    font-size: 48px;
    font-weight: 500;
    line-height: 52.8px;
    letter-spacing: -0.48px;
    margin-top: 24px;
  }

  footer.registration-footer .two-clumn {
    display: block;
  }

  footer.registration-footer .copyright p {
    margin: 8px 0 0;
    text-align: center;
  }

  section.forward-to-friend-section .registration-heading p {
    margin-bottom: 0;
  }

  section.forward-to-friend-section .registration-heading {
    padding-bottom: 0;
  }

  .box-container {
    margin-right: 0px;
  }

  .form-heading p {
    font-size: 28px;
    line-height: 36px;
    letter-spacing: -0.28px;
  }
}

.input-error {
  border: 1px solid #d5250a !important;
}

input:focus,
select:focus {
  border: 2px solid #1c1b19 !important;
  outline: none;
}

#api-error-message {
  color: #d5250a;
  font-family: "AvenirNextLT-Pro-Regular";
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
}

.registration-checkbox-disclaimer {
  color: #535353;
  font-family: "AvenirNextLT-Pro-Regular";
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
  -webkit-font-smoothing: auto;
}

.form-verify-button {
  font-family: "AvenirNextLT-Pro-Regular";
}

.code {
  color: #535353;
  font-size: 16px !important;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
}

.date-error-phone {
  margin-top: -6px;
}

.input-error {
  border: 1px solid #d5250a !important;
}

input:focus,
select:focus {
  border: 2px solid #1c1b19 !important;
  outline: none;
}

/* Apply margin-top: 20px to .form-single-column when .error-message is not empty */
.form-single-column {
  margin-bottom: 24px;
}

section.forward-to-friend-section .date-error-phone {
  bottom: -30px;
}

section.forward-to-friend-section input#submit-forward {
  margin-top: -4px;
}

section.forward-to-friend-section .form-right input:hover,
section.forward-to-friend-section select:hover {
  border: 1px solid var(--border-border-darkgold, #805606);
}

/* Add hover effect to the div to change the background of the input */
.form-single-column:hover input#submit-forward:not(:focus) {
  background: linear-gradient(90deg, #d5250a 0%, #6b1502 100%);
}

/* Change border color to black when #submit-forward is focused */
.form-single-column input#submit-forward:focus {
  background-color: #1c1b19;
  line-height: 0px;
  /* Black color */
}

.iti--allow-dropdown .iti__flag-container,
.iti--separate-dial-code .iti__flag-container {
  right: auto;
  left: 0;
  display: none !important;
}

section.forward-to-friend-section .form-single-column .phone-select {
  width: 100%;
  padding: 12px 0px 12px 10px;
  font-size: 16px;
  color: #1c1b19;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #ffffff;
  background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none"%3E%3Cpath d="M5 7.5L10 12.5L15 7.5" stroke="%23C6AA76" stroke-width="1.66667" stroke-linecap="round" stroke-linejoin="round"/%3E%3C/svg%3E') !important;
  background-repeat: no-repeat !important;
  background-position: right 0px center !important;
  background-size: 24px;
  cursor: pointer;
  font-family: "AvenirNextLT-Pro-Regular";
  -webkit-font-smoothing: auto;
}

section.forward-to-friend-section .form-single-column .box-container {
  display: flex;
  align-items: center;
  padding: 0;
  border-radius: 5px;
  cursor: pointer;
  position: relative;
}

.form-single-column .static-label {
  width: 30px;
  text-align: center;
  margin-left: 5px;
  font-size: 16px;
  position: absolute;
  left: 58px;
  padding-left: 4px;
  padding-top: 2px;
  color: #535353;
  font-weight: 400;
  font-family: "AvenirNextLT-Pro-Regular";
  -webkit-font-smoothing: auto;
}

section.forward-to-friend-section .phone-select {
  position: absolute;
  left: 3px;
  bottom: 5px;
  width: 55px !important;
  height: 37px !important;
  border: 0 !important;
}

section.forward-to-friend-section .static-label:before {
  content: "";
  position: absolute;
  left: 0px;
  top: -15px;
  width: 1px;
  height: 47px;
  background: #c6aa76;
}

select#display-dropdown-1 {
  z-index: 1;
}

select#select-dropdown-1 {
  z-index: 2;
  opacity: 0;
}

section.forward-to-friend-section {
  background-color: #f4f0ee;
}

.forward-to-friend-section .form-right .sub-text {
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  font-family: "AvenirNextLT-Pro-Regular";
  font-style: normal;
  margin-bottom: 16px;
  margin-top: 32px;
  -webkit-font-smoothing: auto;
}

.forward-to-friend-section .form-right .sub-text span {
  padding-right: 16px;
}

.sub-text-space {
  margin: 0 !important;
}

.forward-to-friend-section .sub-text a {
  font-weight: 800;
  font-size: 16px;
  line-height: 24px;
  font-family: "AvenirNextLTPro-Bold";
  font-style: normal;
  color: #1c1b19;
  text-decoration: underline;
  display: inline-block;
  -webkit-font-smoothing: auto;
}

.form-wrapper {
  background-color: #ffffff;
  padding: 64px 20px;
  width: 95%;
}

.wrapper-error-div {
  background-color: #ffffff;
  padding: 264px 20px;
  width: 95%;
}

form#forward-to-friend-form {
  display: flex;
  justify-content: center;
  align-items: center;
}

.heading-profile h1 {
  font-size: 40px;
  line-height: 48px;
  font-family: "Libre Caslon Text", serif;
  font-weight: 400;
  margin: 0px 0px 48px;
  font-style: italic;
  text-align: center;
}

.form-div {
  width: 100%;
  margin: 0 auto;
  max-width: 650px;
}

.error-div {
  width: 100%;
  margin: 0 auto;
  max-width: none;
}

input:disabled {
  color: #535353 !important;
  opacity: 1 !important;
  -webkit-text-fill-color: #535353 !important; 
  border: 1px solid #c6aa76 !important;
}

.form-single-column.form-verify-button {
  display: inline-block;
  margin-bottom: 0px;
}

@media only screen and (min-width: 992px) and (max-width: 1024px) {
  .rewards-logo img.main-logo {
    max-width: 200px;
  }
  .forward-to-friend-section .error-div-container {
    padding : 253px 0px;
    min-height: 900px;
  }
}

@media only screen and (min-width: 769px) and (max-width: 991px) {
  .rewards-logo img.main-logo {
    max-width: 200px;
  }
  .forward-to-friend-section .error-div-container {
    padding : 253px 0px;
    min-height: 900px;
  }
}
@media only screen and (min-width: 768px) and (max-width: 1024px) {
  .forward-to-friend-section .error-div-container {
    padding : 253px 0px;
    min-height: 900px;
  }
  .error-div {
    width: 100%;
    margin: 0 auto;
    max-width: none;
  }
}
@media only screen and (min-width: 1024px) and (max-width: 1440px) {
  .forward-to-friend-section .error-div-container {
    padding : 299px 0px;
    min-height: 1000px;
  }
  .error-div {
    width: 100%;
    margin: 0 auto;
    max-width: none;
  }
}

@media only screen and (max-width: 768px) {
  section.forward-to-friend-section .forward-to-friend-wrapper {
    display: block;
  }

  .form-container {
    display: block;
  }

  .retro-claim-page .sub-text .sign-up {
    display: inline-block;
  }

  .form-verify-button {
    margin-top: 27px !important;
  }

  .retro-claim-page .form-right .sub-text {
    padding-top: 32px !important;
  }

  .form-wrapper,
  .form-div {
    width: 100%;
  }

  .wrapper-error-div {
    width: 90%;
    padding: 64px 20px;
  }

  .error-div {
    width: 100%;
    margin: 0 auto;
    max-width: none;
  }

  .heading-profile h1 {
    font-size: 32px;
    line-height: 34px;
  }

  section.forward-to-friend-section form {
    padding: 120px 20px 64px;
  }
}

.form-single-column .email-preview-box {
  display: flex;
  justify-content: center;
  padding: 20px 10px;
  height: 848px;
  border: 1px solid #c6aa76;
  background: #ffffff;
  overflow: scroll;
}
.form-single-column .email-preview-box *{
  pointer-events: none;
}

input[readonly]:hover,
input[readonly]:focus {
  box-shadow: none;
  outline: none;
  border-color: inherit; /* or set a fixed color */
}

.error {
  color: red;
  font-size: 0.9em;
  display: none;
}
input.touched:invalid {
  border-color: red;
}