/* Homepage updates — Law Essay Dom */

/* ---- Hero price calculator ---- */
.hero-price-calculator {
  background: rgba(20, 18, 14, 0.72);
  border: 1px solid #d8b873;
  border-radius: 28px;
  padding: 22px 20px 20px;
  color: #fff;
  font-family: Montserrat, sans-serif;
  height: auto !important;
  min-height: 480px;
}

.hero-section .form-container {
  height: auto !important;
  padding: 0;
  border: none;
  background: transparent;
}

.calc-title {
  text-align: center;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #d8b873;
  font-family: "Playfair Display", serif;
}

.calc-field {
  margin-bottom: 12px;
}

.calc-field label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
  color: #e8d9b0;
}

.calc-field select,
.calc-field input[type="date"] {
  width: 100%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid #d8b873;
  border-radius: 8px;
  color: #fff;
  padding: 10px 12px;
  font-size: 14px;
  color-scheme: light;
  box-sizing: border-box;
  appearance: auto;
  -webkit-appearance: menulist;
  -moz-appearance: menulist;
}

.calc-field select option,
.hero-price-calculator select option {
  background-color: #fff !important;
  color: #222 !important;
}

.calc-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.calc-half {
  flex: 1 1 0;
  min-width: 0;
}

.calc-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid #d8b873;
  border-radius: 8px;
  padding: 4px;
  color-scheme: dark;
}

.hero-section .form-container .calc-stepper input,
.calc-stepper input {
  width: 48px !important;
  min-width: 40px;
  flex: 1;
  text-align: center;
  background: transparent !important;
  border: none !important;
  color: #fff !important;
  font-weight: 600;
  pointer-events: none;
  margin: 0 !important;
  padding: 6px 0 !important;
  box-shadow: none !important;
}

