* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Inter", Arial, sans-serif;
}

body {
  /* min-height: 100vh; */
  display: block;
  padding: 1rem;
  margin: 0;
  /* padding: 0; */
  font-family: sans-serif;
  background: linear-gradient(to bottom right, #ffd1de, #d2d2cf);
  color: #333;
}

main {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 10%;
}

@font-face {
  font-family: 'ApplicantSignature';
  src: url('/fonts/ApplicantSignature-3zXKX.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

.logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1rem auto;
  max-width: 100%;
  flex-wrap: nowrap;
  gap: 0.75rem;
}

.logo-inner-container {
  margin: 0 auto;
  display: flex;
}

.logo-container img {
  height: 90px;
  width: auto;
  flex-shrink: 0;
}

.logo-text {
  font-family: 'ApplicantSignature', cursive;
  font-size: 500%;
  color: #ffffff;
  white-space: nowrap;
  flex-shrink: 0;
}

.form-container {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  padding: 2rem 1.5rem;
  /* width: 100%; */
  max-width: 960px;
  text-align: center;
  animation: fadeIn 0.6s ease-out;
}

.form-container h1 {
  font-size: 1.6rem;
  margin-bottom: 0.25rem;
  font-weight: 700;
  color: #222;
}

.form-container h2 {
  font-size: 1rem;
  font-weight: 400;
  color: #666;
  margin-bottom: 1.5rem;
}

/* Teacup loader placeholder */
.teacup-loader {
  margin: 0 auto 1.5rem;
  width: 80px;
  height: 80px;
  background: url('/images/teacup-loader.svg') no-repeat center/contain;
}

/* Inputs */
.form-container label {
  display: block;
  text-align: left;
  font-size: 0.9rem;
  font-weight: 600;
  margin: 1rem 0 0.5rem;
}

.form-container input[type="text"],
.form-container input[type="number"],
.form-container input[type="file"],
.form-container textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.form-container input:focus,
.form-container textarea:focus {
  outline: none;
  border-color: #ff5e9c;
  box-shadow: 0 0 0 3px rgba(255, 94, 156, 0.15);
}

textarea {
  resize: vertical;
  min-height: 100px;
}

/* Chip styles */
.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
  margin-bottom: 1rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  background: #ff5e9c;
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.85rem;
  font-weight: 500;
}

.chip-remove {
  background: none;
  border: none;
  color: white;
  margin-left: 0.5rem;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chip-remove:hover {
  opacity: 0.8;
}

/* Submit Button */
.form-container button {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.85rem;
  background: #ff5e9c;
  color: #fff;
  border: none;
  border-radius: 0.75rem;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.25s ease;
}

.form-container button:hover {
  background: #ff3d85;
}

.form-container button:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* Before & After Section */
.before-after-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 2rem;
  gap: 1.5rem;
}

.before-after-item {
  text-align: center;
}

.before-after-item img {
  max-width: 100%;
  border-radius: 0.75rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-bottom: 0.5rem;
}

.before-after-label {
  font-size: 1rem;
  font-weight: 600;
  color: #444;
}

.before-after-arrow {
  font-size: 2rem;
  color: #ff5e9c;
  margin: 0.5rem 0;
}

/* Desktop side-by-side layout */
@media (min-width: 768px) {
  .before-after-container {
    flex-direction: row;
    justify-content: center;
    align-items: center;
  }

  .before-after-arrow {
    margin: 0 1rem;
    transform: rotate(0deg);
    /* horizontal arrow */
  }
}

/* Schedule Table */
.schedule-table {
  width: 100%;
  margin-top: 2rem;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.schedule-table th,
.schedule-table td {
  border: 1px solid #ddd;
  padding: 0.75rem;
  text-align: left;
}

.schedule-table th {
  background: #ffeff7;
  font-weight: 700;
}

.schedule-table tr:nth-child(even) {
  background: #f9f9f9;
}

.schedule-table tr:hover {
  background: #fff6fb;
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }

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

.tea-icon-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 150px;
  width: 150px;
  margin: 0 auto;
}

.steams-wrapper {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 80px;
}

.teacup {
  width: 120px;
  height: 80px;
  background: #fbcfe8;
  /* Pink-200 */
  border-radius: 0 0 60px 60px;
  position: relative;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  z-index: 10;
}

.teacup::before {
  content: '';
  position: absolute;
  top: -15px;
  left: -5px;
  width: 130px;
  height: 30px;
  background-color: #f9a8d4;
  /* Pink-300 for a prominent rim */
  border-radius: 50%;
}

.handle {
  width: 35px;
  height: 60px;
  border: 8px solid #fbcfe8;
  /* Matching the teacup body */
  border-left: 8px solid transparent;
  border-radius: 50%;
  position: absolute;
  top: 15px;
  right: -25px;
}

.steam {
  position: absolute;
  width: 15px;
  height: 15px;
  background-color: #6b7280;
  /* Darker gray-500 instead of light gray */
  border-radius: 50%;
  opacity: 0;
  animation: brew-steam 3s infinite;
}

.steam:nth-child(1) {
  left: 15%;
  animation-delay: 0s;
}

.steam:nth-child(2) {
  left: 35%;
  animation-delay: 0.5s;
}

.steam:nth-child(3) {
  left: 55%;
  animation-delay: 1s;
}

.steam:nth-child(4) {
  left: 75%;
  animation-delay: 1.5s;
}

@keyframes brew-steam {
  0% {
    transform: translateY(0) scale(0.3);
    opacity: 0;
  }

  30% {
    opacity: 0.8;
    transform: translateY(-30px) scale(0.8);
  }

  70% {
    opacity: 0.6;
    transform: translateY(-60px) scale(1);
  }

  100% {
    transform: translateY(-90px) scale(1.2);
    opacity: 0;
  }
}

/* Force table borders to show */
.schedule-table-container {
  border: 2px solid #333 !important;
}

.schedule-table-container table {
  border-collapse: collapse !important;
  width: 100% !important;
}

.schedule-table-container th,
.schedule-table-container td {
  border: 1px solid #333 !important;
  padding: 12px !important;
}

.schedule-table-container th {
  border-bottom: 2px solid #333 !important;
  background-color: #f3f4f6 !important;
}

/* Force image sizing */
.image-container {
  width: 100% !important;
  max-width: 300px !important;
  height: 200px !important;
  margin: 0 auto !important;
}

.image-container img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 8px !important;
}

