@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=The+Nautigal:wght@400;700&display=swap');

/* ---------- Master ---------- */
:root {
    --primary: #c91212;
    --primary_dark: #a70d0d;

    --black: #0b0d0f;
    --white: #f6f7f8;

    --primary_filter: invert(13%) sepia(97%) saturate(5508%) hue-rotate(356deg) brightness(88%) contrast(98%);
    --white_filter: brightness(0) invert(1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    /* border: 1px solid gray; */
}

body {
    position: relative;
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
    background: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
}

select,
textarea,
input {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: var(--black);
    font-weight: 400;
    background: var(--white);
    border: none;
    border-radius: 0.25rem;
    padding: 0.5rem 1rem;
    width: 100%;
}

select,
textarea {
    appearance: none;
}

textarea {
    resize: vertical;
    min-height: 10rem;
}

button {
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: var(--white);
    font-weight: 600;
    text-transform: uppercase;
    background: var(--primary);
    border: none;
    border-radius: 0.25rem;
    padding: 0.5rem 1rem;
    transition: 0.5s;
}

button:hover {
    background: var(--primary_dark);
    transform: translateY(-2px);
}

.container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.padding {
    padding: 0 8rem;
}

.primary_color {
    color: var(--primary);
}

.button_alt {
    color: var(--black);
    background: transparent;
    border: 2px solid var(--primary);
}

.button_alt:hover {
    background: transparent;
    transform: translateY(-2px);
}

/* ---------- Header ---------- */
.header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 12vh;
}

/* Topper */
.header .topper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--primary);
    width: 100%;
    height: 30%;
}

.header .topper .item {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.header .topper .item img {
    filter: var(--white_filter);
    width: 1rem;
}

.header .topper .item span {
    font-size: 0.85rem;
    color: var(--white);
    font-weight: 400;
    letter-spacing: 0.05rem;
    text-transform: uppercase;
}

/* Navigation */
.header .navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    background: var(--black);
    width: 100%;
    height: 70%;
}

.header .navigation img {
    width: 8rem;
}

.header .navigation .links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.header .navigation .links a {
    font-size: 0.85rem;
    text-transform: uppercase;
    border-bottom: 2px solid transparent;
    padding: 0.15rem 0.15rem 0.25rem 0.15rem;
    transition: 0.5s;
}

.header .navigation .links a:hover {
    border-bottom: 2px solid var(--primary);
    transform: translateY(-2px);
}

.header .navigation .links a:active {
    border-bottom: 2px solid var(--primary);
}

.header .navigation .links a.active {
    border-bottom: 2px solid var(--primary);
}

/* ---------- Hero ---------- */
.container .hero {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    background: url('images/hero_alt.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding-top: 5rem;
    padding-bottom: 5rem;
    width: 100%;
    height: 60vh;
}

.container .hero h4 {
    font-size: 1.25rem;
    color: var(--primary);
    font-weight: 500;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.container .hero h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 3.5rem;
    font-weight: 500;
    text-transform: uppercase;
    line-height: 4rem;
}

.container .hero p {
    font-size: 1rem;
    width: 35%;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

/* ---------- Hero Banner ---------- */
.container .hero_banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--black);
    border: 1px solid var(--white);
    width: 100%;
    height: 25vh;
}

.container .hero_banner .item {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    color: var(--white);
    border-right: 1px solid var(--white);
    padding: 0 2rem;
    width: 20%;
}

.container .hero_banner .item img {
    filter: var(--primary_filter);
    width: 3rem;
}

.container .hero_banner .item .text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 0.5rem;
}

.container .hero_banner .item .text h2 {
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
}

.container .hero_banner .item .text p {
    font-size: 0.75rem;
}

/* ---------- Services ---------- */
.container .services {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 2rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
    width: 100%;
}

.container .services .text {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    background: #ffffff;
    border-radius: 0.25rem;
    padding: 2rem;
    gap: 1rem;
    width: 30%;
}

.container .services .text h4 {
    font-size: 1.25rem;
    color: var(--primary);
    font-weight: 500;
    text-transform: uppercase;
}

.container .services .text h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 3.5rem;
    font-weight: 500;
    text-transform: uppercase;
    line-height: 4rem;
}

.container .services .images {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 1rem;
    width: 70%;
}

.container .services .images .image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.25);
    overflow: hidden;
    width: 35%;
}

.container .services .images .image img {
    object-fit: cover;
    border-radius: 0.25rem;
    width: 100%;
    height: 100%;
}

.container .services .images .image .overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    background: rgba(0, 0, 0, 0.5);
    padding: 0.75rem 1rem;
    opacity: 1;
    width: 100%;
}

.container .services_page {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 2rem;
    padding-top: 4rem;
    padding-bottom: 4rem;
    width: 100%;
}

.container .services_page .sidebar {
    position: sticky;
    top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 26%;
}

.container .services_page .sidebar .card {
    border-radius: 1rem;
    padding: 1.5rem;
}

.container .services_page .sidebar .card h4 {
    font-size: 1.05rem;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.container .services_page .sidebar .card a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    background: #ffffff;
    border: 1px solid rgba(11, 13, 15, 0.08);
    border-radius: 0.75rem;
    padding: 0.95rem 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.92rem;
    font-weight: 500;
    transition: 0.3s;
}

.container .services_page .sidebar .card a:last-child {
    margin-bottom: 0;
}

