/**
 * Fe no Bicho - Cotacao Page CSS
 * Follows same pattern as contato.css
 */

/* ========================================
   HERO SECTION
   ======================================== */

.cotacao-hero {
  background: var(--gradient-primary);
  padding: var(--spacing-lg) 0;
  color: white;
  text-align: center;
}

.cotacao-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: var(--spacing-md);
}

.cotacao-hero__subtitle {
  font-size: 1.125rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ========================================
   BREADCRUMB
   ======================================== */

.cotacao-breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md) 0;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.cotacao-breadcrumb__link {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s;
}

.cotacao-breadcrumb__link:hover {
  color: var(--color-primary-hover);
  text-decoration: underline;
}

.cotacao-breadcrumb__separator {
  color: var(--color-text-muted);
}

.cotacao-breadcrumb__current {
  color: var(--color-text-secondary);
}

/* ========================================
   CONTENT
   ======================================== */

.cotacao-content {
  padding: var(--spacing-2xl) 0;
}

/* ========================================
   SECTIONS
   ======================================== */

.cotacao-section {
  margin-bottom: var(--spacing-2xl);
}

.cotacao-section__header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.cotacao-section__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: var(--spacing-sm);
}

.cotacao-section__subtitle {
  font-size: 1rem;
  color: var(--color-text-muted);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ========================================
   QUOTATION TABLE
   ======================================== */

.cotacao-table-wrapper {
  overflow-x: auto;
  border-radius: 20px;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.06),
    0 1px 2px rgba(0, 0, 0, 0.04);
  background: linear-gradient(165deg, #ffffff 0%, #f8faf8 100%);
  border: 1px solid rgba(27, 158, 27, 0.08);
}

.cotacao-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}

.cotacao-table thead {
  background: var(--gradient-primary);
}

.cotacao-table th {
  color: #fff;
  font-weight: 600;
  padding: var(--spacing-md) var(--spacing-lg);
  text-align: center;
  white-space: nowrap;
  font-size: .875rem;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.cotacao-table th:first-child {
  text-align: left;
}

.cotacao-table td {
  padding: var(--spacing-md) var(--spacing-lg);
  text-align: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  color: var(--color-text-secondary);
  font-weight: 500;
  font-size: 1rem;
  white-space: nowrap;
}

.cotacao-table td:first-child {
  text-align: left;
  color: var(--color-text-primary);
}

.cotacao-table tbody tr {
  transition: all .3s ease;
}

.cotacao-table tbody tr:hover {
  background: rgba(27, 158, 27, 0.06);
}

.cotacao-table__row--highlight {
  background: linear-gradient(90deg, rgba(245, 184, 0, 0.06) 0%, rgba(245, 184, 0, 0.02) 100%);
}

.cotacao-table__row--highlight td {
  color: var(--color-text-primary);
  font-weight: 700;
}

.cotacao-table__row--highlight:hover {
  background: rgba(245, 184, 0, 0.1) !important;
}

/* ========================================
   CALCULATOR
   ======================================== */

.calculator {
  position: relative;
  background: linear-gradient(165deg, #ffffff 0%, #f8faf8 100%);
  border-radius: 20px;
  padding: var(--spacing-2xl);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.06),
    0 1px 2px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(27, 158, 27, 0.08);
  max-width: 600px;
  margin: 0 auto;
  overflow: hidden;
  transition: all .4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.calculator::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

.calculator:hover {
  box-shadow:
    0 12px 40px rgba(27, 158, 27, 0.12),
    0 4px 12px rgba(0, 0, 0, 0.06);
  border-color: rgba(27, 158, 27, 0.2);
}

.calculator__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.calculator__label {
  display: block;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-sm);
  text-transform: uppercase;
  letter-spacing: .5px;
}

.calculator__input,
.calculator__select {
  width: 100%;
  padding: var(--spacing-md);
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  background: #fff;
  color: var(--color-text-primary);
  transition: all .2s ease;
  font-family: inherit;
}

.calculator__input:focus,
.calculator__select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(27, 158, 27, 0.1);
}

.calculator__result {
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  text-align: center;
  box-shadow: 0 8px 24px rgba(27, 158, 27, 0.3);
}

.calculator__result-label {
  display: block;
  font-size: .75rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--spacing-xs);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.calculator__result-value {
  display: block;
  font-size: 3rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.02em;
}

/* ========================================
   TEXT BLOCKS
   ======================================== */

.cotacao-text {
  max-width: 800px;
  margin: 0 auto;
}

.cotacao-text p {
  color: var(--color-text-secondary);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: var(--spacing-md);
}

.cotacao-text p:last-child {
  margin-bottom: 0;
}

/* ========================================
   MODALITY CARDS
   ======================================== */

.cotacao-modalities {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
}

.cotacao-modality {
  background: linear-gradient(145deg, #ffffff 0%, #fafafa 100%);
  border-radius: 16px;
  padding: var(--spacing-xl);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

.cotacao-modality:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(27, 158, 27, 0.12);
  border-color: rgba(27, 158, 27, 0.2);
}

.cotacao-modality__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--spacing-md);
}

.cotacao-modality__name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0;
}

.cotacao-modality__badge {
  display: inline-flex;
  align-items: center;
  padding: var(--spacing-xs) var(--spacing-md);
  background: var(--gradient-primary);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
}

