.modal-plans {
  width: 100vw;
  height: 100vh;
  z-index: 9999999;
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-plans--open {
  display: flex;
  opacity: 1;
  visibility: visible;
}

.modal-plans__content {
  position: relative;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  padding: 40px;
  max-width: 560px;
  width: 90%;
  max-height: 95vh;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  z-index: 1000;
  transform: scale(0.95);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.modal-plans--open .modal-plans__content {
  transform: scale(1);
}

.modal-plans__backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999;
  background: rgba(0, 0, 0, 0.70);
  backdrop-filter: blur(8px);
}

.modal-plans__close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 28px;
  color: #666;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.modal-plans__close:hover {
  color: #333;
}

.modal-plans__title {
  color: #2173E1;
  font-size: 40px !important;
  font-weight: 700;
  margin-bottom: 10px !important;
}

.modal-plans__subtitle {
  color: #686868;
  font-size: 20px;
  font-weight: 400;
  line-height: 28px;
  margin-bottom: 22px;
}

.modal-plans__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal-plans__form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.modal-plans .gform-theme--foundation .gform_fields {
  --gf-form-gap-y: 12px;
}

.modal-plans__form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.modal-plans .gform-field-label {
  color: #404040 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  margin-bottom: 4px !important;
}

.modal-plans .ginput_container input {
  padding: 14px 16px !important;
  border-radius: 8px !important;
  background: #FFF !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  height: 48px !important;
  transition: border-color 0.2s, box-shadow 0.2s;

  --gf-ctrl-border-color: #B7C0CD;
}

.modal-plans .ginput_container input:focus {
  outline: none !important;
  border-color: #1E88E5 !important;
  box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.1) !important;
}

.modal-plans .ginput_container input::placeholder {
  color: #6D6D6D;
}

.modal-plans .gfield--type-checkbox legend {
  display: none !important;
}

.modal-plans__info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-plans__info-icon {
  width: 18px;
  height: 18px;
}

.modal-plans__info-text {
  font-size: 14px;
  font-weight: 500;
  color: #1E88E5;
}

.modal-plans__checkbox-group {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.modal-plans .ginput_container_checkbox input {
  border-radius: 6px !important;
  padding: 0 8px 0 8px !important;
  height: 20px !important;
  margin-top: 4px !important;
}

.modal-plans .ginput_container_checkbox label {
  color: #000 !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 18px;
  cursor: pointer;
}

.modal-plans .gform_button {
  width: 100% !important;
  padding: 14px 24px;
  background-color: #2173E1 !important;
  color: #fff !important;
  border: none;
  border-radius: 6px !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  transition: background-color 0.2s, transform 0.1s !important;
  margin-top: 8px;
}

.modal-plans .gform_button:hover {
  background-color: #1976D2;
}

.modal-plans .gform_button:active {
  transform: scale(0.98);
}

.modal-plans .gform_validation_errors {
  margin-bottom: 16px !important;
}

.modal-plans .gform_validation_errors * {
  font-size: 14px !important;
}

.modal-plans__logo {
  display: none !important;
  width: 100%;
  justify-content: center;
  align-items: center;
}

.modal-plans__logo.active {
  display: flex !important;
}

.modal-plans__logo img {
  width: 170px;
  margin-bottom: 16px !important;
}

p[data-renderer-start-pos] {
  text-align: center;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .modal-plans__title {
    font-size: 28px !important;
    line-height: 36px;
  }

  .modal-plans__subtitle {
    font-size: 16px;
    line-height: 22px;
    margin-bottom: 24px;
  }

  .modal-plans__form-row {
    grid-template-columns: 1fr;
  }
}