.container .services_page .sidebar .card a:hover,
.container .services_page .sidebar .card a.active {
    color: var(--white);
    background: var(--primary);
    border-color: var(--primary);
}

.container .services_page .detail {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: #ffffff;
    border-radius: 0.25rem;
    padding: 2rem;
    width: 74%;
}

.container .services_page .detail .category {
    display: none;
    padding: 2rem;
}

.container .services_page .detail .category.active {
    display: block;
}

.container .services_page .detail .heading {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.container .services_page .detail .heading img {
    filter: var(--primary_filter);
    width: 2.3rem;
}

.container .services_page .detail .heading h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    font-weight: 500;
    text-transform: uppercase;
    line-height: 2.2rem;
    margin-bottom: 0.5rem;
}

.container .services_page .detail .heading p {
    line-height: 1.7;
    max-width: 42rem;
}

.container .services_page .detail .category ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem 1.5rem;
    list-style: none;
}

.container .services_page .detail .category li {
    position: relative;
    padding-left: 1.6rem;
    line-height: 1.6;
}

.container .services_page .detail .category li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.48rem;
    background: var(--primary);
    border-radius: 50%;
    width: 0.55rem;
    height: 0.55rem;
}

.services_commitment {
    color: var(--white);
    background: var(--black);
    width: 100%;
}

.services_commitment .services_commitment_inner {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.services_commitment h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 2.5rem;
    font-weight: 500;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 2rem;
}

.services_commitment .commitment_grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.25rem;
}

.services_commitment .commitment_item {
    text-align: center;
    border-right: 1px solid rgba(246, 247, 248, 0.18);
    padding: 0 1rem;
}

.services_commitment .commitment_item:last-child {
    border-right: none;
}

.services_commitment .commitment_item img {
    filter: var(--primary_filter);
    width: 2.5rem;
    margin-bottom: 1rem;
}

.services_commitment .commitment_item h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.4rem;
    font-weight: 500;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.services_commitment .commitment_item p {
    color: rgba(246, 247, 248, 0.76);
    line-height: 1.7;
    font-size: 0.92rem;
}

.services_contact_bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    color: var(--white);
    background: var(--primary);
    padding-top: 1.4rem;
    padding-bottom: 1.4rem;
    width: 100%;
}

.services_contact_bar .services_contact_text {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 1rem;
    width: 38%;
}

.services_contact_bar .services_contact_text img {
    background: var(--white);
    border-radius: 50%;
    width: 3.4rem;
    height: 3.4rem;
    padding: 0.8rem;
}

.services_contact_bar .services_contact_text h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.8rem;
    font-weight: 500;
    text-transform: uppercase;
}

.services_contact_bar .services_contact_text p {
    text-transform: uppercase;
    letter-spacing: 0.04rem;
    font-size: 0.88rem;
}

.services_contact_bar .services_contact_form {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 0.8rem;
    width: 62%;
}

.services_contact_bar .services_contact_form input {
    color: var(--white);
    background: transparent;
    border: 1px solid rgba(246, 247, 248, 0.72);
}

.services_contact_bar .services_contact_form input::placeholder {
    color: rgba(246, 247, 248, 0.9);
}

.services_contact_bar .services_contact_form button {
    background: var(--black);
    min-width: 10rem;
}

/* ---------- Contact ---------- */
.container .contact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    background: var(--primary);
    padding-top: 2rem;
    padding-bottom: 2rem;
    width: 100%;
    height: 12vh;
}

.container .contact .content {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 1rem;
    width: 40%;
}

.container .contact .content img {
    display: block;
    flex-shrink: 0;
    background: var(--white);
    filter: none;
    border-radius: 50%;
    width: 3.25rem;
    height: 3.25rem;
    padding: 0.75rem;
    object-fit: contain;
}

.container .contact .content .text {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    color: var(--white);
}

.container .contact .form {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.container .contact .form input {
    color: var(--white);
    background: var(--primary);
    border: 1px solid var(--white);
}

.container .contact .form input::placeholder {
    color: var(--white);
}

.container .contact .form button {
    background: var(--black);
    width: 50%;
}

/* ---------- Image Text ---------- */
.container .image_text {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 5rem;
    padding-bottom: 5rem;
    gap: 2rem;
    width: 100%;
    min-height: 70vh;
}

.container .image_text .image {
    width: 50%;
    height: 100%;
}

.container .image_text .image img {
    object-fit: cover;
    border-radius: 0.25rem;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.25);
    width: 100%;
    height: 100%;
}

.container .image_text .text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 1rem;
    background: #ffffff;
    border-radius: 0.25rem;
    padding: 2rem;
    width: 60%;
}

.container .image_text .text h4 {
    font-size: 1.25rem;
    color: var(--primary);
    font-weight: 500;
    text-transform: uppercase;
}

.container .image_text .text h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 3.5rem;
    font-weight: 500;
    text-transform: uppercase;
    line-height: 4rem;
}

.container .image_text .text p {
    font-size: 1rem;
}

