/* Offer Button - Modern Look */
.offer-btn {
  position: fixed;
  bottom: 40px;
  right: 30px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  border-radius: 50px;
  cursor: pointer;
  background: linear-gradient(135deg, #750031, #191970);
  background-size: 200% 200%;
  animation: gradientMove 6s ease infinite;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.offer-btn:hover {
  transform: translateY(-5px) scale(1.08);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4);
}

@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* Icon inside button */
.offer-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-size: 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background 0.3s ease;
}

.offer-btn:hover .offer-icon {
  transform: rotate(-10deg) scale(1.1);
  background: rgba(255, 255, 255, 0.15);
}

/* Offer Text */
.offer-text {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  animation: offerPulse 4s ease-in-out infinite;
  transition: all 0.3s ease;
}

.offer-btn:hover .offer-text {
  transform: translateY(-4px) scale(1.05);
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

@keyframes offerPulse {

  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-3px) scale(1.02);
  }
}


/* Popup overlay */
.popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.popup-content {
  background: #fff;
  border-radius: 16px;
  padding: 30px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  animation: fadeIn 0.3s ease;
  position: relative;
}

/* --- Close button (round, modern) --- */
.close-btn {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: bold;
  color: #fff;
  background: linear-gradient(135deg, #191970, #750031);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  z-index: 1000;
}

.close-btn:hover {
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  background: linear-gradient(135deg, #750031, #191970);
}

.close-btn:active {
  transform: scale(0.92);
}


.popup-content.dark .close-btn {
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Steps */
.step {
  display: flex;
  display: none;
  flex-direction: column;
  gap: 15px;
}

.step.active {
  display: flex;
}

button {
  padding: 12px 18px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 15px;
  transition: all 0.3s ease;
}

/* Back Button - Modern Style */
.back-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #191970, #750031);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  justify-content: center;
}

.back-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  background: linear-gradient(135deg, #750031, #191970);
}

/* Optional arrow icon inside back-btn */
.back-btn::before {
  font-size: 16px;
  display: inline-block;
  transform: translateX(-2px);
  transition: transform 0.3s ease;
}

.back-btn:hover::before {
  transform: translateX(-4px);
}

.next-btn,
.submit-btn {
  background: #191970;
  color: #fff;
  font-weight: 600;
}

.next-btn:hover,
.submit-btn:hover {
  background: #750031;
}


/* Next Button - Modern Style */
.next-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #750031, #191970);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.next-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  background: linear-gradient(135deg, #191970, #750031);
}

/* Optional arrow icon inside next-btn */
.next-btn::after {
  content: "➡";
  font-size: 16px;
  display: inline-block;
  transform: translateX(2px);
  transition: transform 0.3s ease;
}

.next-btn:hover::after {
  transform: translateX(4px);
}

/* Service buttons with images */
.service-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 20px;
  border-radius: 16px;
  border: none;
  width: 100%;
  text-align: center;
  background: #fff;
  color: #191970;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  overflow: hidden;
  position: relative;

}

@media (max-width: 480px) {
  .service-btn {
    font-size: 13px;
    /* փոքրացրել ենք տեքստը */
  }
}

.service-btn img {
  width: 100%;
  max-height: 120px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.4s ease;
}

.service-btn:hover img {
  transform: scale(1.08);
}

.service-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(117, 0, 49, 0.25);
  background: linear-gradient(180deg, #fff, #f9f9ff);
}

.service-btn:active {
  transform: scale(0.97);
}

.service-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(117, 0, 49, 0.1);
  transition: all 0.4s ease;
}

.service-btn:hover::after {
  left: 0;
}

/* Responsive - 2 columns on larger screens */
.step-1 {
  /* display: grid; */
  display: flex;
  /* grid-template-columns: 1fr 1fr; */
  gap: 20px;
}

@media (max-width: 600px) {
  .step-1 {
    grid-template-columns: 1fr;
  }
}

/* Inputs */
input {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 15px;
  width: 100%;
}

/* FadeIn */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Custom Select */
.custom-select-wrapper {
  width: 100%;
  position: relative;
  font-family: Arial, sans-serif;
  margin-bottom: 15px;
}

