/* ── Custom Styles for Daily Care Static Theme ── */

.article-detail {
  min-height: 100vh;
}

.article-detail-hero {
  position: relative;
  height: 400px;
  overflow: hidden;
}

.article-detail-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-detail-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.1) 100%);
}

.article-detail-content {
  padding: 60px 0;
  background: hsl(var(--background));
}

.article-detail-header {
  margin-bottom: 40px;
}

.article-detail-tag {
  display: inline-block;
  padding: 6px 12px;
  background: hsl(var(--accent) / 0.1);
  color: hsl(var(--accent));
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.article-detail-title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: hsl(var(--foreground));
  font-family: var(--app-font-serif);
}

.article-detail-body {
  max-width: 800px;
  color: hsl(var(--foreground));
  line-height: 1.8;
  font-size: 1.05rem;
}

.article-detail-body h2 {
  font-size: 2rem;
  font-weight: 700;
  margin: 48px 0 24px;
  color: hsl(var(--foreground));
  font-family: var(--app-font-serif);
}

.article-detail-body h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 36px 0 16px;
  color: hsl(var(--foreground));
  font-family: var(--app-font-serif);
}

.article-detail-body p {
  margin-bottom: 20px;
  color: hsl(var(--muted-foreground));
}

.article-detail-body strong {
  font-weight: 600;
  color: hsl(var(--foreground));
}

.article-detail-cta {
  max-width: 800px;
}

@media (max-width: 768px) {
  .article-detail-hero {
    height: 250px;
  }

  .article-detail-title {
    font-size: 1.75rem;
  }

  .article-detail-body {
    font-size: 1rem;
  }

  .article-detail-body h2 {
    font-size: 1.5rem;
  }

  .article-detail-body h3 {
    font-size: 1.25rem;
  }

  .article-detail-cta {
    margin-top: 40px;
  }

  .article-detail-cta > div {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Lucide Icon integration */
svg.lucide,
[data-lucide] {
  display: inline-block;
  vertical-align: middle;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

/* Ensure smooth modal open/close display */
.modal-backdrop.hidden,
.modal.hidden {
  display: none !important;
}

/* Cursor trail canvas layer */
#cursor-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99999;
}

/* ── Hero Video Responsive Section ── */
.hero {
  position: relative;
  min-height: 560px;
  background-color: hsl(var(--primary));
  isolation: isolate;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-video-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
  filter: saturate(0.95) contrast(1.02);
  display: block !important;
}

/* Desktop slanted blue background divider */
.hero-slant-bg {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(90deg, hsl(var(--primary)) 0%, hsl(var(--primary)) 78%, rgba(13, 48, 95, 0.95) 100%);
  clip-path: polygon(0 0, 58% 0, 43% 100%, 0 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  padding: 56px 0 68px clamp(32px, 5vw, 80px);
}

.hero-copy {
  max-width: 520px;
}

/* Tablet screens (769px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
  .hero-slant-bg {
    clip-path: polygon(0 0, 64% 0, 48% 100%, 0 100%);
  }
  .hero-video {
    object-position: 80% center;
  }
  .hero-content {
    padding: 50px 0 60px clamp(24px, 4vw, 50px);
  }
}

/* Mobile screens (<= 768px): Full background video with subtle brand overlay */
@media (max-width: 768px) {
  .hero {
    min-height: 520px;
  }

  .hero-video-wrapper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
  }

  .hero-video {
    object-position: center center;
    opacity: 0.88;
  }

  /* Remove slant on mobile; show translucent overlay so video is visible as background */
  .hero-slant-bg {
    clip-path: none !important;
    background: linear-gradient(
      180deg,
      rgba(13, 48, 95, 0.88) 0%,
      rgba(13, 48, 95, 0.72) 45%,
      rgba(13, 48, 95, 0.90) 100%
    ) !important;
    width: 100% !important;
    z-index: 2;
  }

  .hero-content {
    padding: 50px 20px 60px !important;
  }

  .hero-copy {
    max-width: 100%;
  }
}

/* ── Contact Form 7 Seamless Integration ── */
.contact-grid .wpcf7 {
  width: 100%;
}

.wpcf7 form.contact-form {
  background: hsl(var(--card));
  box-shadow: var(--shadow-soft);
  border-radius: 25px;
  padding: 34px;
  display: block;
  width: 100%;
  box-sizing: border-box;
}

.contact-form .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

.contact-form .field input.wpcf7-form-control,
.contact-form .field select.wpcf7-form-control,
.contact-form .field textarea.wpcf7-form-control {
  border: 1px solid hsl(var(--border));
  width: 100%;
  color: hsl(var(--foreground));
  background: hsl(var(--background));
  border-radius: 10px;
  outline: none;
  padding: 13px 14px;
  transition: border .2s, box-shadow .2s;
  font-family: inherit;
  font-size: 14px;
  box-sizing: border-box;
}

.contact-form .field input.wpcf7-form-control:focus,
.contact-form .field select.wpcf7-form-control:focus,
.contact-form .field textarea.wpcf7-form-control:focus {
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 3px #1b55501f;
}

.contact-form .field textarea,
.contact-form .field textarea.wpcf7-form-control,
.contact-form textarea#message,
.contact-grid textarea,
.wpcf7 textarea,
textarea#message,
textarea.field-textarea,
textarea[name="your-message"] {
  resize: none !important;
  height: 85px !important;
  min-height: 85px !important;
  max-height: 85px !important;
  line-height: 1.4 !important;
  overflow-y: auto !important;
}

.contact-form .wpcf7-not-valid-tip {
  color: #dc2626;
  font-size: 12px;
  margin-top: 4px;
  display: block;
  font-weight: 500;
}

.contact-form .wpcf7-response-output {
  border-radius: 10px !important;
  margin: 16px 0 0 0 !important;
  padding: 12px 16px !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
}

.wpcf7 form.sent .wpcf7-response-output {
  color: hsl(var(--primary)) !important;
  background: #d9ede6 !important;
  border: 1px solid #b6e0d3 !important;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output {
  color: #b91c1c !important;
  background: #fee2e2 !important;
  border: 1px solid #fca5a5 !important;
}

.contact-form .wpcf7-acceptance {
  display: block;
  margin: 4px 0 20px;
}

.contact-form .wpcf7-acceptance .wpcf7-list-item {
  margin: 0 !important;
}

.contact-form .wpcf7-acceptance label {
  color: hsl(var(--muted-foreground));
  align-items: flex-start;
  gap: 9px;
  font-size: 11px;
  line-height: 1.45;
  display: flex;
  cursor: pointer;
  font-weight: normal;
}

.contact-form .wpcf7-acceptance input[type="checkbox"] {
  accent-color: hsl(var(--primary));
  margin-top: 2px;
  flex-shrink: 0;
  width: auto;
}

.contact-form .wpcf7-spinner {
  margin-left: 12px;
  vertical-align: middle;
}

/* ── Action Modal (Refill / Transfer) CF7 Styles ── */
#modal-form-area .wpcf7 {
  width: 100%;
}

#modal-form-area form.wpcf7-form {
  width: 100%;
}

