/* =========================================
   RESET
========================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: #1f2937;
  background: #f5f7fa;
  line-height: 1.5;
}

button,
input,
textarea,
select {
  font-family: inherit;
}

/* =========================================
   LANDING PAGES
========================================= */

.landing-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.landing-card {
  width: 100%;
  max-width: 850px;
  background: #ffffff;
  border-radius: 20px;
  padding: 45px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.logo-section {
  margin-bottom: 20px;
}

.company-logo {
  width: 110px;
  height: auto;
  max-height: 100px;
  object-fit: contain;
}

.company-info h1 {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.company-info h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.discount {
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 0;
}

.affordable {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 3px;
  margin-bottom: 25px;
}

.address-section {
  padding: 18px;
  border-radius: 12px;
  background: #f8fafc;
  margin-bottom: 25px;
}

.address-section p {
  font-size: 15px;
}

.description {
  max-width: 700px;
  margin: 0 auto 25px;
}

.description p {
  margin-bottom: 10px;
  font-size: 16px;
}

.head-badge {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 999px;
  background: #eef2ff;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 25px;
}

.start-section {
  margin-top: 10px;
}

.start-button {
  display: inline-block;
  text-decoration: none;
  background: #1d4ed8;
  color: #ffffff;
  padding: 14px 35px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  transition: 0.2s ease;
}

.start-button:hover {
  background: #1e40af;
  transform: translateY(-1px);
}

/* =========================================
   SURVEY PAGE
========================================= */

.survey-page {
  min-height: 100vh;
  padding: 35px 20px;
}

.survey-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.survey-page {
  padding-top: 10px;
  padding-bottom: 10px;
}

/* =========================================
   SURVEY HEADER
========================================= */

.survey-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 30px 10px;
}

.logo-wrapper {
  text-align: center;
}

.survey-header .company-logo {
  width: 250px;
  height: 95px;
}

.company-title h1 {
  font-size: 38px;
  font-weight: 800;
  margin-bottom: 3px;
}

.company-title h2 {
  font-size: 21px;
  font-weight: 700;
  margin-bottom: 10px;
}

.price-range {
  font-size: 27px;
  font-weight: 800;
}

.company-title .affordable {
  margin-bottom: 0;
}

/* =========================================
   COMPANY ADDRESS
========================================= */

.company-address {
  padding: 15px 35px;
  text-align: center;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  background: #fafafa;
}

.company-address p {
  font-size: 14px;
}

/* =========================================
   INTRODUCTION
========================================= */

.intro-section {
  padding: 25px 35px 10px;
  text-align: center;
}

.intro-section p {
  margin-bottom: 8px;
  font-size: 15px;
}

/* =========================================
   SHOP INFORMATION
========================================= */

.shop-info-section {
  margin: 8px 30px 8px;
  display: flex;
  justify-content: center;
}

.shop-info-section .form-grid {
  max-width: 600px;
  width: 100%;
}

.shop-info-section .form-group {
  text-align: center;
}

.shop-info-section .form-group input {
  max-width: 260px;
}

/* =========================================
   FORM
========================================= */

#surveyForm {
  padding: 8px 30px 15px;
}

.form-section {
  margin-top: 10px;
}

.section-heading {
  font-size: 20px;
  font-weight: 800;
  padding-bottom: 6px;
  margin-bottom: 10px;
  border-bottom: 2px solid #e5e7eb;
}

.section-description {
  color: #6b7280;
  margin-top: -10px;
  margin-bottom: 18px;
  font-size: 14px;
}

.form-group {
  margin-bottom: 5px;
}

.form-group label {
  display: block;
  margin-bottom: 7px;
  font-size: 14px;
  font-weight: 700;
}

.form-group label span {
  color: #dc2626;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  color: #111827;
  font-size: 15px;
  padding: 6px 12px;
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

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

input::placeholder,
textarea::placeholder {
  color: #9ca3af;
}

/* =========================================
   MEDICINE TABLE
========================================= */

.table-wrapper {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #dbe1e8;
  border-radius: 10px;
}

.medicine-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  background: #ffffff;
}

.medicine-table th,
.medicine-table td {
  border: 1px solid #dbe1e8;
  padding: 4px;
  vertical-align: middle;
}

.medicine-table th {
  background: #f1f5f9;
  color: #1f2937;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.medicine-table td {
  font-size: 13px;
}

