/* =========================================================
   PHASE 5 HOA
   SHARED PORTAL DESIGN SYSTEM
========================================================= */

:root {

    --hoa-red: #A8445A;
    --hoa-red-dark: #8d354a;
    --hoa-red-deep: #7d2b3b;

    --hoa-red-soft: #F9E7EB;
    --hoa-red-border: #d7b9b7;

    --text-dark: #2f3030;
    --text-medium: #555;
    --text-light: #777;
    --text-muted: #999;

    --background: #f7f6f3;
    --surface: #ffffff;

    --border: #e6e0db;
    --border-light: #e8e3df;

    --success-bg: #e8f5e9;
    --success-text: #2e7d32;

    --danger-bg: #f3e4e1;
    --danger-text: #69242a;

    --radius-sm: 6px;
    --radius-md: 10px;

    --shadow-sm:
        0 2px 8px rgba(0, 0, 0, .08);

    --shadow-md:
        0 4px 12px rgba(0, 0, 0, .10);

    --transition:
        .2s ease;
}


/* =========================================================
   GLOBAL RESET
========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 100%;
}

body {
    margin: 0;

    font-family:
        Arial,
        sans-serif;
    font-size: 14px;

    background:
        var(--background);

    color:
        var(--text-dark);

    line-height: 1.5;
}

img {
    max-width: 100%;
}

a {
    color: inherit;
}


/* =========================================================
   COMMON CARD
========================================================= */

.portal-card {

    background:
        var(--surface);

    border:
        1px solid var(--border);

    border-radius:
        var(--radius-md);

    box-shadow:
        var(--shadow-sm);
}


/* =========================================================
   COMMON BUTTON
========================================================= */

.portal-button {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    border: none;

    border-radius:
        var(--radius-sm);

    padding:
        10px 15px;

    background:
        var(--hoa-red);

    color:
        white;

    text-decoration: none;

    font-size:
        13px;

    font-weight:
        bold;

    cursor:
        pointer;

    transition:
        background var(--transition),
        transform var(--transition),
        box-shadow var(--transition);
}

.portal-button:hover {

    background:
        var(--hoa-red-dark);

    transform:
        translateY(-1px);
}


/* =========================================================
   COMMON BACK LINK
========================================================= */

.portal-back {

    display: inline-block;

    margin-bottom:
        20px;

    color:
        var(--hoa-red-deep);

    text-decoration:
        none;

    font-size:
        13px;

    font-weight:
        bold;

    transition:
        color var(--transition);
}

.portal-back:hover {

    color:
        var(--hoa-red);
}


/* =========================================================
   COMMON STATUS
========================================================= */

.portal-status {

    display: inline-block;

    padding:
        5px 10px;

    border-radius:
        20px;

    font-size:
        12px;

    font-weight:
        bold;
}

.portal-status.active,
.portal-status.approved {

    background:
        var(--success-bg);

    color:
        var(--success-text);
}

.portal-status.inactive,
.portal-status.rejected {

    background:
        var(--danger-bg);

    color:
        var(--danger-text);
}


/* =========================================================
   COMMON PAGE CONTAINER
========================================================= */

.portal-container {

    width:
        92%;

    max-width:
        1150px;

    margin:
        30px auto;
}


/* =========================================================
   COMMON PAGE HEADING
========================================================= */

.portal-heading {

    margin-bottom:
        24px;
}

.portal-heading h1,
.portal-heading h2 {

    margin:
        0;

    color:
        var(--text-dark);
}

.portal-heading p {

    margin:
        6px 0 0;

    color:
        var(--text-light);

    font-size:
        13px;
}


/* =========================================================
   COMMON FORM ELEMENTS
========================================================= */

.portal-input,
.portal-select,
.portal-textarea {

    width:
        100%;

    padding:
        10px 12px;

    border:
        1px solid #d7d7d7;

    border-radius:
        var(--radius-sm);

    background:
        white;

    color:
        var(--text-dark);

    font-family:
        inherit;

    font-size:
        13px;

    outline:
        none;

    transition:
        border-color var(--transition),
        box-shadow var(--transition);
}

.portal-input:focus,
.portal-select:focus,
.portal-textarea:focus {

    border-color:
        var(--hoa-red);

    box-shadow:
        0 0 0 3px
        rgba(141, 68, 72, .10);
}

.portal-textarea {

    min-height:
        110px;

    resize:
        vertical;
}


/* =========================================================
   COMMON TABLE
========================================================= */

.portal-table-wrapper {

    width:
        100%;

    overflow-x:
        auto;
}

.portal-table {

    width:
        100%;

    border-collapse:
        collapse;

    background:
        white;
}