.container .image_text .text .checkmark {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

.container .image_text .text .checkmark img {
    filter: var(--primary_filter);
    width: 2rem;
}

.container .image_text .text .checkmark .text {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: unset;
}

.container .image_text .text .checkmark .text h4 {
    font-size: 1.25rem;
    font-weight: 500;
    text-transform: uppercase;
    line-height: 0.5rem;
}

/* ---------- Image Quote ---------- */
.container .image_quote {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 5rem;
    padding-bottom: 5rem;
    gap: 2rem;
    width: 100%;
    min-height: 70vh;
}

.container .image_quote .image {
    width: 50%;
    height: 50%;
}

.container .image_quote .image img {
    object-fit: cover;
    border-radius: 0.25rem;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.25);
    width: 100%;
    height: 100%;
}

.container .image_quote .text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 0.5rem;
    background: #ffffff;
    border-radius: 0.25rem;
    padding: 2rem;
    width: 40%;
}

.container .image_quote .text h4 {
    font-size: 1.25rem;
    color: var(--primary);
    font-weight: 500;
    text-transform: uppercase;
}

.container .image_quote .text h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 3.5rem;
    font-weight: 500;
    text-transform: uppercase;
    line-height: 4rem;
}

.container .image_quote .text p {
    font-size: 1rem;
}

.container .image_quote .text span {
    font-family: 'The Nautigal', cursive;
    font-size: 3.5rem;
}

.container .testimonials {
    padding-top: 1rem;
    padding-bottom: 4rem;
    width: 100%;
}

.container .testimonials .heading {
    max-width: 54rem;
    margin-bottom: 2rem;
}

.container .testimonials .heading h4 {
    font-size: 1.1rem;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.container .testimonials .heading h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 3.1rem;
    font-weight: 500;
    text-transform: uppercase;
    line-height: 3.35rem;
}

.container .testimonials .grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.container .testimonials .grid .card {
    position: relative;
    border-radius: 1rem;
    box-shadow: 0 1rem 2.5rem rgba(11, 13, 15, 0.06);
    padding: 2rem;
}

.container .testimonials .grid .card .quote_mark {
    font-family: 'Oswald', sans-serif;
    font-size: 4rem;
    color: rgba(201, 18, 18, 0.18);
    line-height: 1;
    margin-bottom: 0.75rem;
}

.container .testimonials .grid .card h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    font-weight: 500;
    text-transform: uppercase;
    line-height: 1.7rem;
    margin-bottom: 1rem;
}

.container .testimonials .grid .card p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.container .testimonials .grid .card .author {
    border-top: 1px solid rgba(11, 13, 15, 0.08);
    padding-top: 1rem;
}

.container .testimonials .grid .card .author strong {
    display: block;
    font-size: 0.98rem;
    margin-bottom: 0.25rem;
}

.container .testimonials .grid .card .author span {
    color: rgba(11, 13, 15, 0.66);
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.04rem;
}

.container .contact_page .card,
.container .reassurance .card {
    /* border: 1px solid rgba(11, 13, 15, 0.08); */
    border-radius: 1rem;
    box-shadow: 0 1rem 2.5rem rgba(11, 13, 15, 0.06);
}

.container .reassurance .card img {
    filter: var(--primary_filter);
    width: 2.2rem;
    margin-bottom: 1rem;
}

.container .contact_page .sidebar .card h3,
.container .reassurance .card h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.6rem;
    font-weight: 500;
    text-transform: uppercase;
    line-height: 1.8rem;
    margin-bottom: 0.75rem;
}

.container .contact_page .sidebar .card p,
.container .reassurance .card p {
    line-height: 1.7;
}

.container .contact_page {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    color: var(--black);
    background: transparent;
    padding-top: 3rem;
    padding-bottom: 4rem;
    width: 100%;
	height: auto;
}

.container .contact_page > .card {
    padding: 2rem;
    width: 64%;
}

.container .contact_page .status {
    border-radius: 0.75rem;
    padding: 1rem 1.1rem;
    margin: 1.5rem 0;
}

.container .contact_page .status p {
    margin: 0;
    line-height: 1.6;
}

.container .contact_page .status.status_success {
    color: #0b5134;
    background: #dff5e8;
    border: 1px solid #b8e4c8;
}

.container .contact_page .status.status_error {
    color: #7d1111;
    background: #fde6e6;
    border: 1px solid #f4bbbb;
}

.container .contact_page .form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
    width: 100%;
}

.container .contact_page .form .row {
    display: flex;
    justify-content: flex-start;
    gap: 1rem;
    width: 100%;
}

.container .contact_page .form .row.two_column .field {
    width: 50%;
}

.container .contact_page .form .field {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    width: 100%;
}

.container .contact_page .form label {
    font-size: 0.92rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04rem;
}

.container .contact_page .form select,
.container .contact_page .form textarea,
.container .contact_page .form input {
    color: var(--black);
    background: var(--white);
    border: 1px solid rgba(11, 13, 15, 0.12);
}

.container .contact_page .actions {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding-top: 0.5rem;
    width: 100%;
}

.container .contact_page .actions button {
    min-width: 14rem;
}

.container .contact_page .sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    width: 36%;
}

.container .contact_page .sidebar .card {
    padding: 1.75rem;
}

