/* Обёртка попапа */
.stripe-popup {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.stripe-popup.active {
  opacity: 1;
  visibility: visible;
}

/* Контент внутри попапа */
.stripe-popup .popup-inner,
.stripe-popup .success-message {
  background: #E6F3FE;
  padding: 30px 50px 50px 50px;
  border-radius: 0;
  width: 700px;
  max-width: 80%;
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  transform: translateY(-20px);
  transition: transform 0.3s ease;
}

.stripe-popup.active .popup-inner {
  transform: translateY(0);
}

/* Кнопка закрытия */
.stripe-popup .close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
}

/* Слои контента */
.stripe-popup .form-wrapper {
    margin-top: 20px;
}

.stripe-popup .form-wrapper,
.stripe-popup .success-message {
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.stripe-popup .form-wrapper.hidden,
.stripe-popup .success-message.hidden {
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  transform: scale(0.95);
}

/* Сообщение об успехе */
.stripe-popup .success-message {
  background: var(--red);
  /* padding: 60px 140px; */
  color: #fff;
  border-radius: 17px;
  text-align: center;
}

.stripe-popup .success-message p {
    display: block;
    margin: 0;
    font-size: 26px;
    font-weight: 500;
    line-height: 110%;
    text-align: center;
}

.stripe-popup .success-message big {
    display: block;
    margin: 15px 0;
    font-size: 35px;
    font-weight: 500;
    font-style: italic;
    line-height: 110%;
    text-align: center;
}

.stripe-popup .success-message small {
    display: block;
    font-family: Inter Tight;
    font-weight: 500;
    font-size: 16px;
    line-height: 120%;
    text-align: center;
    padding-top: 17px;
}

.stripe-popup .text {
    text-align: center;
}

.stripe-popup .text .header {
    font-family: Noto Serif;
    font-size: 30px;
    font-style: italic;
    font-weight: 500;
    line-height: 110%;
    color: var(--main);
}

.stripe-popup .text .amount {
    font-family: Noto Serif;
    font-size: 40px;
    font-style: italic;
    font-weight: 600;
    line-height: 110%;
    background: #ADD0EE;
    padding: 7px 15px;
    color: var(--main);
    margin: 15px auto;
    display: inline-block;
}

.stripe-popup .text .desc {
    display: inline-block;
    font-family: Inter Tight;
    font-size: 16px;
    font-weight: 500;
    line-height: 120%;
}

.stripe-popup input {
    margin-bottom: 30px;
    background-color: #ffffff00;
    border-bottom: 1px solid var(--main);
    color: var(--main);
    padding: 15px 0;
}

.stripe-popup input {
    margin-bottom: 15px;
}

.stripe-popup input:focus {
    border-color: var(--main);
}

.stripe-popup input::placeholder {
    color: var(--main);
    opacity: 0.5;
}

.stripe-popup .wpcf7-submit,
.stripe-popup .wpcf7-submit:hover,
.stripe-popup .wpcf7-submit:active {
    border: unset;
    font-family: Inter Tight;
    font-size: 16px;
    font-weight: 500;
    line-height: 100%;
    text-align: center;
    margin-top: 17px;
    width: 200px;
    color: var(--white);
    background-color: var(--red);
    padding: 15px 40px;
}

.stripe-popup .wpcf7 form .wpcf7-response-output {
    background-color: #ffffff00;
    color: var(--main);
    border: 4px solid var(--red);
    margin: 0;
}

.stripe-popup .wpcf7-not-valid-tip {
    color: var(--red);
    margin-top: -0.6em;
}

.stripe-popup .hidden {
  display: none !important;
}

.stripe-popup .redirecting-message {
	text-align: center;
	font-size: 18px;
	font-weight: 500;
	color: var(--main);
	padding-top: 40px;
}

.stripe-popup .redirecting-message.hidden {
	display: none !important;
}

@media (max-width: 1024px) {
    .stripe-popup .form-wrapper {
        margin-top: 25px;
    }

    .stripe-popup .text .header {
        font-size: 23px;
        padding: 5px 10px;
    }

    .stripe-popup .text .desc {
        font-size: 13px;
        width: auto;
    }

    .stripe-popup .success-message {
        padding: 24px 30px;
        color: #fff;
        border-radius: 17px;
    }

    .stripe-popup .success-message big {
        font-size: 23px;
    }

    .stripe-popup .success-message p {
        font-size: 18px;
    }

    .stripe-popup .success-message small {
        font-size: 13px;
    }
}
