/* Modern design with green primary color */
:root {
  --primary-color: #22be0d;
  --primary-light: #4cd62c;
  --primary-dark: #1a9c0a;
  --secondary-color: #00b8d4;
  --secondary-light: #62ebff;
  --secondary-dark: #0088a3;
  --accent-color: #ff6d00;
  --accent-light: #ff9e40;
  --accent-dark: #c43c00;
  --warning-color: #ffab00;
  --danger-color: #f50057;
  --light-color: #f8f9fa;
  --dark-color: #1a1a1a;
  --gray-color: #6c757d;
  --light-gray: #e9ecef;
  --border-radius: 16px;
  --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --font-primary: 'Poppins', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  background-color: #f5f7fa;
  color: var(--dark-color);
  background: linear-gradient(135deg, #f5f7fa 0%, #e8f5e9 100%);
  min-height: 100vh;
  padding: 20px;
}

.container {
  max-width: 1100px;
  margin: 20px auto;
  padding: 0;
}

.form-container {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 40px;
  position: relative;
  overflow: hidden;
  border: none;
}

.form-container::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, rgba(34, 190, 13, 0.05) 0%, rgba(34, 190, 13, 0.1) 100%);
  border-radius: 50%;
  z-index: 0;
}

.form-header {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
  background: white;
  padding: 12px 24px;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(34, 190, 13, 0.15);
}

.logo i {
  margin-right: 10px;
  font-size: 28px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

h1 {
  color: var(--dark-color);
  margin-bottom: 15px;
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

h1 span {
  color: var(--primary-color);
}

.subtitle {
  color: var(--gray-color);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

h2 {
  color: var(--dark-color);
  margin-bottom: 25px;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  font-weight: 700;
  letter-spacing: -0.5px;
}

h2 i {
  margin-right: 15px;
  color: var(--primary-color);
  font-size: 1.6rem;
  background: rgba(34, 190, 13, 0.1);
  padding: 12px;
  border-radius: 12px;
}

.step-description {
  color: var(--gray-color);
  margin-bottom: 30px;
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Modern progress bar */
.progress-container {
  margin: 50px 0;
  padding: 0 20px;
}

.progress-bar {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-bottom: 30px;
  max-width: 100%;
  width: 100%;
}

.progress-bar::before {
  content: "";
  background-color: #f0f0f0;
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  height: 6px;
  width: 100%;
  z-index: 1;
  border-radius: 10px;
}

.progress {
  background: linear-gradient(to right, var(--primary-color), var(--primary-light));
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  height: 6px;
  width: 0%;
  z-index: 2;
  transition: width 0.5s cubic-bezier(0.65, 0, 0.35, 1);
  border-radius: 10px;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 3;
}

.step-number {
  width: 40px;
  height: 40px;
  background-color: white;
  border: 3px solid #f0f0f0;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  color: var(--gray-color);
  transition: var(--transition);
  margin-bottom: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.step-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-color);
  transition: var(--transition);
  opacity: 0.7;
}

.step.active .step-number {
  border-color: var(--primary-color);
  color: var(--primary-color);
  box-shadow: 0 0 0 5px rgba(34, 190, 13, 0.15);
  transform: scale(1.1);
}

.step.active .step-text {
  color: var(--primary-color);
  opacity: 1;
  transform: translateY(3px);
}

.step.completed .step-number {
  border-color: var(--primary-color);
  background-color: var(--primary-color);
  color: white;
}

.step.completed .step-text {
  color: var(--primary-color);
}

.form-step {
  display: none;
  animation: fadeIn 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-step.active {
  display: block;
}

/* Modern form elements */
.form-group {
  margin-bottom: 30px;
  position: relative;
}

label {
  display: block;
  margin-bottom: 12px;
  font-weight: 600;
  color: var(--dark-color);
  font-size: 1rem;
}

.input-with-icon {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-color);
  font-size: 18px;
}

input[type="url"],
input[type="number"],
input[type="text"] {
  width: 100%;
  padding: 16px 20px 16px 50px;
  border: 2px solid #f0f0f0;
  border-radius: 12px;
  font-size: 16px;
  transition: var(--transition);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
  font-family: var(--font-primary);
  background-color: #f9f9f9;
}

input[type="url"]:focus,
input[type="number"]:focus,
input[type="text"]:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 4px rgba(34, 190, 13, 0.1);
  background-color: white;
}

.error-message {
  color: var(--danger-color);
  font-size: 14px;
  margin-top: 8px;
  display: block;
  font-weight: 500;
}

/* Modern info card */
.info-card {
  display: flex;
  background-color: #f9f9f9;
  padding: 25px;
  border-radius: var(--border-radius);
  margin: 30px 0;
  border: none;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
  transition: var(--transition);
}

.info-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05);
}

