/* Shared styles for Personal Rate Scan inner pages (footer/legal pages). Colors match index.html. */
body {
    margin: 0;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    background: #FBFAF6;
    color: #0D2C2D;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    color: #1F6263;
}

a:hover {
    color: #174B4C;
}

img {
    vertical-align: middle;
    max-width: 100%;
}

em {
    color: #B8460A;
}

h1, h2, h3, h4 {
    color: #174B4C;
    font-weight: 800;
}

/* Header */
.prs-hdr {
    height: 79px;
    box-sizing: border-box;
    padding: 8px 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid #E1E9E6;
    background: #FBFAF6;
}

.prs-logo {
    height: 30px;
    width: auto;
    display: block;
}

.prs-cta {
    height: 48px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    border-radius: 12px;
    background: #D7520A;
    color: #ffffff !important;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background .15s ease;
}

.prs-cta:hover {
    background: #B8460A;
}

/* Page content */
.prs-main {
    flex-grow: 1;
    padding: 24px 0 64px;
    font-size: 17px;
    line-height: 1.6;
    word-break: break-word;
    word-wrap: break-word;
}

.prs-main .container {
    max-width: 1080px;
}

/* Footer */
.prs-foot {
    padding: 48px 80px;
    background: #0D2C2D;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.prs-foot-logo {
    height: 26px;
    width: auto;
    max-width: 100%;
    display: block;
    align-self: flex-start;
}

.prs-foot-links {
    display: flex;
    flex-wrap: wrap;
    column-gap: 28px;
    row-gap: 12px;
    font-size: 15px;
    font-weight: 600;
}

.prs-foot-links a {
    color: #DCE6E2;
    text-decoration: none;
}

.prs-foot-links a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.prs-foot-legal {
    padding-top: 24px;
    border-top: 1px solid #2A4A4A;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 1080px;
}

.prs-foot-legal p {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: #B7C8C3;
}

.prs-foot-legal .prs-foot-address {
    font-size: 14px;
    font-weight: 600;
    color: #DCE6E2;
}

/* Contact form */
.form-card-wrapper {
    max-width: 640px;
    margin-top: 24px;
}

.card-shadow {
    border: 1px solid #E1E9E6;
    border-radius: 22px;
    box-shadow: 0 12px 32px rgba(13, 44, 45, 0.08);
}

.card-shadow .card-body {
    padding: 32px;
    position: relative;
}

.input-form-wrapper .loading {
    display: none;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
}

.sending-contact .loading {
    display: block;
}

.sending-contact form {
    opacity: .4;
    pointer-events: none;
}

.input-shadow {
    height: auto;
    padding: 14px 18px;
    border: 2px solid #8FB0A6;
    border-radius: 14px;
    font-family: inherit;
}

.input-shadow:focus,
.prs-main .form-control:focus {
    border-color: #E89528;
    box-shadow: inset 0 0 0 1px #E89528;
}

.submit-button,
.prs-main .btn-primary {
    padding: 14px 32px;
    border: 0;
    border-radius: 14px;
    background: #D7520A;
    color: #ffffff;
    font-weight: 700;
}

.submit-button:hover,
.prs-main .btn-primary:hover {
    background: #B8460A;
    color: #ffffff;
}

.alert.hide {
    display: none;
}

.alert-error {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.has-error {
    border-color: #B8460A !important;
}

/* CCPA opt-out */
.california-privacy-right h1 {
    margin-bottom: 25px;
    font-size: 40px;
    line-height: 46px;
}

.california-privacy-right .opt-out-form-wrapper label {
    font-weight: bold;
}

.option-input-group {
    margin-top: 10px;
    position: relative;
}

.option-input-group input[type='radio'],
.option-input-group input[type='checkbox'] {
    opacity: 0;
    width: 0;
    height: 0;
    display: none;
}

.option-input-group input[type='radio'] + label {
    padding: 10px 20px;
    color: #174B4C;
    margin: 0 15px 15px 0;
    border: 2px solid #8FB0A6;
    border-radius: 12px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    display: inline-block;
    cursor: pointer;
}

.option-input-group input[type='radio'] + label:hover,
.option-input-group input[type='radio']:checked + label {
    background: #174B4C;
    border-color: #174B4C;
    color: #fff;
}

.hide-options {
    display: none;
}

@media (max-width: 1100px) {
    .prs-hdr, .prs-foot {
        padding-left: 40px;
        padding-right: 40px;
    }
}

@media (max-width: 640px) {
    .prs-hdr, .prs-foot {
        padding-left: 20px;
        padding-right: 20px;
    }

    .prs-hdr {
        height: 64px;
    }

    .prs-logo {
        height: 20px;
    }

    .prs-cta {
        height: 44px;
        padding: 0 16px;
        font-size: 15px;
    }

    .prs-foot {
        padding-top: 40px;
        padding-bottom: 40px;
        gap: 24px;
    }

    .prs-foot-links {
        column-gap: 20px;
        font-size: 14px;
    }

    .california-privacy-right h1 {
        font-size: 30px;
        line-height: 36px;
    }
}
