/**
 * Couple vs Single Calculator Styles - HipotekaAI
 * /kalkulator-zdolnosc-para
 */

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

.couple-hero {
  background: linear-gradient(135deg, #1E3A5F 0%, #1E88E5 50%, #8B5CF6 100%);
  color: white;
  padding: 56px 0 48px;
  text-align: center;
}

.couple-hero h1 {
  font-size: 2rem;
  font-weight: 800;
  color: white;
  margin-bottom: 16px;
  line-height: 1.25;
}

@media (min-width: 768px) {
  .couple-hero h1 { font-size: 2.5rem; }
}

.couple-hero .lead {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 600px;
  margin: 0 auto 24px;
  line-height: 1.65;
}

.couple-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.couple-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: white;
  backdrop-filter: blur(4px);
}

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

.couple-calculator-section {
  padding: 48px 0 32px;
  background: linear-gradient(135deg, #f0f4ff 0%, #f8fafc 100%);
}

.couple-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.couple-card-header {
  background: linear-gradient(135deg, #f0f4ff 0%, #ede9fe 100%);
  padding: 24px 28px 20px;
  border-bottom: 1px solid #e2e8f0;
}

.couple-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #1E3A5F;
  margin-bottom: 4px;
}

.couple-card-subtitle {
  font-size: 0.88rem;
  color: #64748b;
}

.couple-card-body {
  padding: 28px;
}

/* ============================================================
   INCOME COLUMNS
   ============================================================ */

.couple-income-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

@media (max-width: 575px) {
  .couple-income-grid { grid-template-columns: 1fr; gap: 16px; }
}

.couple-income-col {
  background: linear-gradient(135deg, #f8fafc 0%, #f0f4ff 100%);
  border-radius: 14px;
  padding: 20px;
  border: 1px solid #e2e8f0;
}

.couple-income-col-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #1E88E5;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.couple-income-col-label.person2 { color: #8B5CF6; }

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

.couple-form-group {
  margin-bottom: 20px;
}

.couple-form-group:last-child { margin-bottom: 0; }

.couple-form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
}

.couple-slider-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.couple-range {
  flex: 1;
  -webkit-appearance: none;
  height: 4px;
  border-radius: 4px;
  background: #e2e8f0;
  outline: none;
  cursor: pointer;
}

.couple-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary-blue, #1E88E5);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(30, 136, 229, 0.3);
}

.couple-range.person2::-webkit-slider-thumb {
  background: var(--ai-purple, #8B5CF6);
  box-shadow: 0 2px 6px rgba(139, 92, 246, 0.3);
}

.couple-range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary-blue, #1E88E5);
  cursor: pointer;
  border: none;
}

.couple-range.person2::-moz-range-thumb {
  background: var(--ai-purple, #8B5CF6);
}

.couple-value-display {
  min-width: 88px;
  text-align: right;
  font-size: 0.92rem;
  font-weight: 700;
  color: #1E3A5F;
  white-space: nowrap;
}

.couple-form-hint {
  font-size: 0.78rem;
  color: #94a3b8;
  margin-top: 4px;
}

.couple-divider {
  border: none;
  border-top: 1px solid #e2e8f0;
  margin: 24px 0;
}

.couple-section-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #475569;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.btn-couple-primary {
  width: 100%;
  padding: 16px 24px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #1E88E5 0%, #8B5CF6 100%);
  color: white;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
  margin-top: 8px;
}

.btn-couple-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.3);
}

.btn-couple-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ============================================================
   RESULTS
   ============================================================ */

.couple-results-section {
  padding: 0 0 48px;
  background: linear-gradient(135deg, #f0f4ff 0%, #f8fafc 100%);
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
}

@media (max-width: 767px) {
  .comparison-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  /* Reorder: highlight card (Para) first on mobile */
  .comparison-card.highlight { order: -1; }
}

.comparison-card {
  background: white;
  border-radius: 16px;
  padding: 24px 20px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border: 2px solid #e2e8f0;
  text-align: center;
  position: relative;
  transition: box-shadow 0.2s;
}

.comparison-card.highlight {
  border-color: transparent;
  background: linear-gradient(white, white) padding-box,
              linear-gradient(135deg, #1E88E5, #8B5CF6) border-box;
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.18);
}

.comparison-card-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #1E88E5, #8B5CF6);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 14px;
  border-radius: 20px;
  white-space: nowrap;
}

