* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #f5f5f5;
    font-family: Arial, Helvetica, sans-serif;
    color: #222;
}

.wrap {
    max-width: 920px;
    margin: 0 auto;
    padding: 60px 20px;
}

.card {
    background: #fff;
    border-radius: 12px;
    padding: 48px;
    box-shadow: 0 2px 14px rgba(0,0,0,.08);
}

h1 {
    margin: 0 0 12px;
    font-size: 34px;
}

h2 {
    margin: 0 0 20px;
    font-size: 22px;
}

.intro {
    margin: 0 0 36px;
    color: #666;
    font-size: 18px;
}

.choices {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.choice {
    padding: 20px;
    border: 2px solid #ddd;
    border-radius: 10px;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
}

.choice:hover {
    border-color: #555;
    background: #fafafa;
}

.choice input {
    display: none;
}

.choice:has(input:checked) {
    border-color: #222;
    background: #f0f0f0;
}

.form-section {
    display: none;
    margin-top: 40px;
    padding-top: 35px;
    border-top: 1px solid #ddd;
}

.field {
    margin-bottom: 26px;
}

.field-title {
    display: block;
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 10px;
}

select,
input[type="number"],
input[type="text"] {
    width: 100%;
    padding: 13px;
    font-size: 16px;
    border: 1px solid #bbb;
    border-radius: 7px;
    background: white;
}

.subfield {
    display: none;
    margin-top: 12px;
}

@media (max-width: 650px) {
    .wrap {
        padding: 20px 12px;
    }

    .card {
        padding: 28px 18px;
    }

    .choices {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 28px;
    }
}

.common-section {
    display: none;
    margin-top: 40px;
    padding-top: 35px;
    border-top: 2px solid #ddd;
}

.section-heading {
    margin-top: 40px;
}

input[type="email"],
input[type="tel"],
input[type="date"],
textarea {
    width: 100%;
    padding: 13px;
    font-family: inherit;
    font-size: 16px;
    border: 1px solid #bbb;
    border-radius: 7px;
    background: #fff;
}

textarea {
    resize: vertical;
    min-height: 120px;
}

.field-help {
    margin: -3px 0 12px;
    color: #666;
    font-size: 14px;
    line-height: 1.45;
}

input[type="file"] {
    width: 100%;
    font-size: 15px;
}

.checkbox-field label {
    display: flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
}

.checkbox-field input {
    width: 18px;
    height: 18px;
}

.submit-button {
    width: 100%;
    margin-top: 10px;
    padding: 16px 22px;
    border: 0;
    border-radius: 8px;
    background: #222;
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
}

.submit-button:hover {
    background: #444;
}

.submit-help {
    margin-top: 10px;
    text-align: center;
}

.status {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 6px;
    background: #eee;
    font-size: 13px;
    font-weight: 600;
}

.status--ny {
    font-weight: 700;
}

.status--lokid {
    opacity: 0.6;
}

/* =========================================================
   HSP TILBOÐ – ÚTLIT V2
   ========================================================= */

body {
    margin: 0;
    background: #f4f4f3;
    color: #222;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

/* Aðalrammi */

.wrap,
.container {
    max-width: 820px;
    margin: 55px auto;
    padding: 0 22px;
}

/* Hvíta kortið */

.card {
    background: #fff;
    border-radius: 14px;
    padding: 42px 46px;
    box-shadow: 0 5px 24px rgba(0,0,0,0.07);
}

/* Fyrirsagnir */

h1 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 34px;
    line-height: 1.15;
    letter-spacing: -0.5px;
}

h2 {
    margin-top: 36px;
    margin-bottom: 20px;
    font-size: 22px;
    line-height: 1.25;
}

.card > p:first-of-type {
    color: #666;
    font-size: 17px;
    margin-top: 0;
    margin-bottom: 32px;
}

/* Almennir reitir */

.field {
    margin-bottom: 24px;
}

.field-title {
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 700;
    color: #333;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
select,
textarea {
    box-sizing: border-box;
    width: 100%;
    min-height: 48px;
    padding: 11px 13px;
    border: 1px solid #cfcfcd;
    border-radius: 8px;
    background: #fff;
    color: #222;
    font-family: inherit;
    font-size: 16px;
    transition: border-color .15s ease, box-shadow .15s ease;
}

textarea {
    min-height: 120px;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #777;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.06);
}

/* Hjálpartexti */

.field-help {
    color: #777;
    font-size: 14px;
}

/* Verkefnaval */

.project-options,
.verkefni-options,
.radio-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.project-options label,
.verkefni-options label,
.radio-group label {
    box-sizing: border-box;
    padding: 15px 17px;
    border: 1px solid #d7d7d4;
    border-radius: 9px;
    background: #fafafa;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease;
}

.project-options label:hover,
.verkefni-options label:hover,
.radio-group label:hover {
    background: #f1f1ef;
    border-color: #aaa;
}

/* Undirkaflar */

.form-section {
    margin-top: 32px;
    padding-top: 6px;
}

.subfield {
    margin-top: 16px;
}

/* Viðvaranir */

.form-message {
    margin-top: 9px;
    font-size: 14px;
    font-weight: 600;
    color: #a32929;
}

/* Sameiginlegi lokahlutinn */

.common-section {
    margin-top: 42px;
    padding-top: 30px;
    border-top: 1px solid #ddd;
}

/* Skráarval */

input[type="file"] {
    box-sizing: border-box;
    width: 100%;
    padding: 14px;
    border: 1px dashed #bbb;
    border-radius: 8px;
    background: #fafafa;
}

/* Senda */

.submit-button {
    width: 100%;
    min-height: 54px;
    margin-top: 18px;
    padding: 14px 22px;
    border: 0;
    border-radius: 9px;
    background: #222;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .1s ease, background .15s ease;
}

.submit-button:hover {
    background: #3b3b3b;
}

.submit-button:active {
    transform: translateY(1px);
}

.submit-button:disabled {
    opacity: .55;
    cursor: default;
}

/* Mobile */

@media (max-width: 700px) {

    .wrap,
    .container {
        margin: 20px auto;
        padding: 0 12px;
    }

    .card {
        padding: 28px 20px;
        border-radius: 10px;
    }

    h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 20px;
    }

    .project-options,
    .verkefni-options,
    .radio-group {
        grid-template-columns: 1fr;
    }
}


.card > h1 {
    text-align: center;
}


.card > h1 + p {
    text-align: center;
}


/* Miðjusetja upphaf forms */
.card > h1,
.card > h1 + p,
.card > h1 + p + h2 {
    text-align: center;
}

/* HSP áherslulitur */
:root {
    --hsp-accent: #c92035;
    --hsp-accent-dark: #a9182a;
    --hsp-accent-soft: #fff4f5;
}

/* Verkefnakort */
.choice:hover {
    border-color: var(--hsp-accent);
    background: var(--hsp-accent-soft);
}

.choice:has(input:checked) {
    border-color: var(--hsp-accent);
    background: var(--hsp-accent-soft);
}

/* Form focus */
input:focus,
select:focus,
textarea:focus {
    border-color: var(--hsp-accent);
    box-shadow: 0 0 0 3px rgba(201, 32, 53, 0.10);
}

/* Senda takki */
.submit-button {
    background: var(--hsp-accent);
}

.submit-button:hover {
    background: var(--hsp-accent-dark);
}


.choice:has(input:checked) {
    background: var(--hsp-accent);
    border-color: var(--hsp-accent);
    color: #fff;
}

.choice:has(input:checked):hover {
    background: var(--hsp-accent-dark);
    border-color: var(--hsp-accent-dark);
}

