/* Registo CDI Portugal — identidade de cdi.org.pt (Nunito, verde #62b46e, roxo #5e3b8f). */
@font-face {
    font-family: "Nunito";
    src: url("../fonts/nunito-latin.woff2") format("woff2");
    font-weight: 200 900;
    font-display: swap;
}

:root {
    --pt-green: #62b46e;
    --pt-green-dark: #3f8f4c;
    --pt-purple: #5e3b8f;
    --pt-text: #383838;
    --pt-muted: #565656;
    --pt-line: #eaeaea;
}

body {
    font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--pt-text);
    background: #fff;
}

.pt-header {
    border-bottom: 1px solid var(--pt-line);
    padding: 14px 0;
}

.pt-logo {
    height: 52px;
    width: auto;
}

.pt-switch {
    color: var(--pt-purple);
    font-weight: 700;
    text-decoration: none;
    font-size: .95rem;
}

.pt-switch:hover,
.pt-switch:focus {
    text-decoration: underline;
}

.pt-main {
    max-width: 860px;
    padding-top: 32px;
    padding-bottom: 48px;
}

.pt-main h1 {
    font-weight: 800;
    color: var(--pt-purple);
    font-size: clamp(1.5rem, 4vw, 2rem);
}

.pt-lead {
    color: var(--pt-muted);
    margin-bottom: 24px;
}

fieldset {
    border: 1px solid var(--pt-line);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

legend {
    float: none;
    width: auto;
    padding: 0 8px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--pt-purple);
}

.form-label {
    font-weight: 600;
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    border-color: var(--pt-green);
    box-shadow: 0 0 0 .2rem rgba(98, 180, 110, .3);
}

.form-check-input:checked {
    background-color: var(--pt-green);
    border-color: var(--pt-green);
}

.pt-btn {
    display: block;
    width: 100%;
    background: var(--pt-green);
    color: #fff;
    border: 0;
    border-radius: 8px;
    padding: 14px;
    font-size: 1.15rem;
    font-weight: 800;
}

.pt-btn:hover,
.pt-btn:focus {
    background: var(--pt-green-dark);
}

.pt-btn:disabled {
    opacity: .6;
}

/* Armadilha para robôs: fora do ecrã, mas presente no formulário. */
.pt-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
}

.pt-footer {
    background: var(--pt-purple);
    color: #fff;
    padding: 18px 0;
    font-size: .9rem;
}

@media (max-width: 576px) {
    .pt-logo {
        height: 40px;
    }

    fieldset {
        padding: 16px 12px;
    }
}