.container .contact_page .sidebar .card.dark_card {
    color: var(--white);
    background: linear-gradient(180deg, #181b1f 0%, #0b0d0f 100%);
}

.container .contact_page .sidebar .card.dark_card img {
    filter: var(--primary_filter);
    width: 2.4rem;
    margin-bottom: 1rem;
}

.container .contact_page .sidebar .card.dark_card p {
    color: rgba(246, 247, 248, 0.82);
}

.container .contact_page .sidebar .expectation {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 0.9rem;
    padding-top: 1rem;
}

.container .contact_page .sidebar .expectation + .expectation {
    border-top: 1px solid rgba(11, 13, 15, 0.08);
    margin-top: 1rem;
}

.container .contact_page .sidebar .expectation img {
    filter: var(--primary_filter);
    width: 1.8rem;
}

.container .contact_page .sidebar .expectation h4,
.container .contact_page > .card .heading h4 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.3rem;
    font-weight: 500;
    text-transform: uppercase;
    margin-bottom: 0.35rem;
}

.container .contact_page > .card .heading h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 3rem;
    font-weight: 500;
    text-transform: uppercase;
    line-height: 3.25rem;
    margin-bottom: 1.25rem;
}

.container .contact_page > .card .heading p {
    line-height: 1.8;
}

.container .reassurance {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    padding-bottom: 4rem;
    width: 100%;
}

.container .reassurance .card {
    padding: 1.75rem;
}

/* ---------- Footer ---------- */
.footer {
    position: relative;
    color: var(--white);
    background: var(--black);
    border-top: 0.2rem solid var(--primary);
}

.footer .footer_main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 4.25rem;
    gap: 1rem;
}

.footer .footer_main h1 {
    font-weight: 200;
    font-size: 1.5rem;
}

.footer .footer_main .brand {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.footer .footer_main .brand img {
    width: 7rem;
}

.footer .footer_main .item {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    min-height: 2rem;
}

.footer .footer_main .item.no_border {
    padding-right: 0;
}

.footer .footer_main .item img {
    filter: var(--white_filter);
    opacity: 0.95;
    width: 0.95rem;
}

.footer .footer_main .item .text {
    line-height: 1.1;
}

.footer .footer_main .item .text h4 {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: none;
    white-space: nowrap;
}

.footer .footer_main .item .text p {
    font-size: 0.75rem;
    color: rgba(246, 247, 248, 0.8);
    white-space: nowrap;
}

/* Footer Bottom */
.footer .footer_bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    min-height: 2rem;
    border-top: 1px solid rgba(246, 247, 248, 0.12);
    color: rgba(246, 247, 248, 0.72);
    font-size: 0.65rem;
}

.footer .footer_bottom .links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.footer .footer_bottom .links a {
    transition: 0.3s;
}

.footer .footer_bottom .links a:hover {
    color: var(--white);
}

/* ---------- Login Modal ---------- */
body.modal_open {
    overflow: hidden;
}

.login_modal {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.login_modal[hidden] {
    display: none;
}

.login_modal .backdrop {
    position: absolute;
    inset: 0;
    background: rgba(11, 13, 15, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.login_modal .panel {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: min(26rem, calc(100% - 2rem));
    padding: 2rem;
    background: var(--white);
    border-radius: 0.5rem;
    box-shadow: 0 1.5rem 3rem rgba(11, 13, 15, 0.35);
}

.login_modal .panel .close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--black);
    background: transparent;
}

.login_modal .panel .close:hover {
    color: var(--primary);
    background: transparent;
    transform: none;
}

.login_modal .panel h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.75rem;
    text-transform: uppercase;
}

.login_modal .panel p {
    font-size: 0.9rem;
    color: rgba(11, 13, 15, 0.7);
}

.login_modal .form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 0.5rem;
}

.login_modal .form .field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.login_modal .form label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04rem;
}

.login_modal .form input {
    border: 1px solid rgba(11, 13, 15, 0.12);
}

.login_modal .form .status {
    padding: 0.6rem 0.85rem;
    font-size: 0.85rem;
    border-radius: 0.25rem;
}

.login_modal .form .status[hidden] {
    display: none;
}

.login_modal .form .status.status_error {
    color: #7d1111;
    background: #fde6e6;
    border: 1px solid #f4bbbb;
}

.login_modal .form .status.status_success {
    color: #14532d;
    background: #e6f7ec;
    border: 1px solid #b6e2c6;
}

.login_modal .form button[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ---------- Portal ---------- */
.portal {
    display: flex;
    align-items: flex-start;
    width: 100%;
    min-height: 100vh;
    background: #f1f2f4;
}

/* Portal Sidebar */
.portal .sidebar {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    flex-shrink: 0;
    width: 16rem;
    height: 100vh;
    padding: 1.5rem 1rem;
    background: var(--black);
    overflow-y: auto;
    z-index: 20;
}

.portal .sidebar .brand {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.5rem 0.75rem;
}

.portal .sidebar .brand img {
    width: 100%;
    max-width: 11rem;
    object-fit: contain;
}

.portal .sidebar .menu {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex-grow: 1;
}

.portal .sidebar .menu .group_label {
    margin: 1.25rem 0 0.5rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08rem;
    text-transform: uppercase;
    color: rgba(246, 247, 248, 0.45);
}

.portal .sidebar .menu .link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.75rem;
    font-size: 0.92rem;
    font-weight: 500;
    color: rgba(246, 247, 248, 0.75);
    border-radius: 0.4rem;
    transition: 0.3s;
}

.portal .sidebar .menu .link:hover {
    color: var(--white);
    background: rgba(246, 247, 248, 0.08);
}

.portal .sidebar .menu .link.active {
    color: var(--white);
    font-weight: 600;
    background: var(--primary);
}

