* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@keyframes rise {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade {
  0% {
    opacity: 0;
    transform: translateX(-10px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

body {
  font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh;
  background: linear-gradient(135deg, #ebf4ff 0%, #e1effe 100%);
  display: flex;
  flex-direction: column;
}

.site-header {
  background: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #000;
  font-weight: 700;
  font-size: 1.25rem;
}

.logo svg {
  color: #000;
  background: #fef9c3;
  padding: 0.5rem;
  border-radius: 0.5rem;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 2rem;
  height: 2rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 10;
}

.hamburger span {
  width: 2rem;
  height: 0.25rem;
  background: #000;
  border-radius: 0.5rem;
  transition: all 0.3s linear;
  position: relative;
  transform-origin: 1px;
}

.hamburger.active span:first-child {
  transform: rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(20px);
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg);
}

.country-nav {
  display: flex;
  gap: 1rem;
}

.country-nav a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  text-decoration: none;
  color: #333;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.country-nav a:hover {
  background-color: #ddd;
  color: #000;
}

.country-nav a.active {
  background-color: #333;
  color: #fff;
  font-weight: 600;
}

.flag {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  object-fit: cover;
}

main {
  flex: 1;
  padding: 2rem 1.5rem;
}

.container {
  max-width: 42rem;
  margin: 0 auto;
}

.calculator {
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.calculator:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 12px -1px rgba(0, 0, 0, 0.1),
    0 4px 6px -1px rgba(0, 0, 0, 0.06);
}

.animate-rise {
  animation: rise 0.8s ease-out forwards;
}

.animate-fade {
  animation: fade 0.8s ease-out forwards;
  animation-delay: 0.4s;
  opacity: 0;
}

.animate-bounce {
  animation: bounce 2s ease-in-out infinite;
}

.header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.title-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.calculator-icon {
  color: #2563eb;
  flex-shrink: 0;
  padding: 0.5rem;
  background-color: #fef9c3;
  border-radius: 0.5rem;
}

h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.tagline {
  font-size: 0.875rem;
  color: #6b7280;
  font-style: italic;
  font-weight: 500;
  background: linear-gradient(120deg, #fef9c3 0%, #fef9c3 100%);
  background-repeat: no-repeat;
  background-size: 100% 0.5em;
  background-position: 0 88%;
  padding: 0 0.2em;
}

.input-group {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

label {
  display: block;
}

label > span {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.25rem;
}

input[type="number"],
select {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  outline: none;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  font-family: "Nunito", sans-serif;
  font-size: 0.95rem;
}

input[type="number"]:focus,
select:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  background-color: #fef9c3;
}

.radio-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 1rem;
  background-color: #fef9c3;
  border-radius: 0.5rem;
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

input[type="radio"] {
  accent-color: #2563eb;
}

.results {
  background: #f9fafb;
  border-radius: 0.5rem;
  padding: 1.5rem;
  transition: transform 0.2s ease;
}

.results:hover {
  transform: scale(1.01);
}

.result-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.result-row:last-child {
  margin-bottom: 0;
}

.result-row span:first-child {
  color: #4b5563;
}

.result-row span:last-child {
  text-align: right;
  font-weight: 600;
}

.total {
  padding: 1rem;
  margin-top: 1rem;
  border-radius: 0.5rem;
  background-color: #fef9c3;
}

.total span:first-child {
  color: #1f2937;
  font-weight: 600;
}

.total span:last-child {
  color: #2563eb;
  font-weight: 700;
}

.content-section {
  background-color: transparent;
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 25px;
}

.seo-content {
  padding: 40px 0;
  background-color: transparent;
}

.seo-content h2 {
  color: #2c3e50;
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.seo-content h3 {
  color: #3498db;
  font-size: 1.4rem;
  margin: 1.5rem 0 1rem;
}

.seo-content p {
  line-height: 1.6;
  margin-bottom: 1rem;
  color: #555;
}

.seo-content .container {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 25px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.feature-card {
  background-color: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.feature-card svg {
  color: #3498db;
  margin-bottom: 0.8rem;
}

.feature-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #2c3e50;
}

.usage-steps {
  background-color: white;
  border-radius: 8px;
  padding: 1.5rem 1.5rem 1.5rem 3rem;
  margin: 1.5rem 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.usage-steps li {
  margin-bottom: 0.8rem;
  line-height: 1.5;
}

.info-section,
.faq-section {
  margin-bottom: 40px;
}

.info-section h2,
.faq-section h2 {
  color: #333;
  margin-bottom: 20px;
  font-size: 1.8rem;
}

.info-section h3,
.faq-item h3 {
  color: #444;
  margin: 25px 0 15px;
  font-size: 1.4rem;
}

/* FAQ Styles */
.faq-section {
  background-color: #f9f9f9;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.faq-section h2 {
  color: #2c3e50;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.faq-container {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background-color: white;
  border-radius: 8px;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.faq-item summary {
  padding: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  color: #2c3e50;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: #3498db;
  transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-content {
  padding: 0 1.2rem 1.2rem;
}

.faq-content p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.faq-content ul,
.faq-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.faq-content li {
  margin-bottom: 0.5rem;
}

/* Animation Classes */
.animate-rise {
  animation: rise 0.8s ease-out forwards;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .seo-content,
  .faq-section {
    padding: 1.5rem;
  }

  .faq-item summary {
    padding: 1rem;
  }
}

.info-section p,
.faq-item p {
  line-height: 1.6;
  color: #555;
  margin-bottom: 15px;
}

.info-section ul {
  padding-left: 20px;
  margin-bottom: 20px;
}

.info-section li {
  margin-bottom: 10px;
  line-height: 1.5;
}

.faq-item {
  background-color: #e1effe;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.faq-item h3 {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0;
}

.faq-item h3:after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 300;
}

.faq-item.active h3:after {
  content: "−";
}

@media (max-width: 768px) {
  .seo-content {
    padding: 30px 0;
  }

  .info-section h2,
  .faq-section h2 {
    font-size: 1.6rem;
  }

  .info-section h3,
  .faq-item h3 {
    font-size: 1.3rem;
  }

  .faq-item {
    padding: 15px;
  }

  .hamburger {
    display: flex;
  }

  .country-nav {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: white;
    flex-direction: column;
    width: 100%;
    padding: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  }

  .country-nav.active {
    display: flex;
  }

  .country-nav a {
    padding: 0.75rem 1rem;
  }

  .calculator {
    padding: 1.5rem;
  }

  .radio-group {
    grid-template-columns: 1fr;
  }

  .header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .title-group {
    align-items: center;
  }
}