.portal-table th,
.portal-table td {

    padding:
        12px;

    border-bottom:
        1px solid var(--border);

    text-align:
        left;

    font-size:
        13px;
}

.portal-table th {

    background:
        var(--hoa-red);

    color:
        white;

    font-weight:
        bold;
}

.portal-table tbody tr {

    transition:
        background var(--transition);
}

.portal-table tbody tr:hover {

    background:
        #fafafa;
}


/* =========================================================
   COMMON HOVER TRANSITION
========================================================= */

.portal-hover {

    transition:
        transform var(--transition),
        box-shadow var(--transition),
        background var(--transition);
}

.portal-hover:hover {

    transform:
        translateY(-2px);

    box-shadow:
        var(--shadow-md);
}


/* =========================================================
   PUBLIC WEBSITE
   LANDING PAGE
========================================================= */


/*
    IMPORTANT:

    This wrapper keeps the desktop landing page
    from becoming a centered/reflowed layout
    when browser zoom changes.
*/

.public-site {

    min-width:
        1200px;

    width:
        100%;
}


/* =========================================================
   NAVIGATION BAR
========================================================= */

.public-navbar {

    width:
        100%;

    height:
        78px;

    background:
        #8d4448;

    color:
        white;
}


/* =========================================================
   NAVIGATION CONTAINER
========================================================= */

.public-nav-container {

    width:
        100%;

    height:
        78px;

    padding:
        0 32px;

    margin:
        0;

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        30px;
}


/* =========================================================
   BRAND
========================================================= */

.public-brand {

    display:
        flex;

    align-items:
        center;

    gap:
        12px;

    color:
        white;

    text-decoration:
        none;

    flex-shrink:
        0;
}


/* =========================================================
   LOGO
========================================================= */

.public-logo {

    width:
        60px;

    height:
        60px;

    object-fit:
        contain;

    display:
        block;

    flex-shrink:
        0;
}


/* =========================================================
   BRAND TEXT
========================================================= */

.public-brand-text {

    display:
        flex;

    flex-direction:
        column;

    gap:
        3px;

    white-space:
        nowrap;
}

.public-brand-text strong {

    font-size:
        14px;

    font-weight:
        bold;
}

.public-brand-text span {

    font-size:
        12px;
}


/* =========================================================
   NAVIGATION LINKS
========================================================= */

.public-nav-links {

    display:
        flex;

    align-items:
        center;

    justify-content:
        flex-end;

    gap:
        28px;

    flex-shrink:
        0;
}

.public-nav-links a {

    color:
        white;

    text-decoration:
        none;

    font-size:
        13px;

    font-weight:
        bold;

    white-space:
        nowrap;

    transition:
        opacity .2s ease;
}

.public-nav-links a:hover {

    opacity:
        .75;
}

.public-nav-links a.active {

    border-bottom:
        2px solid white;

    padding-bottom:
        5px;
}


/* =========================================================
   NAVIGATION BUTTONS
========================================================= */

.public-nav-links .nav-button {

    border:
        1px solid white;

    border-radius:
        5px;

    padding:
        10px 18px;

    transition:
        background .2s ease,
        color .2s ease;
}

.public-nav-links .nav-button:hover {

    background:
        white;

    color:
        #8d4448;

    opacity:
        1;
}


/* =========================================================
   HERO SECTION
========================================================= */

.hero-section {

    position:
        relative;

    height:
        calc(100vh - 78px);

    min-height:
        600px;

    background-image:
        url("../image/HOAOFFICE.jpg");

    background-size:
        cover;

    background-position:
        center;

    background-repeat:
        no-repeat;

    overflow:
        hidden;
}


/* =========================================================
   LIGHT OVERLAY
========================================================= */

.hero-overlay {

    position:
        absolute;

    inset:
        0;

    background:
        rgba(255, 255, 255, .72);
}


/* =========================================================
   HERO CONTENT
========================================================= */

.hero-content {

    position:
        relative;

    z-index:
        2;

    width:
        100%;

    height:
        100%;

    padding:
        0 5%;

    margin:
        0;

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        40px;
}


/* =========================================================
   LEFT SIDE
========================================================= */

.hero-text {

    width:
        50%;

    flex-shrink:
        0;

    padding:
        40px 0;
}


/* =========================================================
   WELCOME TEXT
========================================================= */

.hero-welcome {

    display:
        block;

    margin-bottom:
        8px;

    color:
        #8d4448;

    font-size:
        16px;

    font-weight:
        bold;

    letter-spacing:
        1px;
}


/* =========================================================
   MAIN HEADING
========================================================= */

.hero-text h1 {

    margin:
        0;

    color:
        #333;

    font-size:
        48px;

    line-height:
        1.05;
}

