:root {
  --primary-green: #18a774;
  --text-dark: #111111;
  --text-gray: #4c5c6b;
  --border-color: #d8dde3;
}

body {
  font-family: "Nunito", sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

.grecaptcha-badge {
  z-index: 1000 !important;
}

.site-container {
  max-width: 1440px;
  margin: 0 auto;
  min-height: 100vh;
  background-image: url("../img/bg.jpg");
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  position: relative;
}

.custom-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(139, 139, 139, 0) 0%,
    rgba(139, 139, 139, 1) 90%
  );
  pointer-events: none;
  z-index: 1;
}

.custom-overlay-solid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #8b8b8b;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 1;
}

.custom-form-wrapper {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16rem 1rem 18rem;
}

.custom-form-container {
  max-width: 569px;
  width: 100%;
  background: white;
  border-radius: 1rem;
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  position: relative;
}

.custom-form-body {
  padding: 3rem;
}

.launching-text {
  font-family: "Saira", sans-serif;
  color: var(--primary-green);
  font-weight: 600;
  font-size: 1.5rem;
  margin-bottom: 0.5625rem;
}

.march-text {
  font-family: "Saira", sans-serif;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 0.5625rem;
}

.description-text {
  color: var(--text-gray);
  font-size: 0.75rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.instruction-text {
  color: var(--text-gray);
  font-size: 0.75rem;
  margin-bottom: 1.5rem;
}

#mainForm .row {
  row-gap: 0 !important;
  margin-bottom: 0;
}

#mainForm .row + .row {
  margin-top: 10px;
}

.form-label {
  display: none;
}

.form-control,
.form-select {
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--text-gray);
}

.form-control::placeholder,
.form-select {
  color: var(--text-gray);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-green);
  box-shadow: 0 0 0 0.2rem rgba(16, 185, 129, 0.1);
}

.form-control.is-invalid,
.form-select.is-invalid {
  border-color: #d11149 !important;
  color: #d11149 !important;
  background-image: url("../img/icon-error.png");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: 16px 16px;
  padding-right: calc(1.5em + 0.75rem);
}

.form-control.is-invalid:focus,
.form-select.is-invalid:focus {
  border-color: #d11149 !important;
  color: var(--text-gray) !important;
  box-shadow: 0 0 0 0.2rem rgba(220, 38, 38, 0.15) !important;
}

.form-control.is-warning,
.form-select.is-warning {
  border-color: #fddb46 !important;
  background-image: url("../img/icon-warning.png");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: 14px 14px;
  padding-right: calc(1.5em + 0.75rem);
}

.form-control.is-warning:focus,
.form-select.is-warning:focus {
  border-color: #fddb46 !important;
  box-shadow: 0 0 0 0.2rem rgba(245, 158, 11, 0.15) !important;
}

.form-check-input.is-invalid {
  border-color: #d11149 !important;
  outline: 2px solid #d11149 !important;
  outline-offset: 2px;
}

.form-check-input.is-invalid:focus {
  border-color: #d11149 !important;
  outline: 2px solid #d11149 !important;
  outline-offset: 2px;
  box-shadow: 0 0 0 0.2rem rgba(220, 38, 38, 0.15) !important;
}

.form-check-input.is-warning {
  border-color: #fddb46 !important;
  outline: 2px solid #fddb46 !important;
  outline-offset: 2px;
  background-color: white !important;
  opacity: 1 !important;
}

.form-check-input.is-warning:focus {
  border-color: #fddb46 !important;
  outline: 2px solid #fddb46 !important;
  outline-offset: 2px;
  box-shadow: 0 0 0 0.2rem rgba(245, 158, 11, 0.15) !important;
  opacity: 1 !important;
}

.form-check-input:not(:checked) {
  opacity: 1 !important;
  background-color: white !important;
}

.interests-section {
  margin-top: 1.5rem;
}

.interests-title {
  color: var(--text-gray);
  font-size: 0.875rem;
  font-weight: 400;
  margin-bottom: 0.625rem;
}