@media (max-width: 768px) {
  .form-container {
    padding: 1.5rem 1rem;
    max-width: none;
    width: 100%;
    margin: 0;
  }

  /* Smaller headings on mobile */
  .form-container h1 {
    font-size: 1.25rem;
    /* Reduced from 1.6rem */
    margin-bottom: 0.5rem;
  }

  .form-container h2 {
    font-size: 0.9rem;
    /* Reduced from 1rem */
    margin-bottom: 1rem;
    /* Reduced from 1.5rem */
  }

  /* Compact input styling */
  .form-container input[type="text"],
  .form-container input[type="email"],
  .form-container input[type="number"],
  .form-container input[type="file"],
  .form-container textarea {
    padding: 0.6rem;
    /* Reduced from 0.75rem */
    font-size: 0.9rem;
    /* Slightly smaller text */
  }

  /* Smaller button styling */
  .form-container button,
  .primary-btn,
  .secondary-btn {
    padding: 0.6rem 1rem;
    /* Reduced padding */
    font-size: 0.95rem;
    /* Slightly smaller text */
  }

  /* Compact chip styling */
  .chip {
    padding: 0.4rem 0.6rem;
    /* Reduced from 0.5rem 0.75rem */
    font-size: 0.8rem;
    /* Reduced from 0.85rem */
  }

  /* Smaller tea icon for mobile */
  .tea-icon-container {
    height: 150px;
    /* Reduced from 200px */
    width: 150px;
    /* Reduced from 200px */
  }

  .teacup {
    width: 90px;
    /* Reduced from 120px */
    height: 60px;
    /* Reduced from 80px */
  }

  .teacup::before {
    width: 100px;
    /* Reduced from 130px */
    height: 20px;
    /* Reduced from 30px */
    top: -10px;
    /* Adjusted from -15px */
  }

  .handle {
    width: 28px;
    /* Reduced from 35px */
    height: 45px;
    /* Reduced from 60px */
    border-width: 6px;
    /* Reduced from 8px */
    right: -20px;
    /* Adjusted from -25px */
    top: 12px;
    /* Adjusted from 15px */
  }

  .steams-wrapper {
    width: 90px;
    /* Reduced from 120px */
    height: 60px;
    /* Reduced from 80px */
    top: 15px;
    /* Adjusted from 20px */
  }

  .steam {
    width: 12px;
    /* Reduced from 15px */
    height: 12px;
    /* Reduced from 15px */
  }

  /* Paywall specific mobile adjustments */
  .paywall-container {
    max-width: 100%;
    padding: 0;
  }

  .pricing-card {
    padding: 1.25rem;
    /* Reduced from 2rem */
    margin: 1rem 0;
    /* Reduced from 1.5rem 0 */
  }

  .price {
    font-size: 2rem;
    /* Reduced from 2.5rem */
  }

  .features-list {
    gap: 0.5rem;
    /* Reduced from 0.75rem */
  }

  .feature {
    font-size: 0.85rem;
    /* Reduced from 0.95rem */
  }

  /* Progress container mobile adjustments */
  .progress-container {
    max-width: 100%;
    margin-top: 1.5rem;
    /* Reduced from 2rem */
  }

  .progress-steps {
    font-size: 0.8rem;
    /* Reduced from 0.9rem */
  }

  .step {
    padding: 0.4rem;
    /* Reduced from 0.5rem */
  }

  /* Before/after images mobile sizing */
  .image-container {
    max-width: 250px !important;
    /* Reduced from 300px */
    height: 150px !important;
    /* Reduced from 200px */
  }

  /* Schedule table mobile adjustments */
  .schedule-table {
    font-size: 0.8rem;
    /* Reduced from 0.95rem */
  }

  .schedule-table th,
  .schedule-table td {
    padding: 0.5rem;
    /* Reduced from 0.75rem */
  }

  /* Flex button containers on mobile */
  .mt-4.flex.justify-between {
    gap: 0.5rem;
  }

  .mt-4.flex.justify-between button {
    flex: 1;
    min-width: 0;
  }
}

