@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600&display=swap');

.occ-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.65);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.occ-popup-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.occ-popup-modal {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px 28px 28px;
  border-radius: 12px;
  background: #8e0c26;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  font-family: Montserrat, Arial, sans-serif;
  color: #fff;
}

.occ-popup-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #da002b;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.occ-popup-close:hover {
  background: #b80024;
}

.occ-popup-title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
}

.occ-popup-subtitle {
  margin: 0 0 24px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
}

.occ-popup-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.occ-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.occ-field label {
  font-size: 16px;
  font-weight: 400;
  color: #fff;
}

.occ-field input,
.occ-field select {
  width: 100%;
  padding: 12px 20px;
  border: 1px solid #fff;
  border-radius: 8px;
  background: #fff;
  color: #636363;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 14px;
  box-sizing: border-box;
}

.occ-field input::placeholder {
  color: #9a9a9a;
}

.occ-field select:disabled {
  opacity: 0.75;
  cursor: not-allowed;
}

.occ-step {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.occ-step[hidden] {
  display: none !important;
}

.occ-step2-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
  text-align: center;
  padding: 8px 4px 4px;
}

.occ-step-actions {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}

.occ-step-actions-split {
  flex-direction: row;
}

.occ-popup-next,
.occ-popup-back,
.occ-popup-submit {
  flex: 1;
  padding: 14px 20px;
  border: 0;
  border-radius: 8px;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.occ-popup-next,
.occ-popup-submit {
  background: #da002b;
  color: #fff;
}

.occ-popup-next:hover:not(:disabled),
.occ-popup-submit:hover:not(:disabled) {
  background: #b80024;
}

.occ-popup-back {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.occ-popup-back:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
}

.occ-popup-submit:disabled,
.occ-popup-next:disabled {
  opacity: 0.7;
  cursor: wait;
}

.occ-popup-error {
  margin: 0;
  font-size: 13px;
  color: #ffd5dc;
}

.occ-popup-success {
  text-align: center;
  padding: 24px 8px;
}

.occ-popup-success p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
}

@media screen and (max-width: 600px) {
  .occ-popup-modal {
    padding: 28px 20px 24px;
  }

  .occ-popup-title {
    font-size: 18px;
    padding-right: 28px;
  }
}