.info-icon {
  font-size: 24px;
  color: var(--primary-color);
  margin-right: 20px;
  flex-shrink: 0;
  background: rgba(34, 190, 13, 0.1);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

.info-content h4 {
  margin-bottom: 8px;
  color: var(--dark-color);
  font-size: 1.1rem;
  font-weight: 700;
}

.info-content p {
  color: var(--gray-color);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Budget recommendation */
.budget-recommendation {
  display: flex;
  background-color: rgba(34, 190, 13, 0.05);
  padding: 25px;
  border-radius: var(--border-radius);
  margin: 30px 0;
  border: none;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
  transition: var(--transition);
}

.budget-recommendation:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05);
}

.recommendation-icon {
  font-size: 24px;
  color: var(--primary-color);
  margin-right: 20px;
  flex-shrink: 0;
  background: rgba(34, 190, 13, 0.1);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

.recommendation-content h4 {
  margin-bottom: 8px;
  color: var(--dark-color);
  font-size: 1.1rem;
  font-weight: 700;
}

.recommendation-content p {
  color: var(--gray-color);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Modern buttons */
.btn-container {
  display: flex;
  justify-content: space-between;
  margin-top: 50px;
  gap: 20px;
}

.btn {
  padding: 16px 32px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(34, 190, 13, 0.2);
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-primary);
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
  opacity: 0;
  transition: var(--transition);
}

.btn i {
  margin-left: 10px;
  margin-right: 10px;
  font-size: 18px;
}

.btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(34, 190, 13, 0.25);
}

.btn:hover::after {
  opacity: 1;
}

.btn:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(34, 190, 13, 0.2);
}

.prev-btn {
  background-color: white;
  color: var(--dark-color);
  border: 2px solid #f0f0f0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.prev-btn:hover {
  background-color: #f9f9f9;
  border-color: #e0e0e0;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

.boost-btn {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  padding: 18px 36px;
  border-radius: 12px;
  position: relative;
  z-index: 1;
}

.boost-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
  z-index: -1;
  opacity: 0;
  transition: var(--transition);
  border-radius: 12px;
}

.boost-btn:hover::before {
  opacity: 1;
}

.boost-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 25px rgba(34, 190, 13, 0.3);
}

/* Modern CTA and placement options */
.cta-options,
.placement-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.cta-option input[type="radio"],
.placement-option input[type="radio"] {
  display: none;
}

.cta-option label,
.placement-option label {
  display: flex;
  align-items: center;
  padding: 25px;
  border: 2px solid #f0f0f0;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
  height: 100%;
  position: relative;
  background-color: #f9f9f9;
}

.cta-option label:hover,
.placement-option label:hover {
  border-color: #e0e0e0;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05);
}

.cta-option input[type="radio"]:checked + label,
.placement-option input[type="radio"]:checked + label {
  border-color: var(--primary-color);
  background-color: white;
  box-shadow: 0 8px 20px rgba(34, 190, 13, 0.15);
  transform: translateY(-5px);
}

.cta-icon,
.placement-icon {
  width: 50px;
  height: 50px;
  background-color: rgba(34, 190, 13, 0.1);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 20px;
  color: var(--primary-color);
  transition: var(--transition);
  font-size: 20px;
  flex-shrink: 0;
}

.cta-option input[type="radio"]:checked + label .cta-icon,
.placement-option input[type="radio"]:checked + label .placement-icon {
  background-color: var(--primary-color);
  color: white;
  transform: scale(1.1);
}

.cta-details h3,
.placement-details h3 {
  margin: 0;
  font-size: 17px;
  color: var(--dark-color);
  font-weight: 600;
}

.cta-details p,
.placement-details p {
  margin: 5px 0 0;
  font-size: 14px;
  color: var(--gray-color);
}

.check-mark {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 12px;
  opacity: 0;
  transition: var(--transition);
  transform: scale(0.5);
}

.cta-option input[type="radio"]:checked + label .check-mark,
.placement-option input[type="radio"]:checked + label .check-mark {
  opacity: 1;
  transform: scale(1);
}