/* Extra small mobile devices (under 480px) */
@media (max-width: 480px) {
  body {
    padding: 0.5rem;
    /* Reduced from 1rem */
  }

  main {
    margin-top: 5%;
    /* Reduced from 10% */
  }

  .form-container {
    padding: 0.75rem 0.5rem;
    /* Even more compact */
  }

  .logo-container {
    gap: 0.5rem;
  }

  .logo-container img {
    height: 28px;
  }

  .logo-text {
    font-size: 1.25rem;
  }

  /* Stack buttons vertically on very small screens */
  .mt-4.flex.justify-between {
    flex-direction: column;
    gap: 0.75rem;
  }

  .pricing-card {
    padding: 1rem;
  }

  .price {
    font-size: 1.75rem;
  }

  .tea-icon-container {
    height: 35px;
    width: 45px;
  }

  .teacup {
    width: 35px;
    height: 22px;
  }

  .teacup::before {
    width: 39px;
    height: 8px;
  }
}

@media (max-width: 1024px) {

  /* Main container adjustments for mobile */
  .form-container {
    padding: 1rem 0.75rem;
    /* Reduced from 2rem 1.5rem */
    max-width: 100%;
    /* Full width on mobile */
    margin: 0 0.5rem;
    /* Small side margins */
  }

  .form-container h1 {
    font-size: 1.25rem;
    /* Reduced from 1.6rem */
    margin-bottom: 0.5rem;
  }

  .form-container h2 {
    font-size: 0.9rem;
    /* Reduced from 1rem */
    margin-bottom: 1rem;
    /* Reduced from 1.5rem */
  }

  .form-container input[type="text"],
  .form-container input[type="email"],
  .form-container input[type="number"],
  .form-container input[type="file"],
  .form-container textarea {
    padding: 0.6rem;
    /* Reduced from 0.75rem */
    font-size: 0.9rem;
    /* Slightly smaller text */
  }

  .form-container button,
  .primary-btn,
  .secondary-btn {
    padding: 0.6rem 1rem;
    /* Reduced padding */
    font-size: 0.95rem;
    /* Slightly smaller text */
  }

  /* Compact chip styling */
  .chip {
    padding: 0.4rem 0.6rem;
    /* Reduced from 0.5rem 0.75rem */
    font-size: 0.8rem;
    /* Reduced from 0.85rem */
  }

  /* Smaller tea icon for mobile */
  .tea-icon-container {
    height: 150px;
    /* Reduced from 200px */
    width: 150px;
    /* Reduced from 200px */
  }

  .teacup {
    width: 90px;
    /* Reduced from 120px */
    height: 60px;
    /* Reduced from 80px */
  }

  .teacup::before {
    width: 100px;
    /* Reduced from 130px */
    height: 20px;
    /* Reduced from 30px */
    top: -10px;
    /* Adjusted from -15px */
  }

  .handle {
    width: 28px;
    /* Reduced from 35px */
    height: 45px;
    /* Reduced from 60px */
    border-width: 6px;
    /* Reduced from 8px */
    right: -20px;
    /* Adjusted from -25px */
    top: 12px;
    /* Adjusted from 15px */
  }

  .steams-wrapper {
    width: 90px;
    /* Reduced from 120px */
    height: 60px;
    /* Reduced from 80px */
    top: 15px;
    /* Adjusted from 20px */
  }

  .steam {
    width: 12px;
    /* Reduced from 15px */
    height: 12px;
    /* Reduced from 15px */
  }

  /* Paywall specific mobile adjustments */
  .paywall-container {
    max-width: 100%;
    padding: 0;
  }

  .pricing-card {
    padding: 1.25rem;
    /* Reduced from 2rem */
    margin: 1rem 0;
    /* Reduced from 1.5rem 0 */
  }

  .price {
    font-size: 2rem;
    /* Reduced from 2.5rem */
  }

  .features-list {
    gap: 0.5rem;
    /* Reduced from 0.75rem */
  }

  .feature {
    font-size: 0.85rem;
    /* Reduced from 0.95rem */
  }

  /* Progress container mobile adjustments */
  .progress-container {
    max-width: 100%;
    margin-top: 1.5rem;
    /* Reduced from 2rem */
  }

  .progress-steps {
    font-size: 0.8rem;
    /* Reduced from 0.9rem */
  }

  .step {
    padding: 0.4rem;
    /* Reduced from 0.5rem */
  }

  /* Before/after images mobile sizing */
  .image-container {
    max-width: 250px !important;
    /* Reduced from 300px */
    height: 150px !important;
    /* Reduced from 200px */
  }

  /* Schedule table mobile adjustments */
  .schedule-table {
    font-size: 0.8rem;
    /* Reduced from 0.95rem */
  }

  .schedule-table th,
  .schedule-table td {
    padding: 0.5rem;
    /* Reduced from 0.75rem */
  }

  /* Flex button containers on mobile */
  .mt-4.flex.justify-between {
    gap: 0.5rem;
  }

  .mt-4.flex.justify-between button {
    flex: 1;
    min-width: 0;
  }
}