#modal-form-area .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

#modal-form-area .field input.wpcf7-form-control {
  border: 1px solid hsl(var(--border));
  width: 100%;
  color: hsl(var(--foreground));
  background: hsl(var(--background));
  border-radius: 10px;
  outline: none;
  padding: 13px 14px;
  transition: border .2s, box-shadow .2s;
  font-family: inherit;
  font-size: 14px;
  box-sizing: border-box;
}

#modal-form-area .field input.wpcf7-form-control:focus {
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 3px #1b55501f;
}

#modal-form-area .wpcf7-not-valid-tip {
  color: #dc2626;
  font-size: 12px;
  margin-top: 4px;
  display: block;
  font-weight: 500;
}

#modal-form-area .wpcf7-response-output {
  border-radius: 10px !important;
  margin: 14px 0 0 0 !important;
  padding: 10px 14px !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
}

#modal-form-area .wpcf7-spinner {
  margin-left: 10px;
  vertical-align: middle;
}

/* ── Wholesale Account Application Page ── */
.wholesale-hero {
  background: linear-gradient(135deg, #0b1a2e 0%, hsl(211, 72%, 22%) 60%, #0d2238 100%);
  padding: 64px 0 54px;
  position: relative;
  overflow: hidden;
  color: #ffffff;
}

.wholesale-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(223, 151, 59, 0.16), transparent 50%),
              linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.32));
  pointer-events: none;
}

.wholesale-hero-inner {
  position: relative;
  z-index: 1;
}

.wholesale-hero-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: hsl(var(--accent));
  margin-bottom: 10px;
}

.wholesale-hero-title {
  font-size: clamp(2.2rem, 4.5vw, 3rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.wholesale-hero-subtitle {
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.92);
  max-width: 820px;
  margin: 0;
}

.wholesale-body {
  background-color: #f8f9fa;
  padding: 48px 0 80px;
}

.wholesale-page-header {
  margin-bottom: 32px;
}

.wholesale-heading {
  font-size: 1.85rem;
  font-weight: 700;
  color: #0b1a2e;
  margin: 0 0 6px 0;
  letter-spacing: -0.015em;
}

.wholesale-subheading {
  font-size: 0.95rem;
  color: #64748b;
  margin: 0;
}

.wholesale-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 36px;
  align-items: stretch;
}

