/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
}
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  background: #f5f8ff;
  color: #dedfe1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
a {
  color: #3b82f6;
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover {
  color: #0329a7;
  text-decoration: underline;
}
/* Header */
header {
  background: #e5930f;
  color: rgb(236, 239, 237);
  padding: 20px 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 8px rgb(37 99 235 / 0.3);
}
header h1 {
  margin: 0;
  font-weight: 800;
  font-size: 1.5rem;
}
nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 10px;
}
nav a {
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 600;
  background: rgba(255 255 255 / 0.2);
  transition: background-color 0.3s ease;
  color: white;
}
nav a:hover, nav a.active {
  background: white;
  color: #0b39c4;
  font-weight: 700;
}
.dropdown-container {
  margin-top: 10px;
  min-width: 220px;
}
select {
  width: 100%;
  max-width: 250px;
  padding: 10px 14px;
  border-radius: 8px;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  color: #f28407;
  background: white;
  box-shadow: 0 2px 5px rgb(0 0 0 / 0.15);
  cursor: pointer;
  appearance: none;
  outline-offset: 2px;
  transition: box-shadow 0.25s ease;
}
select:focus {
  box-shadow: 0 0 10px #2563ebaa;
  outline: none;
}
/* Main Container */
main {
  flex: 1;
  max-width: 1100px;
  width: 100%;
  margin: 50px auto 60px;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
article {
text-align: center;
margin-bottom: 20px;
max-width: 900px;
width: 100%;
margin-left: auto;
margin-right: auto;
}
article h2 {
  font-weight: 700;
  color: #030407;
  margin-bottom: 12px;
  font-size: 1.8rem;
}
article p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #475569;
}
/* Article content specific styling */
.info-article {
background: white;
padding: 30px;
border-radius: 18px;
box-shadow: 0 12px 28px rgb(37 99 235 / 0.12);
color: #334155;
line-height: 1.7;
font-size: 1rem;
max-width: 900px;
width: 100%;
margin: 0 auto;
word-wrap: break-word;
}
.info-article h3 {
  color: #0d0e0f;
  margin-top: 1.5em;
  font-weight: 700;
}
.info-article p {
  margin: 0.8em 0;
}
.info-article a {
  color: #2563eb;
  font-weight: 600;
}
.info-article ul {
  padding-left: 20px;
}
.info-article li {
  margin: 0.5em 0;
}
/* Calculator Card */
.calculator {
  background: white;
  border-radius: 18px;
  box-shadow: 0 12px 28px rgb(37 99 235 / 0.18);
  padding: 30px 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
label {
  font-weight: 600;
  font-size: 1rem;
  color: #334155;
  margin-bottom: 6px;
  user-select: none;
}
input[type=number] {
  padding: 14px 18px;
  font-size: 1.1rem;
  border: 2px solid #cbd5e1;
  border-radius: 12px;
  outline-offset: 2px;
  transition: border-color 0.3s ease;
  box-shadow: inset 0 2px 4px #f1f5f9;
  font-weight: 600;
  color: #1e293b;
}
input[type=number]:focus {
  border-color: #2563eb;
  box-shadow: 0 0 8px #3b82f6aa;
  outline: none;
}
button {
  margin-top: 12px;
  font-weight: 700;
  font-size: 1.3rem;
  background: #f4b507;
  color: rgb(11, 10, 10);
  border: none;
  border-radius: 16px;
  padding: 18px 0;
  cursor: pointer;
  box-shadow: 0 6px 15px rgba(3, 4, 7, 0.3);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  user-select: none;
}
button:hover {
  background: #f2f2f2;
  box-shadow: 0 8px 20px rgba(196, 197, 198, 0.5);
}
.result {
  margin-top: 28px;
  background: #e0f2fe;
  border-radius: 16px;
  padding: 24px;
  font-size: 1.5rem;
  color: #0369a1;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 4px 16px rgba(17, 19, 21, 0.3);
  user-select: text;
  min-height: 50px;
}
.cta-button {
  display: block;
  margin: 40px auto 0;
  background: #f4b507;
  border-radius: 30px;
  padding: 14px 40px;
  font-size: 1.05rem;
  font-weight: 700;
  text-align: center;
  color: rgb(10, 10, 10);
  width: max-content;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(231, 232, 235, 0.5);
  transition: background-color 0.3s ease;
  text-decoration: none;
  user-select: none;
}
.cta-button:hover {
  background: #edeef2;
}
.author-profile {
  text-align:center;
  margin-top: 60px;
  font-size: 0.95rem;
  color: #475569;
  user-select: none;
}
footer {
  padding: 24px 0;
  text-align: center;
  color: #94a3b8;
  font-size: 0.85rem;
  user-select: none;
  border-top: 1px solid #e2e8f0;
}
/* Contact Form Styles */
.contact-form {
  background: white;
  border-radius: 18px;
  box-shadow: 0 12px 28px rgb(37 99 235 / 0.18);
  padding: 30px 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact-form input, .contact-form textarea {
  padding: 14px 18px;
  font-size: 1.1rem;
  border: 2px solid #cbd5e1;
  border-radius: 12px;
  outline-offset: 2px;
  transition: border-color 0.3s ease;
  box-shadow: inset 0 2px 4px #f1f5f9;
  font-weight: 600;
  color: #1e293b;
  font-family: inherit;
}
.contact-form input:focus, .contact-form textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 8px #3b82f6aa;
  outline: none;
}
.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}
/* Responsive */
@media (max-width: 720px){
  main {
    max-width: 90vw;
  }
  header {
    justify-content: center;
  }
  nav {
    justify-content: center;
    margin-bottom: 10px;
  }
  header h1 {
    flex-basis: 100%;
    text-align: center;
    margin-bottom: 10px;
  }
  .dropdown-container {
    flex-basis: 100%;
    margin-top: 10px;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
  }
}
