/* Base styles and typography */
body {
  font-family: "Montserrat", "Segoe UI", sans-serif;
  margin: 0;
  padding: 0;
  background: linear-gradient(to bottom, #fff 0%, #f8f9fa 100%);
  color: #212121;
  line-height: 1.7;
  font-size: 1.1rem;
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
}

/* Link styles - POPRAWIONE DLA KOLORYSTYKI */
a {
  color: #D32F2F;
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: #FFC107;
}

a:visited {
  color: #C62828;
}

a:active {
  color: #FFD54F;
}

/* Contact links - special styling */
.contact-link {
  color: #D32F2F !important;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.contact-link:hover {
  color: #FFC107 !important;
  transform: translateX(3px);
}

.contact-link:visited {
  color: #D32F2F !important;
}

/* Header styles */
header {
  background: linear-gradient(135deg, #C62828 0%, #D32F2F 50%, #E53935 100%);
  color: white;
  padding: 60px 20px 80px;
  text-align: center;
  position: relative;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect width="100" height="100" fill="none"/><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.05)"/></svg>');
  background-size: 50px 50px;
  opacity: 0.3;
  animation: slidePattern 20s linear infinite;
}

@keyframes slidePattern {
  0% { transform: translateX(0) translateY(0); }
  100% { transform: translateX(50px) translateY(50px); }
}

.header-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
}

.header-logo {
  margin-bottom: 20px;
  position: relative;
}