/* Override site-wide .form-container button { left: 137px } */
.hero-section .form-container button.calc-step,
.hero-price-calculator button.calc-step,
.calc-step {
  position: static !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  width: 34px !important;
  min-width: 34px !important;
  max-width: 34px !important;
  height: 34px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 6px !important;
  background: #93845c !important;
  color: #fff !important;
  font-size: 18px !important;
  line-height: 34px !important;
  cursor: pointer;
  flex: 0 0 34px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

.calc-pages-note {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #ccc;
}

.calc-result {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 16px 0 14px;
  padding-top: 10px;
  border-top: 1px solid rgba(216, 184, 115, 0.45);
}

.calc-result-label {
  font-size: 14px;
  color: #e8d9b0;
}

.calc-result-price {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
}

.calc-order-btn {
  display: block;
  width: 100%;
  background: #93845c !important;
  color: #fff !important;
  border: none !important;
  border-radius: 18px !important;
  padding: 12px 16px !important;
  font-weight: 600;
  font-size: 15px;
  position: static !important;
  left: auto !important;
  cursor: pointer;
}

.calc-order-btn:hover {
  background: #a79466 !important;
}

/* ---- Trust strip ---- */
.trust-strip {
  background: #fff;
  border-top: 1px solid #e6e6e6;
  border-bottom: 1px solid #e6e6e6;
  padding: 22px 0 16px;
}

.trust-strip-caption {
  text-align: center;
  font-family: "Playfair Display", serif;
  font-size: 18px;
  color: #2b2b2b;
  margin-bottom: 14px;
  font-weight: 600;
}

.trust-strip-track-wrap {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}

.trust-strip-track {
  display: flex;
  align-items: center;
  gap: 42px;
  width: max-content;
  animation: trust-scroll 45s linear infinite;
}

.trust-logo {
  flex: 0 0 auto;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trust-logo img {
  max-height: 52px;
  max-width: 120px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: none;
}

.trust-strip-note {
  text-align: center;
  font-size: 12px;
  color: #777;
  margin: 12px 0 0;
}

@keyframes trust-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Center the squad CTA (overrides old fixed margin-left: 312px) */
.home .custom-content h2 {
  width: 100%;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.home .custom-content .order-btn {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Keep the expert-section images from spilling over the writer cards */
.home section.qualified {
  overflow: hidden;
  padding-bottom: 30px;
}

.home section.qualified .col-md-6.img-col.female-col {
  margin-bottom: 0;
}

/* ---- Writers ---- */
.writers-section {
  position: relative;
  z-index: 2;
  padding: 40px 0 20px;
  background: #f7f5f0;
  clear: both;
}

.writer-col {
  margin-bottom: 24px;
}

.writer-card {
  background: #fff;
  border: 1px solid #e8dfc8;
  border-radius: 18px;
  padding: 24px 18px 20px;
  text-align: center;
  height: 100%;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}

.writer-avatar {
  width: 78px;
  height: 78px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: linear-gradient(145deg, #93845c, #6f6344);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 22px;
  font-family: Montserrat, sans-serif;
}

.writer-avatar.large {
  width: 96px;
  height: 96px;
  font-size: 28px;
}

.writer-name {
  font-size: 18px;
  margin-bottom: 4px;
  color: #222;
  font-family: "Playfair Display", serif;
}

.writer-verified {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #1e8c5d;
  color: #fff;
  font-size: 11px;
  vertical-align: middle;
}

.writer-years {
  color: #93845c;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}

.writer-stats {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #555;
  margin-bottom: 10px;
}

.writer-bio {
  font-size: 13px;
  color: #555;
  line-height: 1.55;
  min-height: 84px;
}

.writer-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 14px;
}

.writer-hire,
.writer-view {
  flex: 1;
  text-align: center;
  border-radius: 18px;
  padding: 9px 10px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.writer-hire {
  background: #93845c;
  color: #fff !important;
  border: 1px solid #93845c;
}

.writer-view {
  background: transparent;
  color: #93845c;
  border: 1px solid #93845c;
}

.writer-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.writer-modal[hidden] {
  display: none !important;
}

.writer-modal-dialog {
  background: #fff;
  border-radius: 18px;
  max-width: 480px;
  width: 100%;
  padding: 28px 24px 24px;
  position: relative;
  text-align: center;
}

.writer-modal-close {
  position: absolute;
  top: 8px;
  right: 12px;
  border: none;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  color: #666;
  cursor: pointer;
}

body.writer-modal-open {
  overflow: hidden;
}

/* ---- Price plan ---- */
.price-plan-home {
  padding: 60px 0 50px;
  background: #fff;
}

.price-plan-intro h2 {
  font-family: "Playfair Display", serif;
  color: #93845c;
  margin-bottom: 12px;
}

.price-plan-intro p {
  max-width: 780px;
  margin: 0 auto 22px;
  color: #555;
}

.price-includes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
}

.price-includes span {
  background: #f7f5f0;
  border: 1px solid #e0d4b4;
  color: #5c5135;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
}

.price-plan-card {
  background: #fff;
  border: 1px solid #e8dfc8;
  border-top: 4px solid #d8b873;
  border-radius: 16px;
  padding: 24px 20px;
  height: 100%;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.04);
  margin-bottom: 20px;
}

.price-plan-card.featured {
  border-top-color: #93845c;
  box-shadow: 0 14px 28px rgba(147, 132, 92, 0.18);
}

.price-plan-card h3 {
  font-family: "Playfair Display", serif;
  font-size: 24px;
  margin-bottom: 12px;
  color: #222;
}

.price-plan-card h3 span {
  display: block;
  font-size: 15px;
  color: #93845c;
  font-family: Montserrat, sans-serif;
  font-weight: 600;
  margin-top: 4px;
}

.price-plan-card p {
  font-size: 14px;
  color: #555;
  line-height: 1.55;
}

.from-price {
  font-size: 18px !important;
  color: #222 !important;
  margin: 16px 0 !important;
}

.price-plan-order,
.price-plan-secondary {
  display: inline-block;
  background: #93845c;
  color: #fff !important;
  text-decoration: none !important;
  border-radius: 18px;
  padding: 10px 18px;
  font-weight: 600;
  font-size: 14px;
}

.price-plan-order {
  width: 100%;
  text-align: center;
}

.price-plan-footnote {
  text-align: center;
  font-size: 13px;
  color: #777;
  max-width: 860px;
  margin: 10px auto 22px;
}

.price-plan-ctas {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.price-plan-secondary {
  background: #fff;
  color: #93845c !important;
  border: 1px solid #93845c;
}

/* ---- Samples ---- */
.samples-section {
  padding: 55px 0 45px;
  background: #f7f5f0;
}

.samples-intro h2 {
  font-family: "Playfair Display", serif;
  color: #93845c;
  margin-bottom: 12px;
}

.samples-intro p {
  max-width: 760px;
  margin: 0 auto 28px;
  color: #555;
}

.sample-card {
  background: #fff;
  border: 1px solid #e8dfc8;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 22px;
  height: calc(100% - 22px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.04);
}

.sample-card-head {
  background: #efe7d4;
  color: #5c5135;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 10px 16px;
}

.sample-card h3 {
  font-size: 17px;
  padding: 14px 16px 0;
  color: #222;
  font-family: "Playfair Display", serif;
  line-height: 1.35;
}

.sample-desc {
  padding: 8px 16px 0;
  font-size: 14px;
  color: #555;
}

.sample-meta {
  list-style: none;
  padding: 10px 16px 0;
  margin: 0;
  font-size: 13px;
  color: #444;
}

.sample-meta li {
  padding: 6px 0;
  border-bottom: 1px dashed #ddd;
}

.sample-extract {
  padding: 12px 16px 16px;
  font-size: 13px;
  color: #555;
  line-height: 1.55;
}

.sample-extract strong {
  color: #93845c;
}

.samples-disclaimer {
  text-align: center;
  font-size: 13px;
  color: #777;
  margin-top: 8px;
}

/* ---- Blog ---- */
.blog-section-home {
  padding: 55px 0 50px;
  background: #fff;
  overflow: hidden;
}

.blog-section-home .row {
  margin-left: -12px;
  margin-right: -12px;
}

.blog-section-home [class*="col-"] {
  margin-left: 0 !important;
  left: auto !important;
  padding-left: 12px;
  padding-right: 12px;
}

.blog-intro h2 {
  font-family: "Playfair Display", serif;
  color: #93845c;
  margin-bottom: 10px;
}

.blog-intro p {
  color: #555;
  margin-bottom: 28px;
}

.blog-grid-col {
  margin-bottom: 24px;
  display: flex;
}

.blog-grid-card {
  background: #f7f5f0;
  border: 1px solid #e8dfc8;
  border-radius: 16px;
  overflow: hidden;
  width: 100%;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Kill global img margin/transform rules inside blog */
.blog-section-home img {
  margin: 0 !important;
  margin-left: 0 !important;
  margin-top: 0 !important;
  left: auto !important;
  top: auto !important;
  right: auto !important;
  position: static !important;
  transform: none !important;
  max-width: none !important;
}

.blog-grid-image {
  display: block;
  width: 100%;
  overflow: hidden;
  background: #efe7d4;
  flex: 0 0 auto;
}

.blog-grid-image img {
  width: 100% !important;
  height: 180px !important;
  object-fit: cover !important;
  object-position: left center !important;
  display: block;
}

.blog-grid-body {
  padding: 0 0 8px;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.blog-grid-body h3 {
  font-size: 17px;
  line-height: 1.35;
  padding: 0 16px;
  margin: 8px 0;
  font-family: "Playfair Display", serif;
}

.blog-grid-body h3 a {
  color: #222;
  text-decoration: none;
}

.blog-tag {
  display: inline-block;
  align-self: flex-start;
  margin: 12px 16px 0;
  background: #93845c;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  border-radius: 999px;
  padding: 4px 10px;
  text-transform: uppercase;
}

.blog-date {
  padding: 0 16px;
  font-size: 12px;
  color: #777;
  margin-bottom: 6px;
}

.blog-excerpt {
  padding: 0 16px;
  font-size: 14px;
  color: #555;
  flex: 1 1 auto;
}

.blog-read-more {
  display: inline-block;
  margin: 8px 16px 16px;
  color: #93845c !important;
  font-weight: 600;
  text-decoration: none !important;
}

.blog-all-wrap {
  margin-top: 12px;
}

.blog-view-all {
  display: inline-block;
  background: #93845c;
  color: #fff !important;
  text-decoration: none !important;
  border-radius: 18px;
  padding: 12px 22px;
  font-weight: 600;
}

@media (max-width: 991px) {
  .blog-grid-image img {
    height: 200px !important;
  }

  .calc-row {
    flex-direction: column;
    gap: 0;
  }
}

@media (max-width: 767px) {
  .hero-price-calculator {
    margin-top: 20px;
    min-height: 0;
  }

  .trust-logo img {
    max-height: 42px;
    max-width: 96px;
  }

  .price-includes span {
    font-size: 12px;
  }

  .writer-bio {
    min-height: 0;
  }
}