.medicine-table td:first-child {
  width: 55px;
  text-align: center;
  font-weight: 700;
}

.medicine-table input {
  min-width: 90px;
  padding: 5px 8px;
  font-size: 12px;
}

.medicine-table th:nth-child(2) {
  min-width: 160px;
}

.medicine-table th:nth-child(3) {
  min-width: 110px;
}

.medicine-table th:nth-child(4) {
  min-width: 130px;
}

.medicine-table th:nth-child(5),
.medicine-table th:nth-child(6) {
  min-width: 120px;
}

.medicine-table th:nth-child(7) {
  min-width: 80px;
}

/* =========================================
   MEDICINE BUTTONS
========================================= */

.add-medicine-btn {
  margin-top: 10px;
  border: 1px solid #2563eb;
  background: #ffffff;
  color: #2563eb;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}

.add-medicine-btn:hover {
  background: #eff6ff;
}

.remove-medicine {
  border: none;
  background: #fee2e2;
  color: #b91c1c;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.remove-medicine:hover:not(:disabled) {
  background: #fecaca;
}

.remove-medicine:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* =========================================
   SAVINGS
========================================= */

.saving-note {
  font-size: 13px;
  color: #6b7280;
  margin-top: 5px;
}

/* =========================================
   SUBMIT
========================================= */

.submit-section {
  margin-top: 14px;
  text-align: center;
}

.submit-btn {
  width: 100%;
  max-width: 300px;
  border: none;
  border-radius: 10px;
  padding: 10px 25px;
  background: #1d4ed8;
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.2s ease;
}

.submit-btn:hover {
  background: #1e40af;
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-message {
  min-height: 24px;
  margin-top: 15px;
  font-size: 14px;
  font-weight: 700;
}

/* =========================================
   FOOTER
========================================= */

.survey-footer {
  padding: 8px;
  text-align: center;
  border-top: 1px solid #e5e7eb;
  background: #fafafa;
  color: #000000;
  font-size: 16px;
}

.footer-contact {
  margin-top: 6px;
  font-size: 15px;
  color: #000000;
}

.footer-contact a {
  color: #1d4ed8;
  text-decoration: none;
}

.footer-contact a:hover {
  text-decoration: underline;
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 768px) {
  .landing-page {
    padding: 20px 12px;
  }

  .landing-card {
    padding: 30px 20px;
  }

  .company-info h1 {
    font-size: 30px;
  }

  .company-info h2 {
    font-size: 17px;
  }

  .survey-page {
    padding: 15px 8px;
  }

  .survey-header {
    padding: 25px 20px 20px;
  }

  .survey-header .company-logo {
    width: 280px;
    height: 100px;
  }

  .company-title h1 {
    font-size: 30px;
  }

  .company-title h2 {
    font-size: 17px;
  }

  .price-range {
    font-size: 23px;
  }

  .company-address {
    padding: 14px 20px;
  }

  .intro-section {
    padding: 20px 20px 5px;
  }

  .shop-info-section {
    margin-left: 20px;
    margin-right: 20px;
  }

  #surveyForm {
    padding-left: 20px;
    padding-right: 20px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .section-heading {
    font-size: 18px;
  }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 480px) {
  body {
    background: #ffffff;
  }

  .landing-page {
    padding: 0;
  }

  .landing-card {
    min-height: 100vh;
    border-radius: 0;
    box-shadow: none;
    padding: 30px 16px;
  }

  .company-info h1 {
    font-size: 27px;
  }

  .company-info h2 {
    font-size: 15px;
  }

  .discount {
    font-size: 24px;
  }

  .survey-container {
    border-radius: 0;
    box-shadow: none;
  }

  .survey-header {
    padding-left: 15px;
    padding-right: 15px;
  }

  .company-address {
    padding-left: 15px;
    padding-right: 15px;
  }

  .intro-section {
    padding-left: 15px;
    padding-right: 15px;
  }

  .shop-info-section {
    margin-left: 15px;
    margin-right: 15px;
  }

  #surveyForm {
    padding-left: 15px;
    padding-right: 15px;
  }

  .section-heading {
    font-size: 17px;
  }

  /*
       Medicine table remains wide intentionally.
       User can swipe horizontally on mobile.
    */

  .table-wrapper {
    -webkit-overflow-scrolling: touch;
  }

  .submit-btn {
    max-width: 100%;
  }
}