.comparison-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  background: linear-gradient(135deg, rgba(30,136,229,0.12), rgba(139,92,246,0.12));
  color: #1E88E5;
}

.comparison-card.highlight .comparison-card-icon {
  background: linear-gradient(135deg, rgba(30,136,229,0.18), rgba(139,92,246,0.18));
  color: #7C3AED;
}

.comparison-card-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.capacity-amount {
  font-size: 1.7rem;
  font-weight: 900;
  color: #1E3A5F;
  line-height: 1.1;
  margin-bottom: 6px;
}

.comparison-card.highlight .capacity-amount {
  background: linear-gradient(135deg, #1E88E5, #8B5CF6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.comparison-card-bank {
  font-size: 0.78rem;
  color: #94a3b8;
  margin-bottom: 0;
}

.comparison-no-result {
  font-size: 0.85rem;
  color: #ef4444;
  font-weight: 600;
}

/* Difference badge below cards */
.couple-diff-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 24px;
}

.couple-diff-badge {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border: 1px solid #a7f3d0;
  border-radius: 20px;
  padding: 8px 18px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #065f46;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* CTA inside results */
.couple-results-cta {
  text-align: center;
  padding: 24px;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border-radius: 16px;
  border: 1px solid #fcd34d;
}

.couple-results-cta p {
  font-size: 0.95rem;
  color: #78350f;
  margin-bottom: 16px;
}

.btn-couple-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: linear-gradient(135deg, #D97706, #1E88E5);
  color: white;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-couple-cta:hover {
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(30,136,229,0.3);
}

/* Disclaimer */
.couple-disclaimer {
  font-size: 0.78rem;
  color: #9ca3af;
  line-height: 1.5;
  padding: 16px 20px;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  margin-top: 20px;
}

/* ============================================================
   FAQ SECTION
   ============================================================ */

.couple-faq-section {
  padding: 64px 0;
  background: white;
}

.couple-faq-section h2 {
  font-size: 1.7rem;
  font-weight: 800;
  color: #1E3A5F;
  margin-bottom: 8px;
  text-align: center;
}

.couple-faq-section .section-lead {
  text-align: center;
  color: #64748b;
  margin-bottom: 40px;
  font-size: 1rem;
}

.faq-item {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.faq-item:hover { box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08); }

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 20px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1E3A5F;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  line-height: 1.4;
}

.faq-question:hover { background: #f8fafc; }

.faq-chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: #94a3b8;
  transition: transform 0.3s;
}

.faq-item.open .faq-chevron { transform: rotate(180deg); }

.faq-answer {
  display: none;
  padding: 0 20px 18px;
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.65;
}

.faq-item.open .faq-answer { display: block; }

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

.couple-final-cta {
  padding: 64px 0;
  background: linear-gradient(135deg, #1E3A5F 0%, #1E88E5 60%, #8B5CF6 100%);
  text-align: center;
  color: white;
}

.couple-final-cta h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: white;
  margin-bottom: 12px;
}

.couple-final-cta p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  margin-bottom: 28px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.couple-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.btn-couple-cta-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: white;
  color: #1E3A5F;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-couple-cta-white:hover {
  color: #1E3A5F;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.btn-couple-cta-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-couple-cta-outline:hover {
  color: white;
  border-color: white;
  background: rgba(255, 255, 255, 0.1);
}

/* ============================================================
   LOADING STATE
   ============================================================ */

.couple-loading {
  text-align: center;
  padding: 32px;
  color: #64748b;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.couple-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #e2e8f0;
  border-top-color: #1E88E5;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}

/* ============================================================
   ERROR STATE
   ============================================================ */

.couple-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  color: #dc2626;
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 20px;
}