.wholesale-sidebar {
  position: relative;
  height: 100%;
}

@media (max-width: 991px) {
  .wholesale-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .wholesale-sidebar {
    height: auto;
  }
}

.wholesale-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e9ecef;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
  padding: 26px 28px;
  margin-bottom: 22px;
  transition: box-shadow 0.2s ease;
}

.wholesale-card:hover {
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

.card-accent-bar {
  width: 32px;
  height: 3px;
  background-color: hsl(var(--accent));
  border-radius: 2px;
  margin-bottom: 8px;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0b1a2e;
  margin: 0 0 4px 0;
  letter-spacing: -0.01em;
}

.card-desc {
  font-size: 0.88rem;
  color: #64748b;
  margin: 0 0 20px 0;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 14px;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 14px;
}

@media (max-width: 640px) {
  .form-grid-2,
  .form-grid-3 {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 14px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.83rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 3px;
}

.form-group label .req {
  color: #e11d48;
  font-weight: 700;
}

.form-control-input {
  width: 100%;
  height: 44px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 0 14px;
  font-size: 0.92rem;
  color: #0f172a;
  background-color: #ffffff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  font-family: inherit;
  box-sizing: border-box;
}

.form-control-input:focus {
  outline: none;
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 3px rgba(22, 74, 122, 0.18);
}

.form-control-input::placeholder {
  color: #94a3b8;
}

select.form-control-input {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 38px;
  cursor: pointer;
}

textarea.form-control-input {
  height: 105px;
  padding: 12px 14px;
  resize: vertical;
  line-height: 1.5;
}

.checkbox-row {
  margin: 6px 0 18px 0;
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  color: #334155;
  user-select: none;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1px solid #cbd5e1;
  cursor: pointer;
  accent-color: hsl(var(--accent));
}

.file-upload-wrapper {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  padding: 14px 16px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.file-upload-wrapper:hover {
  border-color: hsl(var(--accent));
  background: #fdfdfd;
}

.file-upload-input {
  width: 100%;
  font-size: 0.88rem;
  color: #475569;
  cursor: pointer;
}

.file-upload-input::file-selector-button {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 7px 16px;
  font-size: 0.84rem;
  font-weight: 600;
  color: #1e293b;
  cursor: pointer;
  margin-right: 12px;
  transition: all 0.15s ease;
}

.file-upload-input::file-selector-button:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
}

.file-help-text {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 6px;
}

.wholesale-sidebar-box {
  background: #ffffff;
  border-left: 3.5px solid hsl(var(--accent));
  border-top: 1px solid #e9ecef;
  border-right: 1px solid #e9ecef;
  border-bottom: 1px solid #e9ecef;
  border-radius: 4px 10px 10px 4px;
  padding: 24px 22px;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
  position: -webkit-sticky;
  position: sticky;
  top: 16px;
  z-index: 20;
}

.admin-bar .wholesale-sidebar-box {
  top: 44px;
}

.sidebar-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0b1a2e;
  margin: 0 0 12px 0;
  letter-spacing: -0.01em;
}

.sidebar-text {
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.58;
  margin-bottom: 12px;
}

.sidebar-text:last-of-type {
  margin-bottom: 0;
}

.sidebar-contact-info {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #e2e8f0;
}

.sidebar-contact-info h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: #0b1a2e;
  margin: 0 0 8px 0;
}

.sidebar-contact-info p {
  font-size: 0.84rem;
  color: #475569;
  line-height: 1.45;
  margin: 0 0 6px 0;
}

.sidebar-contact-info a {
  color: hsl(var(--primary));
  font-weight: 600;
  text-decoration: none;
}

.sidebar-contact-info a:hover {
  text-decoration: underline;
}

.wholesale-submit-container {
  margin-top: 12px;
}

.wholesale-btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  font-weight: 700;
  font-size: 0.98rem;
  border: none;
  border-radius: 999px;
  padding: 13px 36px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 3px 12px rgba(223, 151, 59, 0.25);
}

.wholesale-btn-submit:hover {
  background-color: #ca842d;
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(202, 132, 45, 0.35);
  transform: translateY(-1px);
}

.wholesale-btn-submit:active {
  transform: translateY(0);
}

.wholesale-success-alert {
  display: none;
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 24px;
  color: #166534;
}

.wholesale-success-alert h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 6px 0;
  color: #14532d;
}

.wholesale-success-alert p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
}




