/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

/* Header Styles */
header {
    background-color: #2a9df4;
    color: white;
    padding: 20px;
    text-align: center;
}

/* Main Content Styles */
main {
    padding: 20px;
}

/* Form Styles */
form {
    max-width: 600px;
    margin: 0 auto;
}

.form-section {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
}

input[type="number"],
select {
    width: 100%;
    padding: 8px;
    margin-bottom: 5px;
    box-sizing: border-box;
}

.radio-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.radio-group input[type="radio"] {
    margin-right: 5px;
}

button {
    background-color: #2a9df4;
    color: white;
    padding: 10px 15px;
    border: none;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
}

button:hover {
    background-color: #238ad3;
}

/* Export PDF Button */
.export-pdf-btn {
    background-color: #d73527;
    margin-top: 15px;
}

.export-pdf-btn:hover {
    background-color: #b8291f;
}

.export-pdf-btn i {
    margin-right: 8px;
}

/* Error Messages */
#errorMessages {
    max-width: 600px;
    margin: 0 auto 20px;
}

#errorMessages p {
    margin: 5px 0;
}

/* Results Section Styles */
#results {
    max-width: 600px;
    margin: 20px auto;
    background-color: #f1f1f1;
    padding: 20px;
}

#results h2 {
    margin-top: 0;
}

#payBreakdown, #detailedBreakdown, #taxBreakdown {
    margin-bottom: 15px;
}

#payBreakdown p, #detailedBreakdown p, #taxBreakdown p {
    margin: 5px 0;
}

/* FAQs Section Styles */
#faqs {
    max-width: 600px;
    margin: 40px auto;
}

#faqs h2 {
    margin-top: 0;
}

details {
    margin-bottom: 10px;
}

details summary {
    font-weight: bold;
    cursor: pointer;
}

/* Footer Styles */
footer {
    background-color: #333;
    color: white;
    padding: 10px;
    text-align: center;
}

footer nav a {
    color: #bbb;
    text-decoration: none;
}

footer nav a:hover {
    text-decoration: underline;
}

/* Tooltip Styles */
.tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;
    color: #2a9df4;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 220px;
    background-color: #555;
    color: #fff;
    text-align: left;
    padding: 5px;
    border-radius: 6px;
    position: absolute;
    z-index: 1;
    bottom: 125%; /* Position above */
    left: 50%;
    margin-left: -110px;
    opacity: 0;
    transition: opacity 0.3s;
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.4;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Responsive Styles */
@media (max-width: 600px) {
    .radio-group {
        flex-direction: column;
    }

    button {
        font-size: 14px;
    }
}
/* Modern, centered layout styling */

html, body {
  margin: 0;
  padding: 0;
  font-family: "Helvetica Neue", Arial, sans-serif;
  background-color: #f8f8f8;
  color: #333;
  line-height: 1.6;
}

.container {
  max-width: 800px;       /* Limits width for better readability */
  margin: 0 auto;         /* Centers the container on the page */
  background: #fff;       /* White background for clear contrast */
  padding: 2rem;          /* Generous padding for spacing */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);  /* Subtle shadow for depth */
  margin-bottom:10px !important;
}

h1, h2, h3 {
  margin-top: 1.6rem;
  margin-bottom: 0.8rem;
  font-weight: 600;
  line-height: 1.3;
}

p {
  margin-bottom: 1rem;
  font-size: 1rem;
}

ul, ol {
  margin: 0 0 1rem 1.5rem;
  padding: 0;
}

strong, b {
  color: #000;
}

a {
  color: #3498db;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Optional: style lists for better readability */
ul li, ol li {
  margin-bottom: 0.5rem;
}

/* Headings smaller devices */
@media (max-width: 600px) {
  h1 {
    font-size: 1.5rem;
  }
  h2 {
    font-size: 1.2rem;
  }
  h3 {
    font-size: 1.1rem;
  }
}

nav.country-selector {
    background-color: #f4f4f4;
    padding: 10px;
    text-align: center;
}
nav.country-selector a {
    margin: 0 10px;
    color: #2a9df4;
}
nav.country-selector a.active {
    font-weight: bold;
    text-decoration: underline;
}
.irregular-only { display:none; }


.input-error {
  border: 2px solid red;
}
