/**
 * pages.css — Shared styles for Svalara info pages
 * (Delivery, Returns, Terms & Conditions)
 * Inherits the design system from style.css
 */

/* ── Page base ── */
.info-page {
  background-color: #f7f6f4;
  min-height: 100vh;
}

/* ── Minimal header ── */
.info-header {
  background-color: var(--clr-white);
  border-bottom: 1px solid var(--clr-steel-300);
  padding: 1rem var(--space-md);
  position: sticky;
  top: 0;
  z-index: 100;
}

.info-header-inner {
  max-width: 860px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.info-logo {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clr-steel-900);
  text-decoration: none;
}

.info-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--clr-steel-600);
  text-decoration: none;
  text-transform: uppercase;
  transition: color var(--transition-fast);
}

.info-back-link:hover {
  color: var(--clr-steel-900);
}

/* ── Main content wrapper ── */
.info-main {
  max-width: 760px;
  margin-inline: auto;
  padding: var(--space-xl) var(--space-md);
}

/* ── Page hero / title block ── */
.info-hero {
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--clr-steel-300);
}

.info-eyebrow {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clr-steel-600);
  margin-bottom: 0.6rem;
}

.info-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--clr-steel-900);
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.info-subtitle {
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--clr-steel-600);
  line-height: 1.7;
}

/* ── Content sections ── */
.info-section {
  margin-bottom: var(--space-lg);
}

.info-section-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--clr-steel-900);
  margin-bottom: 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--clr-steel-100);
}

.info-body {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--clr-steel-600);
  line-height: 1.85;
}

.info-body p {
  margin-bottom: 0.85rem;
}

.info-body p:last-child {
  margin-bottom: 0;
}

.info-body strong {
  font-weight: 700;
  color: var(--clr-steel-800);
}

/* ── Info table (shipping methods etc.) ── */
.info-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: 0.85rem;
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
}

.info-table th {
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-steel-800);
  background-color: var(--clr-steel-100);
  padding: 0.65rem 1rem;
  text-align: left;
  border-bottom: 2px solid var(--clr-steel-300);
}

.info-table td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--clr-steel-100);
  color: var(--clr-steel-600);
  vertical-align: top;
}

.info-table tr:last-child td {
  border-bottom: none;
}

/* ── Highlight box ── */
.info-highlight {
  background-color: var(--clr-steel-100);
  border-left: 3px solid var(--clr-steel-600);
  border-radius: 0 4px 4px 0;
  padding: var(--space-sm) var(--space-md);
  margin: var(--space-sm) 0;
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--clr-steel-800);
  line-height: 1.7;
}

/* ── Ordered / unordered lists ── */
.info-list {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--clr-steel-600);
  line-height: 1.85;
  padding-left: 1.3rem;
  margin: 0.75rem 0;
}

.info-list li {
  margin-bottom: 0.4rem;
  list-style: inside;
}

/* ── CTA block at the bottom ── */
.info-cta {
  background-color: var(--clr-steel-800);
  border-radius: 4px;
  padding: var(--space-md) var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-top: var(--space-xl);
}

.info-cta-text {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--clr-steel-100);
  line-height: 1.4;
}

.info-cta-sub {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--clr-steel-600);
  margin-top: 0.25rem;
}

/* ── Page footer ── */
.info-footer {
  background-color: var(--clr-steel-800);
  padding: var(--space-sm) 0;
  margin-top: var(--space-xl);
}

.info-footer-inner {
  max-width: 860px;
  margin-inline: auto;
  padding-inline: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.info-footer-logo {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clr-steel-100);
}

.info-footer-copy {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--clr-steel-600);
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .info-cta {
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-md);
  }
}

/* ════════════════════════════════════════════
   Contact Form
════════════════════════════════════════════ */
.contact-section {
  background: var(--clr-white);
  border: 1px solid var(--clr-steel-200, #e2e2df);
  border-radius: 8px;
  padding: var(--space-lg);
  margin-top: var(--space-xl);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 0.5rem;
}

/* Two-column row */
.contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.contact-field--full {
  grid-column: 1 / -1;
}

/* Label */
.contact-label {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-steel-800);
}

.contact-label-opt {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--clr-steel-500, #8a8a80);
}

/* Input / Textarea */
.contact-input {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--clr-steel-900);
  background: #fafaf8;
  border: 1px solid var(--clr-steel-300, #ccc);
  border-radius: 5px;
  padding: 0.65rem 0.9rem;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
  width: 100%;
  box-sizing: border-box;
}

.contact-input::placeholder {
  color: var(--clr-steel-400, #aaa);
}

.contact-input:focus {
  border-color: var(--clr-steel-700, #555);
  box-shadow: 0 0 0 3px rgba(80, 80, 70, 0.12);
  background: #fff;
}

.contact-input--error {
  border-color: #c0392b !important;
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12) !important;
}

.contact-textarea {
  resize: vertical;
  min-height: 140px;
}

/* Word counter */
.contact-wordcount {
  font-family: var(--font-body);
  font-size: 0.73rem;
  color: var(--clr-steel-500, #888);
  text-align: right;
  margin-top: 0.2rem;
  transition: color 0.18s;
}

/* Submit button */
.contact-submit {
  align-self: flex-start;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-white);
  background: var(--clr-steel-800);
  border: none;
  border-radius: 4px;
  padding: 0.8rem 2rem;
  cursor: pointer;
  transition: background 0.18s, transform 0.12s;
}

.contact-submit:hover:not(:disabled) {
  background: var(--clr-steel-900);
  transform: translateY(-1px);
}

.contact-submit:active:not(:disabled) {
  transform: translateY(0);
}

.contact-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Success banner */
.contact-success {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background: #f0faf2;
  border: 1px solid #4caf50;
  border-radius: 6px;
  color: #2e7d32;
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.55;
  animation: fadeIn 0.35s ease;
}

.contact-success[hidden] {
  display: none;
}

.contact-success-icon {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  stroke: #4caf50;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 1024px) { 
  .info-subtitle,
  .info-body {
    text-align: justify;
  }
}

@media (max-width: 600px) {
  .contact-section {
    padding: var(--space-md);
  }
  .contact-row {
    grid-template-columns: 1fr;
  }
  .contact-submit {
    width: 100%;
    text-align: center;
  }
}

/* ════════════════════════════════════════════
   FAQ + Contact Two-Column Layout
════════════════════════════════════════════ */
.section-faq-contact {
  background-color: var(--clr-white);
  padding-block: var(--space-xl);
}

.faq-contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: start;
}

/* FAQ column — remove auto-centering used in the standalone section */
.faq-col .faq-container {
  max-width: none;
  padding-inline: 0;
  margin: 0;
}

/* Contact column */
.contact-col {
  background: var(--clr-steel-100);
  border: 1px solid var(--clr-steel-300);
  border-radius: 8px;
  padding: var(--space-md);
}

.contact-col-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--clr-steel-900);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.contact-col-lead {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--clr-steel-600);
  line-height: 1.65;
  margin-bottom: var(--space-sm);
}

/* Select / dropdown */
.contact-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23607D8B' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.2rem;
  cursor: pointer;
}

/* Responsive — stack to single column on tablet/mobile */
@media (max-width: 880px) {
  .faq-contact-wrapper {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  .contact-col {
    padding: var(--space-sm);
  }
}