.portal .sidebar .menu .link svg {
    flex-shrink: 0;
    width: 1.15rem;
    height: 1.15rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.portal .sidebar .support_card {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(246, 247, 248, 0.07);
    border: 1px solid rgba(246, 247, 248, 0.12);
    border-radius: 0.5rem;
}

.portal .sidebar .support_card > svg {
    flex-shrink: 0;
    width: 1.6rem;
    height: 1.6rem;
    fill: none;
    stroke: var(--white);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.portal .sidebar .support_card .text h3 {
    font-size: 0.9rem;
    color: var(--white);
}

.portal .sidebar .support_card .text p {
    font-size: 0.75rem;
    color: rgba(246, 247, 248, 0.6);
}

.portal .sidebar .support_card .text a {
    display: inline-block;
    margin-top: 0.35rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
}

.portal .sidebar_overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(11, 13, 15, 0.5);
    z-index: 15;
}

/* Portal Main */
.portal .portal_main {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    flex-grow: 1;
    min-width: 0;
    padding: 1.75rem 2rem 2.5rem;
}

.portal .card {
    background: var(--white);
    border: 1px solid rgba(11, 13, 15, 0.08);
    border-radius: 0.5rem;
    box-shadow: 0 0.25rem 0.75rem rgba(11, 13, 15, 0.04);
}

.portal .card_heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.15rem 1.25rem;
    border-bottom: 1px solid rgba(11, 13, 15, 0.08);
}

.portal .card_heading h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.15rem;
    font-weight: 500;
}

.portal .card_heading a {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
}

/* Portal Topbar */
.portal .topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.portal .topbar .sidebar_toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.3rem;
    padding: 0.6rem;
    background: var(--black);
}

.portal .topbar .sidebar_toggle .bar {
    display: block;
    width: 1.1rem;
    height: 2px;
    background: var(--white);
}

.portal .topbar .welcome h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.6rem;
    font-weight: 600;
}

.portal .topbar .welcome p {
    font-size: 0.88rem;
    color: rgba(11, 13, 15, 0.6);
}

.portal .topbar .account {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.portal .topbar .account .notifications {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.5rem;
    background: transparent;
    color: var(--black);
}

.portal .topbar .account .notifications:hover {
    background: transparent;
    color: var(--primary);
}

.portal .topbar .account .notifications svg {
    width: 1.4rem;
    height: 1.4rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.portal .topbar .account .notifications .badge {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 1.1rem;
    height: 1.1rem;
    padding: 0 0.25rem;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--white);
    background: var(--primary);
    border-radius: 999px;
}

.portal .topbar .account .profile {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.25rem;
    text-transform: none;
    background: transparent;
    color: var(--black);
}

.portal .topbar .account .profile:hover {
    background: transparent;
    transform: none;
}

.portal .topbar .account .profile .avatar,
.portal .messages .message .avatar {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--white);
    background: var(--black);
    border-radius: 999px;
}

.portal .topbar .account .profile .text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.portal .topbar .account .profile .text .name {
    font-size: 0.9rem;
    font-weight: 600;
}

.portal .topbar .account .profile .text .role {
    font-size: 0.75rem;
    font-weight: 400;
    color: rgba(11, 13, 15, 0.55);
}

.portal .topbar .account .profile .chevron {
    width: 1rem;
    height: 1rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Portal Stats */
.portal .stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.portal .stats .stat {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem;
}

.portal .stats .stat .top {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.portal .stats .stat .icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 3rem;
    height: 3rem;
    background: rgba(201, 18, 18, 0.08);
    border-radius: 0.5rem;
}

.portal .stats .stat .icon svg {
    width: 1.5rem;
    height: 1.5rem;
    fill: none;
    stroke: var(--primary);
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.portal .stats .stat .donut {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 999px;
    background: conic-gradient(var(--primary) calc(var(--progress) * 1%), rgba(11, 13, 15, 0.1) 0);
}

.portal .stats .stat .donut::after {
    content: '';
    position: absolute;
    inset: 0.4rem;
    background: var(--white);
    border-radius: 999px;
}

.portal .stats .stat .donut .value {
    position: relative;
    z-index: 1;
    font-size: 0.75rem;
    font-weight: 700;
}

.portal .stats .stat .label,
.portal .project .progress .label,
.portal .project .fact .label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05rem;
    text-transform: uppercase;
    color: rgba(11, 13, 15, 0.5);
}

.portal .stats .stat h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 1.9rem;
}

.portal .stats .stat .sub {
    font-size: 0.8rem;
    color: rgba(11, 13, 15, 0.55);
}

.portal .card_link {
    padding-top: 0.85rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(11, 13, 15, 0.65);
    border-top: 1px solid rgba(11, 13, 15, 0.08);
    transition: 0.3s;
}

.portal .card_link:hover {
    color: var(--primary);
}

/* Portal Overview */
.portal .overview {
    display: grid;
    grid-template-columns: 1.9fr 1fr;
    align-items: start;
    gap: 1.25rem;
}

