:root {
    --blue-dark: #102a43;
    --blue: #173f5f;
    --blue-light: #1f5f8b;

    --black: #0b0f14;

    --gray-light: #eef1f4;
    --gray: #c9d0d7;
    --gray-dark: #68737d;

    --white: #ffffff;

    --danger: #a83232;
    --success: #2f6f4e;
}


/*
|--------------------------------------------------------------------------
| Base
|--------------------------------------------------------------------------
*/

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--black);
    color: var(--black);
}


/*
|--------------------------------------------------------------------------
| Page
|--------------------------------------------------------------------------
*/
.page {
    display: flex;
    justify-content: center;
    align-items: flex-start;

    padding: 20px;

    background:
        linear-gradient(
            135deg,
            var(--black) 0%,
            #111b26 45%,
            var(--blue-dark) 100%
        );
}

/*
|--------------------------------------------------------------------------
| Main Card
|--------------------------------------------------------------------------
*/

.card {
    width: 100%;
    max-width: 520px;

    background: var(--white);

    border-radius: 8px;
    overflow: hidden;

    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.45);
}


/*
|--------------------------------------------------------------------------
| Header
|--------------------------------------------------------------------------
*/

.header-top {
    background: var(--blue-dark);
    color: var(--white);
    padding: 5px;
    text-align: center;
}

.header-top {
    background: var(--blue-dark);
    color: var(--white);
    padding: 28px 32px;
    text-align: center;
}

.logo {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 1px;

    margin-bottom: 6px;
}

.subtitle {
    font-size: 14px;
    color: #cbd7e2;
}


/*
|--------------------------------------------------------------------------
| Content
|--------------------------------------------------------------------------
*/

.content {
    padding: 32px;
    background: var(--gray-light);
}


/*
|--------------------------------------------------------------------------
| Notice
|--------------------------------------------------------------------------
*/

.notice {
    background: var(--white);

    border-left: 4px solid var(--blue);

    padding: 18px 20px;
    margin-bottom: 28px;

    line-height: 1.55;
    font-size: 14px;
}

.notice strong {
    display: block;

    color: var(--blue-dark);

    margin-bottom: 7px;

    font-size: 15px;
}


/*
|--------------------------------------------------------------------------
| Forms
|--------------------------------------------------------------------------
*/

.form-group {
    margin-bottom: 18px;
}

.form-row {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 15px;
}

label {
    display: block;

    margin-bottom: 7px;

    font-size: 13px;
    font-weight: 700;

    color: var(--blue-dark);
}

input[type="text"],
input[type="email"],
input[type="password"] {
width: 100%;
height: 46px;

padding: 0 13px;


border: 1px solid var(--gray);
border-radius: 4px;


background: var(--white);
color: var(--black);


font-size: 15px;


outline: none;


transition:
    border-color 0.2s,
    box-shadow 0.2s;

}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
border-color: var(--blue-light);

box-shadow:
    0 0 0 3px rgba(31, 95, 139, 0.12);

}


/*
|--------------------------------------------------------------------------
| Honeypot
|--------------------------------------------------------------------------
*/

.honeypot {
    position: absolute;

    left: -9999px;

    width: 1px;
    height: 1px;

    overflow: hidden;
}


/*
|--------------------------------------------------------------------------
| Buttons
|--------------------------------------------------------------------------
*/

.button {
    width: 100%;
    height: 48px;

    border: 0;
    border-radius: 4px;

    background: var(--blue);
    color: var(--white);

    font-size: 15px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.2s,
        opacity 0.2s;
}

.button:hover:not(:disabled) {
    background: var(--blue-light);
}

.button:disabled {
    background: #9da6ad;

    cursor: not-allowed;

    opacity: 0.7;
}


/*
|--------------------------------------------------------------------------
| Messages
|--------------------------------------------------------------------------
*/

.message {
    display: none;

    margin-top: 20px;

    padding: 15px 17px;

    border-radius: 4px;

    font-size: 14px;
    line-height: 1.5;
}

