/* =========================
   FORM STYLES
   ========================= */

#calcFormxat {
    max-width: 1200px;
    width: 90%;                 /* fluid on desktop */
    margin: 0 auto;
    font-family: Arial, sans-serif;
}

#calcFormxat div {
    margin-bottom: 15px;
}

#calcFormxat label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

#calcFormxat select {
    width: 100%;
    padding: 8px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#calcFormxat button {
    width: 100%;
    padding: 12px;
    font-size: 15px;
    font-weight: 600;
    font-family: Arial, sans-serif;
    color: #333;
    background-color: #f5f5f5;
    border: 1px solid #ccc;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

#calcFormxat button:hover {
    background-color: #e9e9e9;
    border-color: #b5b5b5;
}

#calcFormxat button:active {
    background-color: #dedede;
}

.form-errorxat {
    color: #c62828;
    font-size: 13px;
    margin-top: 5px;
    display: none;
}


/* =========================
   OUTPUT SCREEN LAYOUT
   ========================= */

#outputScreenxat {
    max-width: 700px;
    width: 90%;                  /* fluid layout */
    margin: 30px auto 0;
    font-family: Arial, sans-serif;
}

/* BIG, CLEAR SECTION HEADINGS */
#outputScreenxat h2 {
    margin-top: 24px;            /* reduced from 40px */
    margin-bottom: 12px;         /* reduced from 18px */
    font-size: 22px;             /* slightly smaller */
    font-weight: 700;
    line-height: 1.3;
}


/* =========================
   PARAGRAPH RHYTHM
   ========================= */

#outputScreenxat p {
    margin: 6px 0;
    line-height: 1.5;
}

.outputsummaryParagraphxat p,
.calcParagraphxat p,
.calcnewParagraphxat p {
    padding-left: 10px;
}


/* =========================
   SECTION GROUPING
   ========================= */

.outputsummaryParagraphxat,
.calcParagraphxat,
.calcnewParagraphxat,
.notesParagraphxat {
    margin-top: 12px;            /* reduced from 20px */
    padding: 14px;               /* slightly smaller padding */
    background-color: #f9f9f9;
    border-radius: 8px;
}


/* =========================
   CTA LINKS → REAL BUTTONS
   ========================= */

#outputScreenxat a {
    display: inline-block;
    margin-top: 6px;
    margin-bottom: 12px;         /* clear separation from next line */
    padding: 10px 16px;
    background-color: #0d6efd;
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    border-radius: 6px;
    text-align: center;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

#outputScreenxat a:hover {
    background-color: #0b5ed7;
    transform: translateY(-1px);
}

#outputScreenxat a:active {
    transform: translateY(0);
}


/* =========================
   NOTES / WARNINGS (VAT ETC.)
   ========================= */

.notesParagraphxat p {
    background-color: #fff3cd;
    border-left: 4px solid #ff9800;
    padding: 10px 12px;          /* reduced padding */
    margin-top: 6px;             /* less space above first note */
    border-radius: 4px;
    font-size: 14px;
}


/* =========================
   VALUE EMPHASIS
   ========================= */

#outputScreenxat span {
    font-weight: 600;
}

/* =========================
   RESET BUTTON AT BOTTOM
   ========================= */

#outputScreenxat .resetButtonxat {
    display: inline-block;
    width: 100%;
    padding: 12px;
    margin-top: 16px;
    background-color: #198754;
    color: #ffffff;
    font-weight: 600;
    font-size: 15px;
    text-align: center;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

#outputScreenxat .resetButtonxat:hover {
    background-color: #157347;
    transform: translateY(-1px);
}

#outputScreenxat .resetButtonxat:active {
    transform: translateY(0);
}
