.modal-mask {
  position: fixed;
  z-index: 9998;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: table;
  transition: opacity 0.3s ease;
}

.modal-wrapper {
  display: table-cell;
  vertical-align: middle;
}

.modal-container {
  width: 500px;
  margin: 0px auto;
  padding: 10px 10px;
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.33);
  transition: all 0.3s ease;
  /*font-family: Helvetica, Arial, sans-serif;*/
}

@media only screen and (max-width: 768px) {
  /* For mobile phones: */
  .modal-container {
    width: 95%;
  }
}

.modal-body {
  margin: 20px 0;
}

.modal-footer {
  text-align: right;
}

.modal-default-button {
  /*float: right;*/
  margin-left: 10px;
  display: inline-block;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  padding: 5px 20px;
  font-size: 18px;
  border-radius: 20px;
  color: #fff;
  cursor: pointer;
  z-index: 5;
  transition: all .4s ease-in-out;
  border: none;
  background: #4E6EF1;
  overflow: hidden;
}

.btn-cancel {
  background: white;
  color: #3f3d56;
}


/* ================ contact css ============ */
.modal-body .modal-form .single-input {
  margin-bottom: 30px;
}

.modal-body .modal-form .single-input input, .modal-body .modal-form .single-input textarea {
  width: 100%;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0px 0px 39px #f2f4f9;
  transition: all 0.3s ease-out 0s;
  padding: 18px 30px;
  color: #6B6F92;
  line-height: 1;
  border: 1px solid transparent;
}

.modal-body .modal-form .single-input input::placeholder, .modal-body .modal-form .single-input textarea::placeholder {
  opacity: 1;
}

.modal-body .modal-form .single-input input:focus, .modal-body .modal-form .single-input textarea:focus {
  border-color: #4E6EF1;
}

.modal-body .modal-form .single-input textarea {
  resize: none;
}


/*
 * The following styles are auto-applied to elements with
 * transition="modal" when their visibility is toggled
 * by Vue.js.
 *
 * You can easily play with the modal transition by editing
 * these styles.
 */

.modal-desc {
  font-size: 14px;
  color: #6B6F92;
  margin-bottom: 16px;
}

.modal-pick-title {
  font-size: 16px;
  font-weight: 600;
  color: #3f3d56;
  margin-bottom: 4px;
}

.modal-pick-sub {
  font-size: 13px;
  color: #6B6F92;
  margin-bottom: 16px;
}

.portal-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.portal-list-item {
  display: block;
  width: 100%;
  padding: 12px 20px;
  text-align: left;
  font-size: 16px;
  font-weight: 500;
  background: #f2f4f9;
  border: 1px solid transparent;
  border-radius: 5px;
  color: #3f3d56;
  cursor: pointer;
  transition: all 0.2s ease;
}

.portal-list-item:hover {
  background: #4E6EF1;
  color: #fff;
}

.portal-list-address {
  display: block;
  font-size: 15px;
  font-weight: 600;
}

.portal-list-domain {
  display: block;
  font-size: 12px;
  opacity: 0.65;
  margin-top: 2px;
}

/* ── Plan badge shown in signup modal when a plan is selected ── */
.modal-plan-badge {
  background: #f0fdf9;
  border: 1px solid #b2dfdb;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.modal-plan-name {
  font-weight: 700;
  color: #134E4A;
  font-size: 15px;
  flex: 1;
}
.modal-plan-price {
  font-size: 15px;
  color: #0F766E;
  font-weight: 600;
}
.modal-plan-trial {
  font-size: 13px;
  color: #6B6F92;
  margin-bottom: 12px;
  text-align: center;
}

/* ── Billing period toggle ── */
.billing-toggle {
  display: inline-flex;
  border: 1px solid #b2dfdb;
  border-radius: 50px;
  overflow: hidden;
  margin-top: 20px;
}
.billing-toggle--sm {
  margin-top: 8px;
  width: 100%;
}
.billing-toggle-btn {
  padding: 6px 18px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  background: transparent;
  color: #6B6F92;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.billing-toggle-btn.active {
  background: #0F766E;
  color: #fff;
}
.billing-save {
  font-size: 11px;
  font-weight: 400;
  opacity: 0.85;
}

/* ── Price period label under price ── */
.price-period {
  font-size: 13px;
  color: #6B6F92;
  margin-top: -4px;
}

/* ── Contact form status message ── */
.contact-status {
  padding: 12px 20px;
  border-radius: 6px;
  font-size: 15px;
  margin-bottom: 12px;
}
.contact-status--ok {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}
.contact-status--err {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.modal-enter {
  opacity: 0;
}

.modal-leave-active {
  opacity: 0;
}

.modal-enter .modal-container,
.modal-leave-active .modal-container {
  -webkit-transform: scale(1.1);
  transform: scale(1.1);
}