.message.error {
    display: block;

    background: #f7e8e8;

    border: 1px solid #dfb5b5;

    color: var(--danger);
}

.message.success {
    display: block;

    background: #e8f2ec;

    border: 1px solid #b8d3c2;

    color: var(--success);
}


/*
|--------------------------------------------------------------------------
| Verification
|--------------------------------------------------------------------------
*/

.verification {
    display: none;

    text-align: center;

    padding: 20px 0 5px;
}

.spinner {
    width: 52px;
    height: 52px;

    margin: 0 auto 15px;

    border: 5px solid #d5dce2;

    border-top-color: var(--blue);

    border-radius: 50%;

    animation: spin 0.9s linear infinite;
}

.verifying-text {
    color: var(--blue-dark);

    font-size: 14px;
    font-weight: 700;

    letter-spacing: 1px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


/*
|--------------------------------------------------------------------------
| Footer
|--------------------------------------------------------------------------
*/

.footer {
    padding: 16px 25px;

    text-align: center;

    background: var(--white);

    border-top: 1px solid #dce1e5;

    color: var(--gray-dark);

    font-size: 11px;
}


/*
|--------------------------------------------------------------------------
| Mobile
|--------------------------------------------------------------------------
*/

@media (max-width: 600px) {

    .page {
        padding: 15px;

        align-items: flex-start;
    }

    .card {
        margin-top: 20px;
    }

    .content {
        padding: 24px 20px;
    }

    .header {
        padding: 24px 20px;
    }

    .form-row {
        grid-template-columns: 1fr;

        gap: 0;
    }
}

/* ============================================================
   WORK PAGE - CENTERED CONTENT
   ============================================================ */

.work-heading {
    text-align: center;
}

.work-welcome {
    text-align: center;
    margin-bottom: 5px;
}

.work-title {
    text-align: center;
    font-size: 12px;
    margin-bottom: 15px;
}

.work-region {
    text-align: center;
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 15px;
}


/* ============================================================
   REGION
   ============================================================ */

.region-section {
    text-align: center;
    margin-bottom: 30px;
}

.section-title {
    text-align: center;
}


/* ============================================================
   REQUEST SECTION
   ============================================================ */

.request-section {
    text-align: center;
    border-top: 1px solid #dce1e5;
    padding-top: 25px;
}

.request-section h2 {
    text-align: center;
    margin-top: 0;
    color: var(--blue-dark);
    font-size: 20px;
}


/* ============================================================
   REQUEST OPTIONS
   ============================================================ */

.request-options {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 20px 0;
    text-align: center;
}

.request-option {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    background: #f4f6f8;
    border: 1px solid #dce1e5;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
}


/* ============================================================
   REQUEST DETAIL
   ============================================================ */

.request-detail {
    margin-top: 20px;
    padding: 20px;
    background: #f7f8f9;
    border: 1px solid #dce1e5;
    border-radius: 5px;
    text-align: center;
}

.request-detail h3 {
    margin-top: 0;
    color: var(--blue-dark);
    text-align: center;
}

.request-detail p {
    text-align: center;
}


/* ============================================================
   PRECINCT SELECT
   ============================================================ */

.request-detail .form-group {
    text-align: center;
}

.request-detail .form-group label {
    display: block;
    text-align: center;
    margin-bottom: 6px;
}

.request-detail select {
    width: 100%;
    padding: 11px;
    border: 1px solid #c9d0d6;
    border-radius: 4px;
    background: #fff;
    font-size: 14px;
    text-align: center;
}


/* ============================================================
   CUSTOM NOTICE
   ============================================================ */

.custom-notice {
    padding: 15px;
    margin-bottom: 20px;
    background: #eef2f5;
    border-left: 4px solid var(--blue);
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
}

.custom-notice p {
    text-align: center;
    margin-bottom: 10px;
}

.custom-notice p:last-child {
    margin-bottom: 0;
}


/* ============================================================
   AGREEMENT
   ============================================================ */

.agreement {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 13px;
    line-height: 1.4;
    cursor: pointer;
    text-align: center;
}


/* ============================================================
   CUSTOM REQUEST
   ============================================================ */

.request-detail textarea {
    width: 100%;
    min-height: 160px;
    padding: 12px;
    box-sizing: border-box;
    resize: vertical;
    border: 1px solid #c9d0d6;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    text-align: left;
}

.character-count {
    text-align: right;
}


/* ============================================================
   BUTTONS
   ============================================================ */

.request-detail .button {
    display: block;
    margin: 15px auto 0;
}


/* ============================================================
   THANK YOU
   ============================================================ */

.thank-you {
    text-align: center;
}

/* ============================================================
   VOTER TYPE
   ============================================================ */

.voter-type-options {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 15px 0 25px;
}

.voter-type-option {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 14px;
}

.voter-type-option input {
    margin: 0;
}

.error-page {
    text-align: center;
}

.error-image {
    margin: 10px auto 25px;
}

.error-image img {
    display: block;
    max-width: 250px;
    width: 100%;
    height: auto;
    margin: 0 auto;
}

.error-message h1 {
    margin-bottom: 15px;
}

.error-message p {
    margin: 8px 0;
}

.error-actions {
    margin-top: 30px;
}

.section-title-county {
    padding-bottom: 12px;
}

/* --------------------------------------------------------------------------
   HEADER NAV
   -------------------------------------------------------------------------- */

.header-nav {
    background: #333333;
    padding: 10px 20px;
    text-align: right;
}


.nav-register {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
}


.nav-register:hover {
    color: #e8ffff;
    text-decoration: underline;
}

.contact {
    color: #333333;
    text-decoration: none;
    font-weight: 600;
}

 /*                                                                         |
| -------------------------------------------------------------------------- |
| CONTACT FORM BUTTONS                                                       |
| -------------------------------------------------------------------------- |
| */                                                                         

#contactForm .button {


display: inline-flex;

align-items: center;

justify-content: center;

text-align: center;

text-decoration: none;

line-height: 1;

min-height: 42px;

padding: 10px 20px;

box-sizing: border-box;


}

 /*                                                                         
| -------------------------------------------------------------------------- |
| CONTACT FORM BUTTON ROW                                                    |
| -------------------------------------------------------------------------- |
| */                                                                         