.cotacao-modality__badge--gold {
  background: linear-gradient(135deg, #F5B800 0%, #E5A100 100%);
}

.cotacao-modality__text {
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: var(--spacing-md);
}

.cotacao-modality__example {
  background: rgba(27, 158, 27, 0.04);
  border-left: 3px solid var(--color-primary);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

/* ========================================
   FAQ ACCORDION
   ======================================== */

.faq__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-xl);
}

@media (min-width: 1024px) {
  .faq__layout {
    grid-template-columns: 320px 1fr;
  }
}

.faq__header {
  text-align: center;
}

@media (min-width: 1024px) {
  .faq__header {
    text-align: left;
    position: sticky;
    top: calc(var(--header-height) + var(--spacing-lg));
    align-self: start;
  }
}

.faq__contact {
  margin-top: var(--spacing-xl);
  padding: var(--spacing-xl);
  background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(27, 158, 27, 0.1);
  transition: all 0.3s ease;
}

.faq__contact:hover {
  border-color: rgba(27, 158, 27, 0.2);
  box-shadow: 0 8px 30px rgba(27, 158, 27, 0.1), 0 0 0 1px rgba(27, 158, 27, 0.1);
}

.faq__contact p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-lg);
  line-height: 1.6;
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.faq-item {
  background: linear-gradient(145deg, #ffffff 0%, #fafafa 100%);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05), 0 0 0 1px rgba(0, 0, 0, 0.03);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: 1px solid transparent;
}

.faq-item:hover {
  box-shadow: 0 8px 24px rgba(27, 158, 27, 0.1), 0 0 0 1px rgba(27, 158, 27, 0.1);
  border-color: rgba(27, 158, 27, 0.15);
}

.faq-item[open] {
  background: linear-gradient(145deg, #ffffff 0%, rgba(27, 158, 27, 0.02) 100%);
  box-shadow: 0 8px 30px rgba(27, 158, 27, 0.12), 0 0 0 1px rgba(27, 158, 27, 0.15);
  border-color: rgba(27, 158, 27, 0.2);
}

.faq-item__question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: var(--spacing-lg) var(--spacing-xl);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--color-text-primary);
  text-align: left;
  cursor: pointer;
  list-style: none;
  transition: all 0.3s ease;
  position: relative;
}

.faq-item__question::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 0;
  background: var(--gradient-primary);
  border-radius: 0 2px 2px 0;
  transition: height 0.3s ease;
}

.faq-item[open] .faq-item__question::before {
  height: 60%;
}

.faq-item__question::-webkit-details-marker {
  display: none;
}

.faq-item__question:hover {
  background: linear-gradient(90deg, rgba(27, 158, 27, 0.03) 0%, transparent 100%);
  color: var(--color-primary);
}

.faq-item__question span {
  flex: 1;
  padding-right: var(--spacing-lg);
}

.faq-item__icon {
  width: 24px;
  height: 24px;
  padding: 4px;
  background: var(--color-primary-light);
  border-radius: var(--radius-sm);
  color: var(--color-primary);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  flex-shrink: 0;
}

.faq-item[open] .faq-item__icon {
  transform: rotate(180deg);
  background: var(--gradient-primary);
  color: #fff;
}

.faq-item__answer {
  padding: 0 var(--spacing-xl) var(--spacing-xl);
  padding-left: calc(var(--spacing-xl) + 4px);
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  border-left: 2px solid rgba(27, 158, 27, 0.1);
  margin-left: var(--spacing-xl);
}

.faq-item__answer p {
  margin: 0;
}

.faq-item[open] .faq-item__answer {
  animation: slideInFaq 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes slideInFaq {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }

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

/* ========================================
   CTA
   ======================================== */

.cotacao-cta {
  background: var(--gradient-primary);
  padding: var(--spacing-2xl);
  border-radius: 16px;
  text-align: center;
  color: #fff;
  margin: var(--spacing-2xl) 0;
}

.cotacao-cta__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  margin-bottom: var(--spacing-md);
}

.cotacao-cta__text {
  font-size: 1.125rem;
  opacity: 0.9;
  margin-bottom: var(--spacing-xl);
}

.cotacao-cta .btn {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md) var(--spacing-xl);
  background: #fff;
  color: var(--color-primary-dark, #0d5c0d);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s;
}

.cotacao-cta .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.cotacao-cta .btn .icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
  .cotacao-hero {
    padding: var(--spacing-md) 0;
  }

  .cotacao-cta {
    padding: var(--spacing-xl);
  }

  .cotacao-modalities {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575px) {
  .cotacao-modalities {
    grid-template-columns: 1fr;
  }

  .cotacao-table th,
  .cotacao-table td {
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: .875rem;
  }

  .calculator {
    padding: var(--spacing-xl) var(--spacing-lg);
  }

  .calculator__form {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  .calculator__result-value {
    font-size: 2rem;
  }
}

/* ========================================
   REDUCED MOTION
   ======================================== */

@media (prefers-reduced-motion: reduce) {

  .cotacao-modality,
  .calculator,
  .cotacao-cta .btn {
    transition: none;
  }

  .cotacao-modality:hover {
    transform: none;
  }
}