.form-container {
    max-width: 500px;
    margin: 45px auto;
    padding: 35px;
    background: #fff;
    border: 1px solid #e0e6e1;
    border-radius: 12px;
}

.wide-form {
    max-width: 800px;
}

.form-container h1 {
    margin-top: 0;
    font-size: 28px;
}

.form-container p {
    line-height: 1.8;
    color: #657269;
}

.form-container label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-container input:not([type="checkbox"]):not([type="hidden"]),
.form-container select,
.form-container textarea {
    width: 100%;
    padding: 13px;
    border: 1px solid #d6ded8;
    border-radius: 6px;
    font: inherit;
}

.form-container input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #28734d;
}

.form-button {
    width: 100%;
    background: #28734d;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.form-property {
    background: #f1f6f2;
    border: 1px solid #dbe8de;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.form-property h2 {
    font-size: 21px;
}

.form-container a {
    color: #28734d;
    font-weight: 600;
}

.helptext {
    display: block;
    color: #78817b;
    font-size: 12px;
}

.errorlist {
    color: #b42318;
    font-size: 13px;
}

@media (max-width: 700px) {
    .form-container {
        margin: 20px 15px;
        padding: 20px;
    }
}

.form-container form > div {
    margin-bottom: 18px;
}

.form-container form h2 {
    border-bottom: 1px solid #dfe6e1;
    padding-bottom: 12px;
    margin-top: 32px;
    font-size: 20px;
}

.interest-notice {
    background: #edf6ef;
    border-left: 4px solid #28734d;
    padding: 20px;
    border-radius: 6px;
    margin: 20px 0;
}

.interest-notice h2 {
    color: #28734d;
}


/* Email authentication */

.email-waiting {
    text-align: center;
    padding: 30px 15px;
}

.auth-spinner {
    width: 44px;
    height: 44px;
    margin: 10px auto 25px;
    border: 4px solid #e5e7eb;
    border-top-color: #28734d;
    border-radius: 50%;
    animation: auth-spin 1s linear infinite;
}

@keyframes auth-spin {
    to {
        transform: rotate(360deg);
    }
}

.auth-success-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin: 10px auto 25px;
    background: #e8f5ed;
    color: #28734d;
    font-size: 36px;
    border-radius: 50%;
}

.email-waiting p {
    line-height: 1.8;
}

.email-waiting .form-button {
    margin-top: 20px;
}

.auth-return-notice {
    margin-top: 25px;
    padding: 20px;
    background: #f0f7f2;
    border: 1px solid #cce3d3;
    border-radius: 8px;
    color: #28734d;
    text-align: center;
}

.auth-return-notice p {
    margin: 10px 0 0;
    font-size: 14px;
}


/* Owner management dashboard */

.owner-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 13px 0;
    border-bottom: 1px solid #dbe5dd;
    font-size: 14px;
}

.owner-info-row:last-child {
    border-bottom: none;
}

.owner-info-row > span {
    color: #657269;
}

.owner-verified-label,
.owner-status-verified {
    color: #28734d;
    font-weight: 600;
}

.owner-status-pending,
.owner-status-review {
    color: #a16b13;
}

.owner-status-rejected {
    color: #b42318;
}

.owner-menu-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px;
    border: 1px solid #dbe5dd;
    border-radius: 8px;
    text-decoration: none;
    transition: background .15s;
}

.owner-menu-card:hover {
    background: #f1f6f2;
}

.owner-menu-card strong {
    display: block;
    font-size: 17px;
    margin-bottom: 7px;
}

.owner-menu-card div > span {
    display: block;
    font-size: 13px;
    color: #657269;
    font-weight: 400;
}

.owner-menu-arrow {
    font-size: 28px;
}

.owner-management-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #dbe5dd;
}

.owner-verification-notice {
    background: #f1f6f2;
    border-radius: 8px;
    padding: 20px;
}

.owner-verification-notice p {
    margin-bottom: 0;
}

.form-container .owner-button-link {
    display: block;
    box-sizing: border-box;
    text-align: center;
    color: white;
    text-decoration: none;
}

.owner-bottom-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #dbe5dd;
}

.owner-readonly-value {
    padding: 14px;
    background: #f1f4f2;
    border: 1px solid #dbe5dd;
    border-radius: 6px;
    overflow-wrap: anywhere;
}

.owner-readonly-value span {
    display: inline-block;
    margin-left: 10px;
    font-size: 12px;
}

.owner-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
}

.owner-checkbox label {
    margin: 0;
    cursor: pointer;
}

.form-container input:disabled,
.form-container select:disabled {
    background: #f0f2f0;
    color: #78817b;
    cursor: not-allowed;
}

.form-container input,
.form-container select,
.form-container textarea {
    box-sizing: border-box;
}


/* Owner dashboard statistics */

.owner-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 22px 0;
}

.owner-dashboard-stat {
    display: block;
    padding: 20px;
    background: #f5f8f5;
    border: 1px solid #dce5de;
    border-radius: 8px;
    text-decoration: none;
}

.owner-dashboard-stat span {
    display: block;
    color: #657269;
    font-size: 13px;
    margin-bottom: 8px;
}

.owner-dashboard-stat strong {
    display: block;
    color: #28734d;
    font-size: 30px;
}

a.owner-dashboard-stat:hover {
    background: #eaf3ec;
    border-color: #28734d;
}


/* Ownership registration quota */

.ownership-quota {
    margin: 22px 0;
    padding: 22px;
    background: #f7faf7;
    border: 1px solid #dce5de;
    border-radius: 8px;
}

.ownership-quota-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 22px;
}

.ownership-quota-stats > div {
    padding: 15px 10px;
    text-align: center;
    background: #fff;
    border: 1px solid #e2e8e2;
    border-radius: 6px;
}

.ownership-quota-stats span {
    display: block;
    font-size: 12px;
    color: #657269;
    margin-bottom: 10px;
}

.ownership-quota-stats strong {
    display: block;
    font-size: 26px;
    color: #28734d;
}

.ownership-quota-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 14px;
}

.ownership-quota-track {
    height: 9px;
    background: #dfe7df;
    border-radius: 10px;
    overflow: hidden;
}

.ownership-quota-progress {
    height: 100%;
    background: #28734d;
    border-radius: 10px;
}

.ownership-quota-available {
    color: #28734d;
    font-weight: 600;
}

.ownership-quota-warning {
    color: #b54708;
    font-weight: 600;
}

.ownership-quota small {
    display: block;
    color: #657269;
    line-height: 1.7;
}

@media (max-width: 600px) {

    .ownership-quota {
        padding: 15px;
    }

    .ownership-quota-stats {
        gap: 6px;
    }

    .ownership-quota-stats strong {
        font-size: 22px;
    }

    .ownership-quota-stats span {
        font-size: 11px;
    }
}

/* Ownership transfer */

.transfer-menu {
    margin: 20px 0;
    border: 1px solid #bcd8c5;
    background: #f4faf6;
}

.transfer-property {
    padding: 18px;
    margin: 12px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
}

.transfer-choice {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    cursor: pointer;
}

.transfer-choice input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    flex-shrink: 0;
    accent-color: #28734d;
}

.transfer-choice strong {
    font-size: 16px;
}

.transfer-choice p {
    margin: 7px 0;
    font-size: 13px;
    color: #666;
}

.transfer-choice .transfer-conflict {
    color: #b45309;
}