#contactForm .button-row {


display: flex;

justify-content: space-between;

align-items: center;

width: 100%;

padding-top: 12px;


}

/* ============================================================
   REGISTER FORM - SELECT DROPDOWN
   ============================================================ */

.form-group select {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 42px 12px 14px;

    font-family: inherit;
    font-size: 16px;
    line-height: 1.4;

    color: #222;
    background-color: #fff;

    border: 1px solid #bbb;
    border-radius: 5px;

    cursor: pointer;

    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    background-image:
        linear-gradient(45deg, transparent 50%, #555 50%),
        linear-gradient(135deg, #555 50%, transparent 50%);
    background-position:
        calc(100% - 18px) 50%,
        calc(100% - 12px) 50%;
    background-size:
        6px 6px,
        6px 6px;
    background-repeat: no-repeat;

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}


.form-group select:hover {
    border-color: #888;
}


.form-group select:focus {
    outline: none;
    border-color: #555;

    box-shadow:
        0 0 0 3px rgba(0, 0, 0, 0.08);
}


.form-group select option {
    font-size: 16px;
    padding: 8px;
}

/* ============================================================
   HEADER LOGO LINK
   ============================================================ */

.logo a {
    color: #ffffff;
    text-decoration: none;
    font-weight: inherit;
}


.logo a:hover {
    color: #ffffff;
    text-decoration: none;
}


.logo a:visited {
    color: #ffffff;
}


.logo a:focus {
    color: #ffffff;
    text-decoration: none;
    outline: none;
}


/* Slightly more interactive */

.logo a {
    transition: opacity 0.15s ease;
}


.logo a:hover {
    opacity: 0.85;
}

