@import "./modules/mainforpages.css";

svg {
  width: 16px;
  height: 16px;
}

.features__title,
.values__title {
  font-size: 48px;
  margin-bottom: 20px;
  position: relative;
  padding-left: 20px;
}
.features__title::before,
.values__title::before {
  content: "";
  display: block;
  width: 40px;
  height: 40px;
  background-color: var(--doubleLightBlue);
  transform: rotate(45deg);
  position: absolute;
  z-index: -1;
  top: 5px;
  left: 0px;
  border-radius: var(--lightRadius);
}
.features__item,
.values__item {
  font-size: 18px;
  margin: 15px 0px;
  line-height: 1.4;
  display: flex;
  column-gap: 5px;
}
.features__icon,
.values__icon {
  flex-shrink: 0;
  color: var(--blue);
  margin-top: 5px;
}
.values__title::before {
  background-color: var(--doubleLightRed);
}
.values__icon {
  color: var(--lighterRed);
}
.prices {
  margin: 80px 0px;
}
.prices__title-container,
.order__title-container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: fit-content;
  margin: 0px auto 60px auto;
}
.prices__shape {
  width: 100%;
  height: 5px;
  left: 0px;
  top: 60px;
  position: absolute;
  background-image: linear-gradient(
    90deg,
    rgba(224, 224, 224, 1) 0%,
    rgb(14, 146, 222) 35%,
    rgba(224, 224, 224, 1) 100%
  );
  border-radius: var(--lightRadius);
}
.prices__title,
.order__title {
  font-size: 46px;
  margin: 0px auto;
}
.prices__table {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
}
.prices__plan {
  box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px;
  border-radius: var(--largeRadius);
  background-image: linear-gradient(
    180deg,
    rgba(250, 250, 250, 1) 0%,
    rgba(245, 245, 245, 1) 35%,
    rgba(224, 224, 224, 1) 100%
  );
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 230px;
  align-items: center;
  justify-content: center;
  padding: 40px 30px 20px;
  position: relative;
  transition: all 0.4s;
}
.prices__plan:hover {
  transform: translate(0px, -5px);
}
.prices__extra-credits {
  position: absolute;
  width: 80px;
  height: 30px;
  background-color: var(--blue);
  top: 0px;
  left: 0px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.prices__extra-credits-text {
  color: var(--whiteSmoke);
}
.prices__plan-detail {
  margin: 10px 0px;
  font-size: 18px;
}
.plan__divider {
  width: 80%;
  height: 1px;
  background-image: linear-gradient(
    90deg,
    rgba(224, 224, 224, 1) 0%,
    rgb(14, 146, 222) 35%,
    rgba(224, 224, 224, 1) 100%
  );
  margin: 0px auto;
}

.prices__plan-buy-btn {
  width: 100%;
  text-align: center;
  font-size: 18px;
  text-decoration: none;
  border: 1px solid var(--lightBlue);
  padding: 10px 20px;
  border-radius: var(--lightRadius);
  margin-top: 15px;
  color: var(--blue);
  transition: all 0.4s;
}
.prices__plan-buy-btn:hover {
  background-color: var(--blue);
  color: var(--whiteSmoke);
}
.order {
  margin: 80px 0px 0px 0px;
}
.order__shape {
  width: 100%;
  height: 5px;
  left: 0px;
  top: 60px;
  position: absolute;
  background-image: linear-gradient(
    90deg,
    rgba(224, 224, 224, 1) 0%,
    rgba(222, 39, 14, 1) 35%,
    rgba(224, 224, 224, 1) 100%
  );
  border-radius: var(--lightRadius);
}
.order__form {
  display: flex;
  flex-direction: column;
  box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px;
  padding: 20px;
  gap: 5px;
  border-radius: var(--lightRadius);
}
.order_label {
  font-size: 18px;
}
.order__select-package,
.order__email,
.order__select-payment-method,
.order__note {
  margin-bottom: 20px;
  outline: none;
  border: none;
  border-radius: var(--lightRadius);
  padding: 10px;
}

.order__select-package:focus,
.order__select-payment-method:focus,
.order__email:focus,
.order__note:focus {
  outline: 2px solid var(--doubleLightBlue);
}
.order__submit-btn {
  padding: 15px;
  outline: none;
  border: none;
  background-color: var(--lightBlue);
  border-radius: var(--lightRadius);
  color: var(--whiteSmoke);
  font-size: 20px;
  transition: all 0.4s;
}
.order__submit-btn:hover {
  background-color: var(--blue);
}


/* خطا */
.input-error {
    border: 2px solid #d9534f !important;
    background-color: #ffecec;
}

/* لودینگ */
.loading-spinner {
    width: 16px;
    height: 16px;
    border: 3px solid #fff;
    border-top: 3px solid transparent;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* MODAL */
#successModal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: 0.3s ease;
    z-index: 9999;
}

    #successModal.show {
        visibility: visible;
        opacity: 1;
    }

.modal-box {
    background: #fff;
    padding: 25px 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 420px;
    text-align: center;
    animation: fadeIn 0.3s ease;
}

    .modal-box h3 {
        margin-bottom: 15px;
        font-size: 22px;
        color: #28a745;
    }

    .modal-box p {
        font-size: 15px;
        margin-bottom: 20px;
    }

.modal-close {
    padding: 12px 22px;
    background-color: var(--lightBlue); /* دقیقا مثل دکمه Submit */
    border: none;
    color: var(--whiteSmoke); /* دقیقا مثل Submit */
    border-radius: var(--lightRadius);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .modal-close:hover {
        background-color: var(--blue); /* دقیقا همان Hover دکمه Submit */
    }

@keyframes fadeIn {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