.hero-text h1 span {

    color:
        #8d4448;
}


/* =========================================================
   SUB HEADING
========================================================= */

.hero-text h2 {

    margin:
        12px 0 20px;

    color:
        #444;

    font-size:
        22px;
}


/* =========================================================
   LOCATION
========================================================= */

.hero-location {

    display:
        flex;

    flex-direction:
        column;

    margin-bottom:
        20px;
}

.hero-location strong {

    color:
        #8d4448;

    font-size:
        17px;
}

.hero-location span {

    color:
        #555;

    font-size:
        14px;
}


/* =========================================================
   DESCRIPTION
========================================================= */

.hero-description {

    max-width:
        520px;

    margin:
        0 0 28px;

    color:
        #444;

    font-size:
        14px;

    line-height:
        1.7;
}


/* =========================================================
   HERO BUTTONS
========================================================= */

.hero-buttons {

    display:
        flex;

    gap:
        15px;
}

.hero-button {

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    gap:
        8px;

    min-width:
        145px;

    padding:
        12px 20px;

    border-radius:
        5px;

    text-decoration:
        none;

    font-size:
        13px;

    font-weight:
        bold;

    white-space:
        nowrap;

    transition:
        transform .2s ease,
        background .2s ease;
}

.hero-button:hover {

    transform:
        translateY(-2px);
}


/* =========================================================
   PRIMARY BUTTON
========================================================= */

.hero-button.primary {

    background:
        #8d4448;

    color:
        white;
}

.hero-button.primary:hover {

    background:
        #7b3e42;
}


/* =========================================================
   SECONDARY BUTTON
========================================================= */

.hero-button.secondary {

    background:
        white;

    border:
        1px solid #8d4448;

    color:
        #8d4448;
}

.hero-button.secondary:hover {

    background:
        #f3e4e1;
}


/* =========================================================
   RIGHT HERO IMAGE AREA
========================================================= */

.hero-image-area {

    width:
        45%;

    height:
        72%;

    flex-shrink:
        0;

    overflow:
        hidden;

    border-radius:
        0 0 0 120px;

    background:
        #ffffff;
}


/* =========================================================
   RIGHT HERO IMAGE
========================================================= */

.hero-image-area img {

    width:
        100%;

    height:
        100%;

    display:
        block;

    object-fit:
        cover;

    object-position:
        center;
}


/* =========================================================
   DESKTOP ZOOM PROTECTION
========================================================= */

@media (min-width: 901px) {

    .public-site {

        min-width:
            0;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 1199px) {

    .public-site {

        min-width:
            0;
    }

    .public-nav-container {

        height:
            auto;

        min-height:
            78px;

        padding:
            15px 20px;

        flex-direction:
            column;
    }

    .public-nav-links {

        flex-wrap:
            wrap;

        justify-content:
            center;

        gap:
            15px;
    }

    .hero-section {

        height:
            auto;

        min-height:
            auto;
    }

    .hero-content {

        flex-direction:
            column;

        padding:
            50px 5%;
    }

    .hero-text {

        width:
            100%;

        padding:
            20px 0;
    }

    .hero-image-area {

        width:
            100%;

        height:
            350px;

        border-radius:
            0;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 600px) {

    .public-brand-text strong {

        font-size:
            12px;
    }

    .public-brand-text span {

        font-size:
            10px;
    }

    .public-nav-links {

        gap:
            10px;
    }

    .public-nav-links a {

        font-size:
            11px;
    }

    .hero-text h1 {

        font-size:
            36px;
    }

    .hero-text h2 {

        font-size:
            18px;
    }

    .hero-buttons {

        flex-direction:
            column;

        align-items:
            flex-start;
    }

}

dialog .modal-close-circle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 36px !important;
    width: 36px !important;
    height: 36px !important;
    margin: 0;
    padding: 0 !important;
    border: 1px solid currentColor !important;
    border-radius: 50% !important;
    background: transparent !important;
    color: var(--hoa-red-dark, #8d354a) !important;
    font: inherit !important;
    line-height: 1 !important;
    cursor: pointer;
    transition: background .18s ease, color .18s ease, border-color .18s ease;
}

dialog .modal-close-circle > svg {
    display: block;
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
}

dialog .modal-close-circle:hover {
    border-color: var(--hoa-red-deep, #7d2b3b) !important;
    background: var(--hoa-red-soft, #f9e7eb) !important;
    color: var(--hoa-red-deep, #7d2b3b) !important;
}

dialog .modal-close-circle:focus-visible {
    outline: 2px solid var(--hoa-red-dark, #8d354a);
    outline-offset: 3px;
}

.modal-dialog-close-form {
    display: flex;
    flex: 0 0 auto;
    margin: 0;
}