.form-check {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.form-check:last-child {
  margin-bottom: 0;
}

.form-check-input {
  width: 11px;
  height: 11px;
  border: none;
  outline: 2px solid #d6dbe1 !important;
  outline-offset: 2px;
  border-radius: 4px;
  margin-top: 0;
  margin-right: 8px;
  flex-shrink: 0;
  background-color: white !important;
  opacity: 1 !important;
}

.form-check-input:checked {
  background-color: var(--primary-green) !important;
  border-color: var(--primary-green);
  outline: 2px solid var(--primary-green) !important;
  outline-offset: 2px;
}

.form-check-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(16, 185, 129, 0.1);
  outline: 2px solid #d6dbe1 !important;
  opacity: 1 !important;
}

.form-check-label {
  color: var(--text-gray);
  font-size: 0.75rem;
  margin-left: 0;
  line-height: 1.2;
}

.message-section {
  margin-bottom: 1.5rem;
  margin-top: 1.5rem;
}

.message-label {
  color: var(--text-gray);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.375rem;
  display: block;
}

.message-textarea {
  min-height: 120px;
  resize: vertical;
}

.consent-check {
  margin-bottom: 1.5rem;
}

.consent-check .form-check-label {
  font-size: 0.75rem;
  line-height: 1.5;
}

.consent-check .form-check-label a {
  color: var(--primary-green);
  text-decoration: underline;
}

.btn-submit {
  background-color: var(--primary-green);
  border: 1px solid transparent;
  border-radius: 0.5rem;
  color: white;
  font-family: "Saira", sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.875rem;
  width: 100%;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.btn-submit:hover {
  color: var(--primary-green);
  border: 1px solid var(--primary-green);
  border-radius: 0.5rem;
  background-color: white;
  font-family: "Saira", sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.875rem;
  width: 100%;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto;
}

.success-title {
  font-family: "Saira", sans-serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1rem;
  line-height: 100%;
}

.success-message {
  color: var(--text-gray);
  font-size: 20px;
  line-height: 27px;
  margin-bottom: 1.5rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.meanwhile-text {
  color: var(--text-gray);
  font-size: 1.25rem;
  margin-bottom: 1rem;
  line-height: 27px;
}

.download-title {
  font-family: "Nunito", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 135%;
  margin-bottom: 1.5rem;
}

.action-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.5rem;
}

.btn-download {
  flex: 1;
  background-color: white;
  border: 2px solid #b3b3b3;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 1.125rem;
  padding: 0.7rem 1.5rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s;
  text-decoration: none;
  font-family: "Saira", sans-serif;
  line-height: 28px;
}

.btn-download:hover {
  border-color: transparent;
  color: white;
  background-color: var(--text-dark);
}

.btn-linkedin,
.btn-linkedin:hover {
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0;
  margin: 0;
}

.linkedin {
  height: 40px;
}

.btn-ok {
  background-color: var(--primary-green);
  border: 1px solid transparent;
  border-radius: 0.5rem;
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.875rem 3rem;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  transition: background-color 0.2s;
  width: 100%;
  font-family: "Saira", sans-serif;
}

.btn-ok:hover {
  background-color: white;
  border: 1px solid var(--primary-green);
  border-radius: 0.5rem;
  color: var(--primary-green);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.875rem 3rem;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  transition: background-color 0.2s;
  width: 100%;
  font-family: "Saira", sans-serif;
}

.btn-close-success {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: transparent;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
  z-index: 10;
}

.btn-close-success:hover {
  opacity: 0.7;
}

.btn-close-success svg {
  stroke: var(--text-gray);
}

@media (max-width: 767.98px) {
  .site-container {
    background: none;
  }

  .custom-overlay-solid,
  .custom-overlay {
    display: none;
  }
  .custom-form-wrapper {
    padding: 0;
    background: white;
  }
  .custom-form-container {
    max-width: 100%;
    border-radius: 0;
    box-shadow: none;
  }

  .custom-form-body {
    padding: 2rem 1.5rem;
  }

  .march-text {
    font-size: 2rem;
  }

  #mainForm .row > [class*="col-"] {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
    margin-bottom: 10px;
  }

  #mainForm .row > [class*="col-"]:last-child {
    margin-bottom: 0;
  }

  #mainForm .row {
    gap: 5px;
  }

  .success-title {
    font-size: 1.75rem;
  }

  .download-title {
    font-size: 1.25rem;
  }

  .action-buttons {
    gap: 0.75rem;
  }

  .btn-download {
    max-width: 100%;
  }

  .btn-linkedin {
    max-width: 48px;
    height: 48px;
  }
}