.portal .side_column {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Portal Projects */
.portal .projects .project {
    display: flex;
    gap: 1.25rem;
    padding: 1.25rem;
    border-bottom: 1px solid rgba(11, 13, 15, 0.08);
}

.portal .projects .project:last-child {
    border-bottom: none;
}

.portal .projects .project .thumbnail {
    flex-shrink: 0;
    width: 16rem;
    height: 9.5rem;
    border-radius: 0.4rem;
    overflow: hidden;
}

.portal .projects .project .thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portal .projects .project .detail {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex-grow: 1;
    min-width: 0;
}

.portal .projects .project .detail h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.15rem;
    font-weight: 500;
}

.portal .projects .project .detail .address {
    font-size: 0.78rem;
    color: rgba(11, 13, 15, 0.55);
}

.portal .project .progress .progress_top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.4rem;
}

.portal .project .progress .value {
    font-size: 0.8rem;
    font-weight: 700;
}

.portal .project .progress .track {
    width: 100%;
    height: 0.35rem;
    background: rgba(11, 13, 15, 0.1);
    border-radius: 999px;
    overflow: hidden;
}

.portal .project .progress .track .fill {
    height: 100%;
    background: var(--primary);
    border-radius: 999px;
}

.portal .project .facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.portal .project .fact {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.6rem 0.75rem;
    background: rgba(11, 13, 15, 0.03);
    border: 1px solid rgba(11, 13, 15, 0.07);
    border-radius: 0.35rem;
}

.portal .project .fact .value {
    font-size: 0.85rem;
    font-weight: 600;
}

.portal .project .actions {
    display: flex;
    justify-content: flex-end;
}

.portal .project .actions button {
    font-size: 0.78rem;
    text-transform: none;
    padding: 0.45rem 0.9rem;
}

/* Portal Milestones */
.portal .milestones .milestone {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.9rem 1.25rem;
    border-bottom: 1px solid rgba(11, 13, 15, 0.06);
}

.portal .milestones .milestone:last-child {
    border-bottom: none;
}

.portal .milestones .milestone .date {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    width: 2.9rem;
    padding: 0.35rem 0;
    background: rgba(201, 18, 18, 0.08);
    border-radius: 0.35rem;
    color: var(--primary);
}

.portal .milestones .milestone .date .month {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.05rem;
    text-transform: uppercase;
}

.portal .milestones .milestone .date .day {
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.2rem;
}

.portal .milestones .milestone .text {
    flex-grow: 1;
    min-width: 0;
}

.portal .milestones .milestone .text h3 {
    font-size: 0.88rem;
    font-weight: 600;
}

.portal .milestones .milestone .text p {
    font-size: 0.75rem;
    color: rgba(11, 13, 15, 0.55);
}

.portal .milestones .milestone .tag {
    flex-shrink: 0;
    padding: 0.25rem 0.6rem;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--primary);
    background: rgba(201, 18, 18, 0.1);
    border-radius: 999px;
}

/* Portal Activity */
.portal .activity .entry {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.85rem 1.25rem;
}

.portal .activity .entry .icon {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 0.35rem;
    background: rgba(11, 13, 15, 0.06);
    color: rgba(11, 13, 15, 0.65);
}

.portal .activity .entry .icon svg {
    width: 1rem;
    height: 1rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.portal .activity .entry .icon.photo {
    color: #1f7a4d;
    background: rgba(31, 122, 77, 0.12);
}

.portal .activity .entry .icon.document {
    color: var(--primary);
    background: rgba(201, 18, 18, 0.1);
}

.portal .activity .entry .icon.payment {
    color: #1f7a4d;
    background: rgba(31, 122, 77, 0.12);
}

.portal .activity .entry .icon.update {
    color: #1d5fa8;
    background: rgba(29, 95, 168, 0.12);
}

.portal .activity .entry .text .date {
    font-size: 0.68rem;
    color: rgba(11, 13, 15, 0.45);
}

.portal .activity .entry .text h3 {
    font-size: 0.85rem;
    font-weight: 600;
}

.portal .activity .entry .text p {
    font-size: 0.75rem;
    color: rgba(11, 13, 15, 0.55);
}

/* Portal Lower */
.portal .lower {
    display: grid;
    grid-template-columns: 1.15fr 1fr 0.85fr;
    align-items: start;
    gap: 1.25rem;
}

.portal .documents .document_grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 1.25rem;
}

.portal .documents .document {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem;
    background: rgba(11, 13, 15, 0.02);
    border: 1px solid rgba(11, 13, 15, 0.07);
    border-radius: 0.4rem;
}

.portal .documents .document .icon {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    width: 1.9rem;
    height: 1.9rem;
    color: var(--primary);
    background: rgba(201, 18, 18, 0.1);
    border-radius: 0.35rem;
}

.portal .documents .document .icon svg {
    width: 1rem;
    height: 1rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.portal .documents .document .text {
    flex-grow: 1;
    min-width: 0;
}

.portal .documents .document .text .row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.portal .documents .document .text h3 {
    font-size: 0.85rem;
    font-weight: 600;
}

.portal .documents .document .text p,
.portal .documents .document .text .date,
.portal .documents .document .text .meta {
    font-size: 0.7rem;
    color: rgba(11, 13, 15, 0.5);
}

.portal .documents .document .download {
    flex-shrink: 0;
    padding: 0.35rem;
    color: rgba(11, 13, 15, 0.55);
    background: transparent;
}

.portal .documents .document .download:hover {
    color: var(--primary);
    background: transparent;
    transform: none;
}

.portal .documents .document .download svg {
    width: 1.1rem;
    height: 1.1rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Portal Messages */
.portal .messages .message {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1.25rem;
}

.portal .messages .message .text {
    flex-grow: 1;
    min-width: 0;
}

.portal .messages .message .text .row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.portal .messages .message .text h3 {
    font-size: 0.9rem;
    font-weight: 600;
}

.portal .messages .message .text .date {
    font-size: 0.7rem;
    color: rgba(11, 13, 15, 0.5);
}

.portal .messages .message .text .subject {
    font-size: 0.75rem;
    color: rgba(11, 13, 15, 0.55);
}

.portal .messages .message .text .preview {
    margin-top: 0.6rem;
    font-size: 0.82rem;
    color: rgba(11, 13, 15, 0.75);
}

/* Portal CTA */
.portal .cta_card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.4rem;
    padding: 1.5rem;
    background: var(--black);
    border-color: var(--black);
}

.portal .cta_card h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--white);
}