/* Antonio character positioning */
.antonio-character {
  position: absolute;
  bottom: -80px;
  right: 5%;
  width: 280px;
  height: auto;
  z-index: 10;
  animation: floatAntonio 3s ease-in-out infinite;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

@keyframes floatAntonio {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
}

header h1 {
  margin: 0;
  font-size: 3.8rem;
  font-weight: 700;
  letter-spacing: -1px;
  animation: fadeInUp 0.8s ease-out;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
  color: white;
  position: relative;
  display: inline-block;
}

header h1::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 4px;
  background: linear-gradient(90deg, transparent, #FFC107, transparent);
  border-radius: 2px;
}

header p {
  margin-top: 20px;
  font-size: 1.6rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 1s ease-out;
  opacity: 0.95;
  font-weight: 500;
}

.header-cta {
  margin-top: 35px;
  animation: fadeInUp 1.2s ease-out;
}

.header-knf-info {
  margin-top: 25px;
  background-color: rgba(255, 255, 255, 0.2);
  padding: 12px 25px;
  border-radius: 30px;
  display: inline-block;
  animation: fadeInUp 1.1s ease-out;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.header-knf-info p {
  margin: 0;
  font-size: 1.1rem;
}

.header-knf-info a {
  color: #FFC107 !important;
  text-decoration: none;
  margin-left: 8px;
  transition: all 0.3s ease;
  font-weight: 700;
}

.header-knf-info a:hover {
  color: #FFD54F !important;
  transform: translateX(3px);
  display: inline-block;
}

.header-knf-info i {
  font-size: 0.9rem;
  margin-left: 5px;
}

/* Language switcher */
.language-switcher {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 10px;
  z-index: 100;
}

.language-switcher button {
  background-color: rgba(255, 255, 255, 0.15);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.language-switcher button:hover {
  background-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border-color: #FFC107;
}

.language-switcher button:focus {
  outline: 2px solid #FFC107;
  outline-offset: 2px;
}

.language-switcher button.active {
  background: linear-gradient(135deg, #FFC107, #FFD54F);
  color: #212121;
  box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
  border-color: #FFC107;
}

/* Main content */
main {
  max-width: 1200px;
  margin: auto;
  padding: 80px 20px 50px;
  position: relative;
}

/* Sections */
section {
  margin-bottom: 80px;
  background-color: white;
  padding: 50px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  position: relative;
  overflow: hidden;
}

section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, #C62828, #FFC107, #C62828);
  background-size: 200% 100%;
  animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

section:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
}

.section-icon {
  position: absolute;
  top: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #C62828, #D32F2F);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 26px;
  box-shadow: 0 6px 20px rgba(198, 40, 40, 0.4);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

h2 {
  color: #C62828;
  margin-top: 0;
  font-size: 2.5rem;
  position: relative;
  padding-bottom: 20px;
  margin-bottom: 30px;
  font-weight: 700;
}

h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100px;
  height: 5px;
  background: linear-gradient(90deg, #C62828, #FFC107);
  border-radius: 3px;
  box-shadow: 0 2px 10px rgba(198, 40, 40, 0.3);
}

h3 {
  color: #D32F2F;
  font-size: 1.6rem;
  margin-top: 0;
  font-weight: 600;
}

/* Highlight boxes */
.highlight-box {
  background: linear-gradient(135deg, #FFF8E1, #FFECB3);
  border-radius: 15px;
  padding: 25px;
  margin: 30px 0;
  display: flex;
  align-items: center;
  border-left: 5px solid #FFC107;
  box-shadow: 0 5px 20px rgba(255, 193, 7, 0.2);
  transition: all 0.3s ease;
}

.highlight-box:hover {
  transform: translateX(5px);
  box-shadow: 0 8px 30px rgba(255, 193, 7, 0.3);
}

.highlight-box i {
  font-size: 28px;
  color: #FFC107;
  margin-right: 20px;
  min-width: 40px;
}

.highlight-box p {
  margin: 0;
  font-weight: 600;
  font-size: 1.1rem;
}

/* Legal info box */
.legal-info-box {
  background: linear-gradient(135deg, #FFEBEE, #FFCDD2);
  border-radius: 15px;
  padding: 25px 30px;
  margin: 30px 0;
  border-left: 5px solid #C62828;
  box-shadow: 0 5px 20px rgba(198, 40, 40, 0.2);
  transition: all 0.3s ease;
}

.legal-info-box:hover {
  transform: translateX(5px);
  box-shadow: 0 8px 30px rgba(198, 40, 40, 0.3);
}

.legal-info-box h3 {
  color: #C62828;
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.legal-info-box h3 i {
  color: #D32F2F;
  font-size: 1.4rem;
}

.legal-info-box p {
  margin-bottom: 0;
  font-weight: 500;
}

/* Features grid - improved */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.feature-item {
  background: linear-gradient(135deg, #ffffff, #f8f9fa);
  padding: 35px;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-align: center;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.feature-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #C62828, #FFC107);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.feature-item:hover::before {
  transform: scaleX(1);
}

.feature-item:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 15px 40px rgba(198, 40, 40, 0.15);
  border-color: #FFC107;
}

.feature-item i {
  font-size: 3rem;
  color: #D32F2F;
  margin-bottom: 20px;
  display: inline-block;
  transition: all 0.4s ease;
}

.feature-item:hover i {
  transform: rotateY(360deg) scale(1.2);
  color: #FFC107;
}

.feature-item h3 {
  margin-bottom: 15px;
  font-size: 1.5rem;
  color: #C62828;
}

.feature-item p {
  color: #444;
  margin: 0;
  line-height: 1.6;
}

/* Why Us section */
.highlight-section {
  background: linear-gradient(135deg, #FFF8E1, #FFECB3);
  border: none;
  box-shadow: 0 10px 40px rgba(255, 193, 7, 0.2);
}

.highlight-section::before {
  background: linear-gradient(90deg, #FFC107, #C62828, #FFC107);
}

/* Business section - NOWA SEKCJA DLA PRZEDSIĘBIORCÓW */
.business-section {
  background: linear-gradient(135deg, #E3F2FD, #BBDEFB);
  border: none;
  position: relative;
  overflow: hidden;
}

.business-section::before {
  background: linear-gradient(90deg, #2196F3, #1976D2, #2196F3);
}

.business-section .section-icon {
  background: linear-gradient(135deg, #1976D2, #2196F3);
  box-shadow: 0 6px 20px rgba(25, 118, 210, 0.4);
}

.business-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.business-item {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  border-left: 4px solid #2196F3;
  text-align: center;
}

.business-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(33, 150, 243, 0.2);
  border-left-color: #1976D2;
}

.business-item i {
  font-size: 2.5rem;
  color: #1976D2;
  margin-bottom: 20px;
  display: block;
  transition: all 0.4s ease;
}

.business-item:hover i {
  transform: rotateY(360deg) scale(1.2);
  color: #2196F3;
}

.business-item h3 {
  color: #1976D2;
  margin-bottom: 15px;
}

/* Special farmers section */
.farmers-section {
  background: linear-gradient(135deg, #E8F5E9, #C8E6C9);
  border: none;
  position: relative;
  overflow: hidden;
}

.farmers-section::before {
  background: linear-gradient(90deg, #4CAF50, #8BC34A, #4CAF50);
}

.farmers-section .section-icon {
  background: linear-gradient(135deg, #4CAF50, #66BB6A);
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.farmers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.farmer-item {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  border-left: 4px solid #4CAF50;
  text-align: center;
}

.farmer-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(76, 175, 80, 0.2);
  border-left-color: #8BC34A;
}

.farmer-item i {
  font-size: 2.5rem;
  color: #4CAF50;
  margin-bottom: 20px;
  display: block;
  transition: all 0.4s ease;
}

.farmer-item:hover i {
  transform: rotateY(360deg) scale(1.2);
  color: #8BC34A;
}

.farmer-item h3 {
  color: #4CAF50;
  margin-bottom: 15px;
}

/* ULEPSZONA SEKCJA ZASTAWU */
.collateral-section {
  padding: 60px 50px;
}

.collateral-tabs {
  display: grid;
  gap: 50px;
  margin-top: 40px;
}

.collateral-category {
  background: white;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.collateral-category.accepted {
  border: 3px solid #4CAF50;
}

.collateral-category.rejected {
  border: 3px solid #F44336;
}

.category-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 35px;
  padding-bottom: 20px;
  border-bottom: 3px solid #e5e7eb;
}

.category-header i {
  font-size: 2.5rem;
}

.collateral-category.accepted .category-header i {
  color: #4CAF50;
}

.collateral-category.rejected .category-header i {
  color: #F44336;
}

.category-header h3 {
  margin: 0;
  font-size: 2rem;
  color: #212121;
}

.collateral-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.collateral-item-card {
  background: linear-gradient(135deg, #ffffff, #f8f9fa);
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.4s ease;
  border-left: 4px solid transparent;
}

.collateral-item-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.card-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2rem;
  color: white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.4s ease;
}

.collateral-item-card:hover .card-icon {
  transform: rotateY(360deg) scale(1.15);
}

.card-icon.vehicles {
  background: linear-gradient(135deg, #FF5722, #FF7043);
  border-left-color: #FF5722;
}

.collateral-item-card:has(.card-icon.vehicles) {
  border-left-color: #FF5722;
}

.card-icon.agriculture {
  background: linear-gradient(135deg, #4CAF50, #66BB6A);
}

.collateral-item-card:has(.card-icon.agriculture) {
  border-left-color: #4CAF50;
}

.card-icon.construction {
  background: linear-gradient(135deg, #FF9800, #FFB74D);
}

.collateral-item-card:has(.card-icon.construction) {
  border-left-color: #FF9800;
}

.card-icon.jewelry {
  background: linear-gradient(135deg, #9C27B0, #BA68C8);
}

.collateral-item-card:has(.card-icon.jewelry) {
  border-left-color: #9C27B0;
}

.card-icon.tech {
  background: linear-gradient(135deg, #2196F3, #64B5F6);
}

.collateral-item-card:has(.card-icon.tech) {
  border-left-color: #2196F3;
}

.card-icon.property {
  background: linear-gradient(135deg, #795548, #A1887F);
}

.collateral-item-card:has(.card-icon.property) {
  border-left-color: #795548;
}

.collateral-item-card h4 {
  color: #212121;
  font-size: 1.4rem;
  margin: 0 0 15px 0;
  text-align: center;
}

.collateral-item-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.collateral-item-card ul li {
  padding: 8px 0;
  padding-left: 25px;
  position: relative;
  font-size: 1rem;
  color: #555;
}

.collateral-item-card ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #4CAF50;
  font-weight: bold;
  font-size: 1.2rem;
}

.rejected-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.rejected-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 20px;
  background: linear-gradient(135deg, #ffffff, #f8f9fa);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.rejected-item:hover {
  transform: translateX(5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.rejected-item i {
  color: #F44336;
  font-size: 1.5rem;
  margin-top: 3px;
  flex-shrink: 0;
}

.rejected-item p {
  margin: 0;
  color: #555;
  font-weight: 500;
}

/* Process steps - improved */
.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #C62828, #D32F2F);
  color: white;
  border-radius: 50%;
  font-size: 1.6rem;
  font-weight: 700;
  margin-right: 25px;
  flex-shrink: 0;
  box-shadow: 0 6px 20px rgba(198, 40, 40, 0.4);
  position: relative;
}

.step-number::after {
  content: "";
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border: 2px solid #FFC107;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#how-it-works-list {
  list-style: none;
  padding: 0;
  counter-reset: step-counter;
}

#how-it-works-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
  padding: 30px;
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  border-radius: 15px;
  transition: all 0.4s ease;
  border-left: 4px solid transparent;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
  position: relative;
}

#how-it-works-list li:hover {
  background: linear-gradient(135deg, #FFF8E1, #FFECB3);
  transform: translateX(10px);
  border-left-color: #FFC107;
  box-shadow: 0 10px 30px rgba(255, 193, 7, 0.2);
}

#how-it-works-list li:hover .step-number::after {
  opacity: 1;
}

.step-content {
  flex-grow: 1;
}

.step-title {
  margin: 0 0 10px 0;
  font-size: 1.5rem;
  color: #C62828;
}

/* Lists */
ul,
ol {
  padding-left: 25px;
}

ul li,
ol li {
  margin-bottom: 15px;
  position: relative;
  line-height: 1.8;
}

ul li::before {
  content: "●";
  color: #FFC107;
  font-weight: bold;
  font-size: 1.2rem;
  display: inline-block;
  width: 1.2em;
  margin-left: -1.2em;
}

/* Buttons - improved */
.btn-primary,
.btn-secondary {
  padding: 18px 40px;
  font-weight: 700;
  font-size: 1.2rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
}

.btn-primary::before,
.btn-secondary::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before,
.btn-secondary:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: linear-gradient(135deg, #FFC107, #FFD54F);
  color: #212121 !important;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #FFD54F, #FFEB3B);
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 30px rgba(255, 193, 7, 0.5);
  color: #212121 !important;
}

.btn-secondary {
  background-color: white;
  color: #D32F2F !important;
  border: 3px solid #D32F2F;
}

.btn-secondary:hover {
  background-color: #D32F2F;
  color: white !important;
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 30px rgba(211, 47, 47, 0.4);
}

/* Calculator section - improved */
#loan-calculator {
  background: linear-gradient(135deg, #C62828, #D32F2F);
  color: white;
  box-shadow: 0 10px 40px rgba(198, 40, 40, 0.4);
  border: none;
}

#loan-calculator::before {
  background: linear-gradient(90deg, #FFC107, #FFD54F, #FFC107);
}

#loan-calculator h2,
#loan-calculator h3,
#loan-calculator label {
  color: white;
}

#loan-calculator h2::after {
  background: linear-gradient(90deg, #FFC107, #FFD54F);
}

.calculator-inputs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 35px;
  margin: 40px 0;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.input-group label {
  font-weight: 700;
  font-size: 1.2rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.input-row {
  display: flex;
  gap: 20px;
  align-items: center;
}

input[type="range"] {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 10px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.3);
  outline: none;
  backdrop-filter: blur(10px);
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFC107, #FFD54F);
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
  border: 3px solid white;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.3);
  box-shadow: 0 5px 20px rgba(255, 193, 7, 0.6);
}

input[type="range"]::-moz-range-thumb {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFC107, #FFD54F);
  cursor: pointer;
  border: 3px solid white;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
}

input[type="range"]::-moz-range-thumb:hover {
  transform: scale(1.3);
  box-shadow: 0 5px 20px rgba(255, 193, 7, 0.6);
}

input[type="number"] {
  width: 140px;
  padding: 12px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  font-size: 1.1rem;
  text-align: center;
  font-weight: 700;
  background-color: rgba(255, 255, 255, 0.95);
  color: #212121;
  transition: all 0.3s ease;
}

input[type="number"]:focus {
  outline: none;
  border-color: #FFC107;
  box-shadow: 0 0 0 4px rgba(255, 193, 7, 0.4);
  transform: scale(1.05);
}

/* Result container - improved */
.result-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.result-box {
  background-color: rgba(255, 255, 255, 0.15);
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.4s ease;
  backdrop-filter: blur(10px);
}

.result-box:hover {
  background-color: rgba(255, 255, 255, 0.25);
  border-color: #FFC107;
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.result-box label {
  display: block;
  margin-bottom: 15px;
  font-size: 1.2rem;
  opacity: 0.95;
  font-weight: 600;
}

.result-box .value {
  font-size: 2.5rem;
  font-weight: 700;
  color: #FFC107;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
  animation: countUp 0.5s ease-out;
}

@keyframes countUp {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

#loan-result {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.6s ease;
}

#loan-result.active {
  max-height: 1000px;
  opacity: 1;
  margin-top: 40px;
}

.chart-container {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 35px;
  margin-top: 40px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.chart-container canvas {
  max-height: 350px;
}

/* Contact section - improved */
.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 35px;
  margin-top: 40px;
}

.contact-card {
  background: linear-gradient(135deg, #ffffff, #f8f9fa);
  padding: 35px;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  text-align: center;
  border-top: 4px solid #FFC107;
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 193, 7, 0.1), transparent);
  transition: left 0.5s ease;
}

.contact-card:hover::before {
  left: 100%;
}

.contact-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.contact-card i {
  font-size: 3rem;
  color: #D32F2F;
  margin-bottom: 20px;
  display: inline-block;
  transition: all 0.4s ease;
}

.contact-card:hover i {
  transform: rotateY(360deg) scale(1.2);
  color: #FFC107;
}

.contact-card h3 {
  margin-bottom: 15px;
  font-size: 1.5rem;
  color: #C62828;
}

.contact-card p {
  margin: 12px 0;
  color: #555;
}

/* Accordion - improved */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 40px;
}

.accordion-item {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  background-color: #fff;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.accordion-item:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  border-color: #FFC107;
}

.accordion-header {
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  color: #C62828;
  padding: 25px;
  border: none;
  font-weight: 700;
  font-size: 1.15rem;
  cursor: pointer;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  transition: all 0.3s ease;
  position: relative;
}

.accordion-header:hover {
  background: linear-gradient(135deg, #FFF8E1, #FFECB3);
}

.accordion-header:focus {
  outline: 3px solid #FFC107;
  outline-offset: 2px;
}

.accordion-icon {
  position: relative;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.accordion-icon::before,
.accordion-icon::after {
  content: "";
  position: absolute;
  background-color: #D32F2F;
  transition: all 0.3s ease;
}

.accordion-icon::before {
  width: 20px;
  height: 3px;
  top: 8px;
  left: 0;
}

.accordion-icon::after {
  width: 3px;
  height: 20px;
  left: 8px;
  top: 0;
}

.accordion-header[aria-expanded="true"] {
  background: linear-gradient(135deg, #FFF8E1, #FFECB3);
}

.accordion-header[aria-expanded="true"] .accordion-icon::after {
  transform: rotate(90deg);
  opacity: 0;
}

.accordion-content {
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  background-color: white;
  border-top: 1px solid #e5e7eb;
}

.accordion-content[aria-hidden="false"] {
  padding: 25px;
  max-height: 500px;
}

.accordion-content p {
  margin: 0;
  color: #4b5563;
  line-height: 1.8;
}

/* Map */
#map {
  width: 100%;
  height: 500px;
  border-radius: 20px;
  margin-top: 50px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  border: 5px solid white;
}

/* Footer - improved */
footer {
  text-align: center;
  padding: 70px 20px 50px;
  background: linear-gradient(to bottom, #C62828, #D32F2F);
  color: white;
  margin-top: 100px;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.05)"/></svg>');
  background-size: 50px 50px;
  opacity: 0.3;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 50px;
  text-align: left;
  position: relative;
  z-index: 2;
}

.footer-section h3 {
  color: white;
  margin-top: 0;
  position: relative;
  padding-bottom: 15px;
  font-size: 1.4rem;
}

.footer-section h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 3px;
  background-color: #FFC107;
  border-radius: 2px;
}

.footer-section p {
  color: #e5e7eb;
  line-height: 1.8;
}

.knf-info {
  margin-top: 20px;
  padding: 10px 15px;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  display: inline-block;
  backdrop-filter: blur(10px);
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 25px;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background-color: rgba(255, 255, 255, 0.15);
  color: white !important;
  border-radius: 50%;
  transition: all 0.4s ease;
  text-decoration: none;
  backdrop-filter: blur(10px);
}

.social-icons a:hover {
  background-color: #FFC107;
  color: #212121 !important;
  transform: translateY(-5px) rotate(360deg);
  box-shadow: 0 5px 20px rgba(255, 193, 7, 0.5);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 15px;
}

.footer-links li::before {
  display: none;
}

.footer-links li a {
  color: #e5e7eb !important;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 5px 0;
  display: inline-block;
  font-weight: 500;
}

.footer-links li a:hover {
  color: #FFC107 !important;
  transform: translateX(5px);
}

.footer-bottom {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 1rem;
  color: #e5e7eb;
  position: relative;
  z-index: 2;
}

.footer-bottom p {
  margin: 10px 0;
}

.footer-bottom a {
  color: #FFC107 !important;
  text-decoration: none;
  font-weight: 600;
}

.footer-bottom a:hover {
  text-decoration: underline;
  color: #FFD54F !important;
}

/* Back to top button - improved */
#back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(135deg, #C62828, #D32F2F);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
  transition: all 0.4s ease;
  opacity: 0;
  visibility: hidden;
  z-index: 1000;
  border: 3px solid #FFC107;
}

#back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

#back-to-top:hover {
  transform: translateY(-8px) scale(1.1);
  box-shadow: 0 10px 35px rgba(198, 40, 40, 0.5);
  background: linear-gradient(135deg, #D32F2F, #E53935);
}

#back-to-top i {
  font-size: 1.8rem;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInUp 0.8s ease-out forwards;
}

.animated {
  transition: all 0.4s ease;
}

.animated:hover {
  transform: translateY(-5px);
}

/* Columns layout */
.columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 35px;
  margin-top: 30px;
}

.collateral-article h3 {
  color: #C62828;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.collateral-article ul {
  margin: 0;
  padding-left: 25px;
}

/* Responsive */
@media (max-width: 980px) {
  header {
    padding: 50px 20px 70px;
  }

  .antonio-character {
    width: 200px;
    bottom: -60px;
    right: 2%;
  }

  header h1 {
    font-size: 3rem;
  }

  header p {
    font-size: 1.4rem;
  }

  section {
    padding: 35px;
  }

  h2 {
    font-size: 2.2rem;
  }

  .section-icon {
    position: relative;
    top: 0;
    right: 0;
    margin: 0 auto 25px;
  }

  .result-container {
    grid-template-columns: 1fr;
  }

  .collateral-items {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 1rem;
  }

  header {
    padding: 40px 20px 60px;
  }

  .antonio-character {
    width: 150px;
    bottom: -40px;
  }

  header h1 {
    font-size: 2.6rem;
  }

  header p {
    font-size: 1.3rem;
  }

  .language-switcher {
    position: relative;
    top: auto;
    right: auto;
    justify-content: center;
    margin: 0 0 25px 0;
  }

  section {
    padding: 30px;
    margin-bottom: 60px;
  }

  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.4rem;
  }

  .btn-primary,
  .btn-secondary {
    padding: 16px 30px;
    font-size: 1.1rem;
    width: 100%;
  }

  .feature-item {
    padding: 30px;
  }

  .feature-item i {
    font-size: 2.5rem;
  }

  .step-number {
    width: 50px;
    height: 50px;
    font-size: 1.4rem;
  }

  #how-it-works-list li {
    padding: 25px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-info {
    grid-template-columns: 1fr;
  }

  #back-to-top {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }

  #map {
    height: 400px;
  }

  .collateral-items {
    grid-template-columns: 1fr;
  }

  .rejected-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  header h1 {
    font-size: 2.2rem;
  }

  header p {
    font-size: 1.1rem;
  }

  .antonio-character {
    width: 120px;
    bottom: -30px;
  }

  .language-switcher button {
    padding: 8px 14px;
    font-size: 0.95rem;
  }

  section {
    padding: 25px;
    border-radius: 15px;
  }

  h2 {
    font-size: 1.8rem;
  }

  .accordion-header {
    padding: 20px;
    font-size: 1.05rem;
  }

  .contact-card {
    padding: 30px;
  }

  #back-to-top {
    width: 45px;
    height: 45px;
  }

  .result-box .value {
    font-size: 2rem;
  }

  .collateral-section {
    padding: 40px 25px;
  }

  .collateral-category {
    padding: 25px;
  }
}