.custom-select {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #ccc;
  padding: 12px 16px;
  cursor: pointer;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.custom-select:hover {
  border-color: #750031;
  box-shadow: 0 6px 15px rgba(117, 0, 49, 0.2);
}

.selected::after {
  content: "▼";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: #750031;
}

.select-options {
  display: none;
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #ccc;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
  list-style: none;
  padding: 0;
  margin: 0;
}

.select-options li {
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.select-options li:hover {
  background: #f0e5f0;
  color: #750031;
}

/* --- Offer text (pill) --- */
.offer-text {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transform-origin: center;
  transition: transform .22s cubic-bezier(.2, .9, .2, 1),
    background .2s ease, box-shadow .2s ease;
  border: 1px solid rgba(255, 255, 255, 0.06);
  animation: offerPulse 4.5s ease-in-out infinite;
}

@keyframes offerPulse {
  0% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-3px) scale(1.01);
  }

  100% {
    transform: translateY(0) scale(1);
  }
}

.offer-btn:hover .offer-text,
.offer-btn:focus .offer-text {
  transform: translateY(-6px) scale(1.03);
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

/* Icon adjust */
.offer-icon {
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
  transition: transform .18s ease, background .18s ease;
}

.offer-btn:hover .offer-icon {
  transform: translateY(-4px) rotate(-8deg);
}

/* focus visible for keyboard users */
.offer-btn:focus,
.close-btn:focus {
  outline: 3px solid rgba(117, 0, 49, 0.18);
  outline-offset: 2px;
}

/* Responsive tweak */
@media (max-width: 420px) {
  .offer-text {
    font-size: 14px;
    padding: 6px 10px;
  }

  .offer-icon {
    width: 28px;
    height: 28px;
    font-size: 16px;
  }

  .close-btn {
    width: 40px;
    height: 40px;
    font-size: 18px;
    top: 10px;
    right: 12px;
  }
}

.offer-success-message {
  padding: 25px 20px;
  background: linear-gradient(90deg, #191970, #750031);
  color: #FFFF;
  border-radius: 16px;
  font-size: 17px;
  font-weight: 600;
  text-align: center;
  margin-top: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  animation: fadeIn 0.5s ease forwards;
  position: relative;
  overflow: hidden;
}

/* Small animated accent line */
.offer-success-message::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, #191970, #750031);
  animation: slideLine 1s forwards;
}

@keyframes slideLine {
  from {
    left: -100%;
  }

  to {
    left: 0;
  }
}

/* Optional: smooth text fade */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive tweaks for mobile (max-width: 480px) */
@media (max-width: 480px) {

  /* Offer Button */
  .offer-btn {
    padding: 10px 18px;
    gap: 8px;
    font-size: 14px !important;
    bottom: 25px;
    right: 20px;
  }
  .step .step-1 .active h2{
    font-size: 16px !important;
  }

  /* Icon inside button */
  .offer-icon {
    width: 24px;
    height: 24px;
    font-size: 14px !important;
  }

  /* Offer Text (pill) */
  .offer-text {
    font-size: 13px !important;
    padding: 4px 10px;
  }

  /* Close button */
  .close-btn {
    width: 36px;
    height: 36px;
    font-size: 18px !important;
    top: 8px;
    right: 10px !important;
  }

  /* Steps layout */
  .step-1 {
    flex-direction: column;
    gap: 12px !important;
  }

  /* Service buttons */
  .service-btn {
    padding: 14px !important;
    font-size: 14px !important;
  }

  .service-btn img {
    max-height: 100px !important;
  }

  /* Inputs */
  input {
    padding: 10px !important;
    font-size: 14px !important;
  }

  /* Next / Back / Submit buttons */
  .next-btn,
  .back-btn,
  .submit-btn {
    padding: 8px 16px !important;
    font-size: 14px !important;
  }

  /* Success message */
  .offer-success-message {
    font-size: 15px !important;
    padding: 18px 15px !important;
  }
}

@media (max-width: 480px) {
  .service-btn {
    font-size: 13px !important;
  }

  .next-btn,
  .submit-btn,
  .back-btn {
    font-size: 13px !important;
  }

  .offer-text {
    font-size: 13px!important;
    padding: 4px 8px !important;
  }

  .close-btn {
    font-size: 18px !important;
    width: 36px;
    height: 36px;
  }
}