.portal .cta_card p {
    font-size: 0.85rem;
    color: rgba(246, 247, 248, 0.7);
}

.portal .cta_card .cta_button {
    margin-top: 0.85rem;
    padding: 0.6rem 1rem;
    font-size: 0.82rem;
    font-weight: 600;
    text-align: center;
    color: var(--white);
    background: var(--primary);
    border-radius: 0.25rem;
    transition: 0.3s;
}

.portal .cta_card .cta_button:hover {
    background: var(--primary_dark);
}

/* Portal Placeholder */
.portal .page_placeholder {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 2.5rem;
}

.portal .page_placeholder h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.35rem;
    font-weight: 500;
}

.portal .page_placeholder p {
    font-size: 0.88rem;
    color: rgba(11, 13, 15, 0.55);
}

/* Portal Buttons */
.portal .button_small {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    text-transform: none;
}

.portal .button_danger {
    background: rgba(11, 13, 15, 0.08);
    color: var(--black);
}

.portal .button_danger:hover {
    background: var(--primary);
    color: var(--white);
}

.portal .card_heading .heading_actions {
    display: flex;
    gap: 0.5rem;
}

/* Plan List */
.portal .plan_list .table {
    display: flex;
    flex-direction: column;
    padding: 0.5rem 1.25rem 1.25rem;
    overflow-x: auto;
}

.portal .plan_list .row {
    display: grid;
    grid-template-columns: 1.4fr 1.4fr 1.4fr 1fr 1fr 1.3fr;
    align-items: center;
    gap: 1rem;
    min-width: 56rem;
    padding: 0.75rem 0;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(11, 13, 15, 0.07);
}

.portal .plan_list .row:last-child {
    border-bottom: none;
}

.portal .plan_list .heading_row {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05rem;
    text-transform: uppercase;
    color: rgba(11, 13, 15, 0.5);
}

.portal .plan_list .row .actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

.portal .empty {
    padding: 1rem 0;
    font-size: 0.85rem;
    color: rgba(11, 13, 15, 0.55);
}

/* Plan Builder */
.portal .plan_builder .section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem;
    border-bottom: 1px solid rgba(11, 13, 15, 0.08);
}

.portal .plan_builder .section:last-child {
    border-bottom: none;
}

.portal .plan_builder .section h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04rem;
}

.portal .plan_builder .section_heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.portal .plan_builder .section_actions {
    display: flex;
    gap: 0.5rem;
}

.portal .plan_builder .grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.portal .plan_builder .field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.portal .plan_builder label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04rem;
    text-transform: uppercase;
    color: rgba(11, 13, 15, 0.55);
}

.portal .plan_builder select,
.portal .plan_builder textarea,
.portal .plan_builder input {
    font-size: 0.85rem;
    background: var(--white);
    border: 1px solid rgba(11, 13, 15, 0.14);
}

.portal .plan_builder textarea {
    min-height: 6rem;
}

/* Plan Steps */
.portal .plan_builder .steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.portal .plan_builder .step {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(11, 13, 15, 0.02);
    border: 1px solid rgba(11, 13, 15, 0.08);
    border-radius: 0.4rem;
}