.premium-badge {
  position: absolute;
  top: -10px;
  left: 20px;
  background: linear-gradient(135deg, var(--accent-color), #ff9e40);
  color: white;
  padding: 6px 12px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 3px 8px rgba(255, 109, 0, 0.2);
  letter-spacing: 0.5px;
}

.visibility-tag {
  display: inline-block;
  background-color: rgba(34, 190, 13, 0.1);
  color: var(--primary-color);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  margin-top: 8px;
  font-weight: 600;
}

/* Modern custom link input */
.custom-link-input {
  margin-top: 25px;
  padding: 25px;
  background-color: #f9f9f9;
  border-radius: var(--border-radius);
  border: none;
  animation: fadeIn 0.5s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
}

/* Modern stepper */
.stepper {
  display: flex;
  align-items: center;
}

.stepper input {
  width: 80px;
  text-align: center;
  margin: 0 15px;
  font-size: 18px;
  font-weight: 600;
  border: 2px solid #f0f0f0;
  border-radius: 12px;
  padding: 12px;
  background-color: #f9f9f9;
}

.stepper-btn {
  width: 50px;
  height: 50px;
  background-color: #f0f0f0;
  border: none;
  border-radius: 12px;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
  color: var(--dark-color);
}

.stepper-btn:hover {
  background-color: var(--primary-color);
  color: white;
  box-shadow: 0 5px 12px rgba(34, 190, 13, 0.2);
  transform: translateY(-2px);
}

/* Modern tooltip */
.tooltip {
  position: relative;
  display: inline-block;
  margin-left: 10px;
  color: var(--primary-color);
  font-size: 18px;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 280px;
  background-color: var(--dark-color);
  color: white;
  text-align: center;
  border-radius: 12px;
  padding: 15px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  font-weight: normal;
  font-size: 14px;
  line-height: 1.6;
}

.tooltip .tooltiptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -10px;
  border-width: 10px;
  border-style: solid;
  border-color: var(--dark-color) transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Modern summary */
.summary {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: var(--border-radius);
  margin-top: 30px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
  border: none;
  transition: var(--transition);
}

.summary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.summary h3 {
  margin-bottom: 25px;
  color: var(--dark-color);
  font-size: 1.4rem;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 15px;
  font-weight: 700;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  font-size: 16px;
  padding: 5px 0;
}

.summary-divider {
  height: 2px;
  background-color: #f0f0f0;
  margin: 20px 0;
}

.summary-item.total {
  margin-top: 10px;
  font-weight: bold;
  font-size: 22px;
  color: var(--primary-color);
}

.payment-guarantee {
  display: flex;
  align-items: center;
  margin-top: 30px;
  color: var(--gray-color);
  font-size: 14px;
  background-color: white;
  padding: 15px 20px;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
}

.payment-guarantee i {
  color: var(--primary-color);
  margin-right: 15px;
  font-size: 20px;
}

/* Modern loading overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  backdrop-filter: blur(5px);
}

.loading-overlay.active {
  opacity: 1;
  visibility: visible;
}

.spinner {
  width: 70px;
  height: 70px;
  border: 5px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  border-top-color: var(--primary-color);
  animation: spin 1s ease-in-out infinite;
  margin-bottom: 25px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-overlay p {
  color: white;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* Modern toast notification */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: white;
  border-radius: 16px;
  padding: 20px 35px 20px 25px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  transform: translateX(calc(100% + 30px));
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.35);
  z-index: 9999;
  max-width: 350px;
}

.toast.active {
  transform: translateX(0);
}

.toast-content {
  display: flex;
  align-items: center;
}

.toast-icon {
  font-size: 28px;
  color: var(--primary-color);
  margin-right: 15px;
}

.toast-message {
  font-size: 16px;
  font-weight: 500;
  color: var(--dark-color);
  line-height: 1.5;
}

.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  width: 100%;
  background-color: #f0f0f0;
}

.toast-progress:before {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  height: 100%;
  width: 100%;
  background-color: var(--primary-color);
  animation: progress 5s linear forwards;
}

@keyframes progress {
  100% {
    right: 100%;
  }
}

/* Responsive improvements */
@media (max-width: 768px) {
  .container {
    margin: 10px auto;
    padding: 0;
  }

  .form-container {
    padding: 30px 20px;
    border-radius: 20px;
  }

  .logo {
    padding: 10px 20px;
    font-size: 20px;
  }

  .logo i {
    font-size: 24px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h2 i {
    padding: 10px;
    font-size: 1.3rem;
  }

  .cta-options,
  .placement-options {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .btn-container {
    flex-direction: column;
    gap: 15px;
  }

  .btn {
    width: 100%;
    padding: 16px;
  }

  .step-number {
    width: 35px;
    height: 35px;
    font-size: 14px;
  }
  
  .step-text {
    font-size: 11px;
  }
  
  .info-card,
  .budget-recommendation {
    flex-direction: column;
    padding: 20px;
  }
  
  .info-icon,
  .recommendation-icon {
    margin-bottom: 15px;
    margin-right: 0;
  }

  .progress-container {
    padding: 0;
    margin: 30px 0;
  }

  .summary {
    padding: 20px;
  }

  .payment-guarantee {
    padding: 12px 15px;
  }
}

/* Animation for form elements */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-group, .info-card, .budget-recommendation, .btn-container, .cta-options, .placement-options, .custom-link-input, .stepper, .summary {
  animation: slideUp 0.6s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
  animation-delay: 0.1s;
}

/* Staggered animations for options */
.cta-option:nth-child(1), .placement-option:nth-child(1) {
  animation-delay: 0.1s;
}

.cta-option:nth-child(2), .placement-option:nth-child(2) {
  animation-delay: 0.2s;
}

.cta-option:nth-child(3), .placement-option:nth-child(3) {
  animation-delay: 0.3s;
}

.cta-option:nth-child(4), .placement-option:nth-child(4) {
  animation-delay: 0.4s;
}

/* Hover effects for cards */
.cta-option label, .placement-option label {
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Glassmorphism effects */
.form-container {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Micro-interactions */
.btn:active {
  transform: scale(0.98);
}

.step-number {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.step.active .step-number:hover {
  transform: scale(1.15) rotate(5deg);
}
