.ears-membership,
.ears-print-form,
.ears-notice {
    max-width: 880px;
    margin: 24px auto;
    color: #263341;
    font-family: inherit;
}

.ears-membership-form {
    display: grid;
    gap: 28px;
    padding: 42px;
    background: #fff;
    border-top: 6px solid #6f879f;
    box-shadow: 0 14px 32px rgba(38, 51, 65, 0.08);
}

.ears-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.ears-field {
    display: grid;
    gap: 6px;
    font-weight: 600;
}

.ears-field small {
    color: #6c7782;
    font-weight: 400;
}

.ears-field input,
.ears-field select,
.ears-field textarea {
    width: 100%;
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid #c9d0d6;
    border-radius: 2px;
    background: #fff;
    color: #263341;
    font: inherit;
}

.ears-field textarea {
    min-height: 130px;
    resize: vertical;
}

.ears-form-header {
    display: flex;
    gap: 34px;
    align-items: center;
    padding-bottom: 32px;
    border-bottom: 1px solid #e0e5e9;
}

.ears-form-header img {
    max-width: 190px;
    height: auto;
}

.ears-form-header h2 {
    margin: 0;
    color: #263341;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 500;
    letter-spacing: 0;
}

.ears-form-header p {
    margin: 4px 0 0;
    color: #6c7782;
    font-size: 1.2rem;
}

.ears-form-mark {
    max-width: 190px;
    color: #263341;
    font-family: Georgia, serif;
    font-size: 1.8rem;
    line-height: 1;
}

.ears-options {
    display: grid;
    gap: 10px;
    padding: 0;
    border: 0;
}

.ears-options label {
    display: flex;
    gap: 8px;
    align-items: center;
    font-weight: 500;
}

.ears-options legend {
    margin-bottom: 8px;
    color: #263341;
    font-weight: 700;
}

.ears-check-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 28px;
}

.ears-rate-box {
    color: #4f5963;
    line-height: 1.6;
    font-weight: 600;
}

.ears-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.ears-actions .button,
.ears-print-button {
    min-height: 48px;
    padding: 12px 24px;
    border: 0;
    border-radius: 2px;
    background: #2f4965;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.ears-actions .button-primary {
    background: #c93428;
}

.ears-payment-notice {
    max-width: 720px;
    color: #d63638;
    font-weight: 700;
    line-height: 1.6;
}

.ears-status,
.ears-notice {
    padding: 14px 16px;
    border-left: 4px solid #6f879f;
    background: #f6f8fa;
}

.ears-status span {
    display: inline-block;
    margin-left: 12px;
}

.ears-status-expired,
.ears-status-missing {
    border-left-color: #b32d2e;
}

.ears-status-grace {
    border-left-color: #dba617;
}

.ears-print-form {
    color: #111;
}

.ears-print-form table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.ears-print-form th,
.ears-print-form td {
    padding: 10px;
    border: 1px solid #777;
    text-align: left;
    vertical-align: top;
}

.ears-print-form th {
    width: 220px;
    background: #f1f3f5;
}

.ears-mailing-address pre {
    padding: 12px;
    background: #f6f7f7;
    border: 1px solid #ccd2d8;
    white-space: pre-wrap;
}

@media (max-width: 700px) {
    .ears-grid {
        grid-template-columns: 1fr;
    }

    .ears-membership-form {
        padding: 24px;
    }

    .ears-form-header {
        display: grid;
        gap: 18px;
    }

    .ears-check-grid {
        grid-template-columns: 1fr;
    }

    .ears-status span {
        display: block;
        margin: 6px 0 0;
    }
}

@media print {
    header,
    footer,
    nav,
    .ears-print-button,
    .admin-bar {
        display: none !important;
    }

    .ears-print-form {
        max-width: none;
        margin: 0;
    }
}