.portal .plan_builder .step_heading {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.portal .plan_builder .step_heading .step_name {
    flex-grow: 1;
    font-weight: 600;
}

.portal .plan_builder .step_total {
    flex-shrink: 0;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(11, 13, 15, 0.6);
    white-space: nowrap;
}

.portal .plan_builder .check {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    text-transform: uppercase;
    white-space: nowrap;
}

.portal .plan_builder .check input {
    width: auto;
}

.portal .plan_builder .line_items {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    overflow-x: auto;
}

.portal .plan_builder .line_item {
    display: grid;
    grid-template-columns: 1.4fr 0.9fr 0.9fr 0.8fr 0.8fr 1fr 1.4fr 0.6fr 0.7fr;
    align-items: center;
    gap: 0.5rem;
    min-width: 62rem;
}

.portal .plan_builder .line_item.heading_row {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.04rem;
    text-transform: uppercase;
    color: rgba(11, 13, 15, 0.45);
}

/* Plan Summary */
.portal .plan_builder .summary {
    gap: 1.25rem;
}

.portal .plan_builder .totals {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.portal .plan_builder .total {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.85rem 1rem;
    background: rgba(11, 13, 15, 0.03);
    border: 1px solid rgba(11, 13, 15, 0.07);
    border-radius: 0.35rem;
}

.portal .plan_builder .total .label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04rem;
    text-transform: uppercase;
    color: rgba(11, 13, 15, 0.5);
}

.portal .plan_builder .total .value {
    font-family: 'Oswald', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
}

.portal .plan_builder .status {
    padding: 0.6rem 0.85rem;
    font-size: 0.85rem;
    border-radius: 0.25rem;
}

.portal .plan_builder .status[hidden] {
    display: none;
}

.portal .plan_builder .status.status_error {
    color: #7d1111;
    background: #fde6e6;
    border: 1px solid #f4bbbb;
}

.portal .plan_builder .status.status_success {
    color: #14532d;
    background: #e6f7ec;
    border: 1px solid #b6e2c6;
}

.portal .plan_builder .summary .actions {
    display: flex;
    justify-content: flex-end;
}

/* Project Manager */
.portal .card > .empty {
    padding: 1.25rem;
}

.portal .card.status {
    padding: 1rem 1.25rem;
}

.portal .card.status.status_error {
    color: #7d1111;
    background: #fde6e6;
    border-color: #f4bbbb;
}

.portal .card.status.status_success {
    color: #14532d;
    background: #e6f7ec;
    border-color: #b6e2c6;
}

.portal .project .actions .button_link,
.portal .card_heading a.button_small {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0.45rem 0.9rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--white);
    background: var(--primary);
    border-radius: 0.25rem;
    transition: 0.3s;
}

.portal .project .actions .button_link:hover,
.portal .card_heading a.button_small:hover {
    background: var(--primary_dark);
}

/* Portal Accounts */
.portal .user_list .row {
    grid-template-columns: 1.3fr 1fr 1.6fr 0.8fr 0.9fr;
    min-width: 44rem;
}

.portal .form_note {
    font-size: 0.82rem;
    color: rgba(11, 13, 15, 0.6);
}

/* Client Project View */.portal .client_project .card_heading .tag {
    padding: 0.3rem 0.7rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--primary);
    background: rgba(201, 18, 18, 0.1);
    border-radius: 999px;
}

.portal .client_project .section {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 1.25rem;
}

.portal .client_project .facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.portal .client_project .phase_list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.portal .client_project .phase {
    padding: 1rem;
    background: rgba(11, 13, 15, 0.02);
    border: 1px solid rgba(11, 13, 15, 0.07);
    border-radius: 0.4rem;
}

.portal .client_project .phase.complete {
    border-color: rgba(31, 122, 77, 0.35);
}

.portal .client_project .phase h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.6rem;
}

.portal .client_project .phase ul {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    list-style: none;
}

.portal .client_project .phase li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: 0.82rem;
}

.portal .client_project .phase li.complete span:first-child {
    color: rgba(11, 13, 15, 0.45);
    text-decoration: line-through;
}

.portal .client_project .phase li .due {
    flex-shrink: 0;
    font-size: 0.72rem;
    color: rgba(11, 13, 15, 0.5);
}

/* Print Selection Modal */
.print_modal {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.print_modal[hidden] {
    display: none;
}

.print_modal .backdrop {
    position: absolute;
    inset: 0;
    background: rgba(11, 13, 15, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.print_modal .panel {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(42rem, calc(100% - 2rem));
    max-height: calc(100vh - 4rem);
    background: var(--white);
    border-radius: 0.5rem;
    box-shadow: 0 1.5rem 3rem rgba(11, 13, 15, 0.35);
}

.print_modal .panel_heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem 1.5rem 1rem;
}

.print_modal .panel_heading h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.35rem;
    font-weight: 500;
    text-transform: uppercase;
}

.print_modal .panel_heading p {
    font-size: 0.82rem;
    color: rgba(11, 13, 15, 0.55);
}

.print_modal .panel_heading .close {
    padding: 0;
    width: 2rem;
    height: 2rem;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--black);
    background: transparent;
}

.print_modal .panel_heading .close:hover {
    color: var(--primary);
    background: transparent;
    transform: none;
}

.print_modal .panel_actions {
    display: flex;
    gap: 0.5rem;
    padding: 0 1.5rem 1rem;
    border-bottom: 1px solid rgba(11, 13, 15, 0.08);
}

.print_modal .panel_actions button {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    text-transform: none;
}

.print_modal .selection {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    overflow-y: auto;
}

.print_modal .print_group {
    border: 1px solid rgba(11, 13, 15, 0.1);
    border-radius: 0.4rem;
}

.print_modal .group_heading {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 0.9rem;
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(11, 13, 15, 0.04);
    border-bottom: 1px solid rgba(11, 13, 15, 0.08);
    cursor: pointer;
}

.print_modal .group_items {
    display: flex;
    flex-direction: column;
}

.print_modal .group_item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.9rem;
    font-size: 0.82rem;
    border-bottom: 1px solid rgba(11, 13, 15, 0.05);
    cursor: pointer;
}

.print_modal .group_item:last-child {
    border-bottom: none;
}

.print_modal .group_item .cost {
    font-weight: 600;
    color: rgba(11, 13, 15, 0.6);
}

.print_modal input[type="checkbox"] {
    width: auto;
}

.print_modal .panel_footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem 1.5rem;
    border-top: 1px solid rgba(11, 13, 15, 0.08);
}

.print_modal .panel_footer .count {
    font-size: 0.8rem;
    color: rgba(11, 13, 15, 0.55);
}