﻿/* overall content rhythm */
.rc-payment-shell {
    max-width: 980px;
}

/* section labels */
.cert-section-label {
    display: block;
    margin-bottom: 0.6rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: #102a43;
    line-height: 1.35;
}

/* validation */
.cert-validation-summary {
    margin: 0 0 1rem 0;
    padding: 0.85rem 1rem;
    border: 1px solid #d9534f;
    background: #fff5f5;
    color: #b22222;
    font-weight: 600;
}

    .cert-validation-summary ul {
        margin: 0.5rem 0 0 1.25rem;
        padding: 0;
    }

.cert-validator {
    display: block;
    margin-top: 0.35rem;
    color: #c41230;
    font-weight: 700;
    line-height: 1.35;
}

/* intro copy */
.cert-intro {
    margin-top: 0.5rem;
    margin-bottom: 1.35rem;
}

.cert-charge {
    margin-bottom: 1rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #111;
}

.cert-copy {
    margin-bottom: 0.95rem;
    line-height: 1.6;
    font-size: 1rem;
    color: #111;
}

.cert-warning {
    margin-top: 1rem;
    margin-bottom: 1.4rem;
    line-height: 1.45;
    font-size: 1rem;
    font-weight: 700;
    color: #c41230;
}

    .cert-warning a {
        color: #1a5fb4;
        font-weight: 700;
    }

/* jurisdiction + payment choice */
.cert-change-link-row {
    margin-bottom: 0.9rem;
}

    .cert-change-link-row a {
        font-weight: 600;
    }

.cert-payment-choice-row {
    margin-bottom: 1rem;
}

.cert-payment-type {
    min-width: 175px;
    margin-left: 0.4rem;
}

.rc-jurisdiction-group {
    margin-top: 0.4rem;
    margin-bottom: 1.2rem;
}

    .rc-jurisdiction-group .ap-label {
        display: block;
        margin-bottom: 0.55rem;
        font-size: 1.1rem;
        font-weight: 700;
        color: #102a43;
    }

.ap-input-wide,
.cert-jurisdiction-input {
    width: 560px;
    max-width: 100%;
    min-height: 34px;
    padding: 0.35rem 0.5rem;
    box-sizing: border-box;
}

/* payment heading / buttons */
.ap-payment-method-section {
    margin-top: 0.25rem;
    margin-bottom: 1rem;
}

    .ap-payment-method-section .ap-section-title,
    .cert-payment-heading {
        font-size: 1rem;
        font-weight: 700;
        color: #111;
        margin-bottom: 0.45rem;
    }

.ap-payment-button-row {
    margin-bottom: 0.5rem;
}

/* active payment panels */
.rc-prepaid-panel,
.ap-cc-panel {
    margin-top: 1.25rem;
    padding-top: 0.75rem;
    border-top: 1px solid #d9d9d9;
}
.rc-cc-panel,
.rc-prepaid-panel {
    transition: opacity 0.25s ease-in-out;
}
    /* prepaid section */
    .rc-prepaid-panel .ap-section-title {
        margin-bottom: 0.55rem;
        font-size: 1rem;
        font-weight: 400;
        color: #111;
    }

    .rc-prepaid-panel .ap-note {
        margin-bottom: 0.7rem;
        line-height: 1.5;
    }

    .rc-prepaid-panel .ap-form-grid {
        margin-top: 0.75rem;
        margin-bottom: 0.9rem;
    }

        .rc-prepaid-panel .ap-form-grid .ap-form-row {
            display: grid;
            grid-template-columns: 180px 220px;
            align-items: center;
            gap: 0.45rem 1rem;
        }

        .rc-prepaid-panel .ap-form-grid .ap-label {
            margin: 0;
            font-size: 1rem;
            font-weight: 400;
            color: #111;
            text-align: left;
        }

        .rc-prepaid-panel .ap-form-grid .ap-input {
            width: 190px;
            max-width: 100%;
            min-height: 30px;
            padding: 0.25rem 0.4rem;
            box-sizing: border-box;
        }

    .rc-prepaid-panel .ap-input-small {
        width: 190px;
        max-width: 100%;
        min-height: 30px;
        padding: 0.25rem 0.4rem;
        box-sizing: border-box;
    }

    .rc-prepaid-panel .ap-note-warning {
        margin-top: 0.5rem;
        margin-bottom: 0.7rem;
        line-height: 1.45;
        font-size: 0.98rem;
        color: #111;
    }

        .rc-prepaid-panel .ap-note-warning strong {
            font-weight: 700;
        }

    /* optional: general card panel spacing */
    .ap-cc-panel .form-section {
        margin-bottom: 1.25rem;
    }

    .ap-cc-panel .form-group {
        margin-bottom: 0.85rem;
    }

    .ap-cc-panel .validator {
        display: block;
        margin-top: 0.3rem;
        color: #c41230;
        font-weight: 700;
    }
/* credit card section */
.rc-cc-panel .ap-section-title {
    margin-bottom: 0.55rem;
    font-size: 1rem;
    font-weight: 700;
    color: #111;
}

.rc-cc-panel .ap-note {
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.rc-cc-section {
    margin-bottom: 1.25rem;
}

.rc-cc-section-title {
    margin-bottom: 0.7rem;
    font-size: 1rem;
    font-weight: 700;
    color: #111;
}

.rc-cc-grid {
    margin-top: 0.4rem;
    margin-bottom: 0.9rem;
}

.rc-cc-row {
    display: grid;
    grid-template-columns: 180px 240px;
    align-items: start;
    gap: 0.45rem 1rem;
    margin-bottom: 0.75rem;
}

    .rc-cc-row .ap-label {
        margin: 0;
        font-size: 1rem;
        font-weight: 400;
        color: #111;
        text-align: left;
    }

.rc-cc-input-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.rc-cc-panel .ap-input {
    max-width: 100%;
    min-height: 30px;
    padding: 0.25rem 0.4rem;
    box-sizing: border-box;
}

.rc-cc-panel .ap-input-medium {
    width: 220px;
}

.rc-cc-panel .ap-input-small {
    width: 120px;
}

.rc-cc-panel .validator {
    display: block;
    margin-top: 0.25rem;
    color: #c41230;
    font-weight: 700;
    line-height: 1.35;
}

.rc-cc-panel .pay-error {
    margin: 0.75rem 0 1rem;
    padding: 0.75rem 1rem;
    border: 1px solid #d9534f;
    background: #fff5f5;
    color: #b22222;
    font-weight: 600;
}

@media (max-width: 700px) {
    .rc-cc-row {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .rc-cc-panel .ap-input-medium,
    .rc-cc-panel .ap-input-small {
        width: 100%;
    }
}

/* responsive */
@media (max-width: 700px) {
    .cert-jurisdiction-input,
    .ap-input-wide {
        width: 100%;
    }

    .rc-prepaid-panel .ap-form-grid .ap-form-row {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .rc-prepaid-panel .ap-form-grid .ap-input,
    .rc-prepaid-panel .ap-input-small {
        width: 100%;
    }
}
