.shp-form-row {
    margin-bottom: 20px;
}

.shp-form-row label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.shp-form-row input[type="text"],
.shp-form-row input[type="email"],
.shp-form-row input[type="tel"],
.shp-form-row input[type="date"],
.shp-form-row input[type="number"],
.shp-form-row textarea,
.shp-form-row select {
    width: 100%;
    max-width: 500px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.shp-form-row input[type="file"] {
    margin-bottom: 10px;
}

.shp-submit-button,
.shp-sign-button {
    background: #0073aa;
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.shp-submit-button:hover,
.shp-sign-button:hover {
    background: #005a87;
}

.shp-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 4px;
    display: none;
}

.shp-message.show {
    display: block;
}

.shp-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.shp-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.shp-dashboard-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.shp-dashboard-sections {
    display: grid;
    gap: 30px;
}

.shp-section {
    background: #fff;
    padding: 25px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.shp-section h2 {
    margin-top: 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
}

.shp-applications-list {
    display: grid;
    gap: 20px;
}

.shp-application-card {
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #f9f9f9;
}

.shp-application-card h3 {
    margin-top: 0;
}

.shp-application-actions {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.shp-application-actions h4 {
    margin-bottom: 15px;
}

.shp-document-upload-form {
    margin-bottom: 15px;
    padding: 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.shp-contract-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.shp-contract-acceptance {
    margin-top: 15px;
    padding: 15px;
    background: #f0f8ff;
    border: 1px solid #b3d9ff;
    border-radius: 4px;
}

.shp-contract-acceptance label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: normal;
}

.shp-contract-acceptance input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.shp-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
}

.shp-status-pending {
    background: #f0b849;
    color: #fff;
}

.shp-status-approved {
    background: #46b450;
    color: #fff;
}

.shp-status-declined {
    background: #dc3232;
    color: #fff;
}

.shp-status-rejected {
    background: #dc3232;
    color: #fff;
}

.shp-status-completed {
    background: #46b450;
    color: #fff;
}

.shp-status-failed {
    background: #dc3232;
    color: #fff;
}

.shp-payments-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.shp-payments-table th,
.shp-payments-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.shp-payments-table th {
    background: #f5f5f5;
    font-weight: 600;
}

.shp-contract-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.shp-contract-details {
    background: #fff;
    padding: 30px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.shp-contract-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.shp-contract-table th,
.shp-contract-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.shp-contract-table th {
    width: 200px;
    font-weight: 600;
}

.shp-contract-terms {
    margin: 30px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 4px;
}

.shp-contract-terms h3 {
    margin-top: 0;
}

.shp-contract-signature {
    margin-top: 30px;
    padding: 20px;
    background: #f0f8ff;
    border: 1px solid #b3d9ff;
    border-radius: 4px;
}

.shp-contract-signed {
    margin-top: 30px;
    padding: 20px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    text-align: center;
}

.shp-signed-notice {
    font-size: 18px;
    color: #155724;
    margin: 0;
}

.shp-help-form {
    margin-top: 20px;
}

.shp-help-form textarea {
    width: 100%;
    max-width: 100%;
}

.shp-reservation-notice {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 15px 20px;
    margin: 15px 0;
}

.shp-reservation-notice p {
    margin: 0;
    color: #856404;
}

.shp-reservation-notice .shp-countdown {
    font-weight: 700;
    color: #d9534f;
}

.shp-reservation-expired {
    background: #f8d7da;
    border: 1px solid #dc3545;
    border-radius: 8px;
    padding: 15px 20px;
    margin: 15px 0;
}

.shp-reservation-expired p {
    margin: 0;
    color: #721c24;
}

.shp-upload-instructions {
    color: #495057;
    font-size: 14px;
    margin-bottom: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-left: 3px solid #4c6fff;
    border-radius: 4px;
}

.shp-documents-approved {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 15px 20px;
    margin: 15px 0;
}

.shp-documents-approved p {
    margin: 0;
    color: #155724;
}

.shp-uploaded-indicator {
    color: #28a745;
    font-weight: 600;
    display: block;
    margin-top: 5px;
}

.shp-upload-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 4px;
    display: none;
}

.shp-upload-message.show {
    display: block;
}

.shp-upload-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.shp-upload-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.shp-contract-pending {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.shp-contract-pending h4 {
    margin-top: 0;
    color: #856404;
}

.shp-contract-pending p {
    margin: 0;
    color: #856404;
}

.shp-housing-list-wrapper {
    position: relative;
    margin: 40px auto 80px;
    max-width: 1200px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(76, 111, 255, 0.08), rgba(255, 255, 255, 0.65));
    border-radius: 24px;
}

.shp-housing-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 25px;
    margin-bottom: 30px;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(15, 45, 75, 0.08);
}

.shp-filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.shp-filter-group label {
    font-weight: 600;
    color: #2b2e3a;
    font-size: 14px;
    letter-spacing: 0.3px;
}

.shp-filter-group input,
.shp-filter-group select {
    border: 1px solid #dfe3eb;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 14px;
    background: #f8f9fc;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.shp-filter-group input:focus,
.shp-filter-group select:focus {
    border-color: #4c6fff;
    box-shadow: 0 0 0 3px rgba(76, 111, 255, 0.15);
    outline: none;
    background: #fff;
}

.shp-filter-actions {
    display: flex;
    align-items: flex-end;
    gap: 12px;
}

.shp-housing-grid {
    display: grid;
    gap: 30px;
}

.shp-housing-grid.columns-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.shp-housing-grid.columns-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.shp-housing-grid.columns-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 991px) {
    .shp-housing-grid.columns-3,
    .shp-housing-grid.columns-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .shp-housing-grid,
    .shp-housing-grid.columns-2,
    .shp-housing-grid.columns-3,
    .shp-housing-grid.columns-4 {
        grid-template-columns: 1fr;
    }

    .shp-housing-filters {
        grid-template-columns: 1fr;
    }
}

.shp-housing-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(15, 45, 75, 0.14);
    transition: transform 0.32s ease, box-shadow 0.32s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.shp-housing-card:before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(76, 111, 255, 0.08), rgba(249, 250, 255, 0.82));
    opacity: 0;
    transition: opacity 0.32s ease;
    z-index: 0;
}

.shp-housing-card > * {
    position: relative;
    z-index: 1;
}

.shp-housing-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 36px 70px rgba(15, 45, 75, 0.22);
}

.shp-housing-card:hover:before {
    opacity: 1;
}

.shp-housing-media {
    position: relative;
    overflow: hidden;
}

.shp-housing-thumbnail {
    display: block;
    padding-top: 66%;
    position: relative;
}

.shp-housing-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.shp-housing-card:hover .shp-housing-thumbnail img {
    transform: scale(1.05);
}

.shp-housing-thumbnail.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #dee4f1, #f3f6fb);
    min-height: 220px;
    font-weight: 600;
    color: #4c5464;
    letter-spacing: 0.5px;
}

.shp-housing-price {
    position: absolute;
    bottom: 18px;
    left: 18px;
    padding: 10px 18px;
    background: rgba(43, 46, 58, 0.85);
    color: #fff;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.shp-housing-price small {
    font-size: 12px;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.shp-housing-content {
    padding: 24px 24px 28px;
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 18px;
}

.shp-housing-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.shp-housing-type {
    align-self: flex-start;
    padding: 6px 14px;
    background: rgba(76, 111, 255, 0.1);
    color: #4c6fff;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.4px;
}

.shp-housing-title {
    margin: 0;
    font-size: 20px;
    color: #1b1e2a;
    line-height: 1.3;
}

.shp-housing-meta {
    display: grid;
    gap: 6px;
    font-size: 14px;
    color: #434a5b;
}

.shp-housing-description {
    font-size: 14px;
    color: #61697c;
    line-height: 1.6;
}

.shp-housing-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.shp-amenity {
    padding: 6px 12px;
    background: #f1f3f8;
    border-radius: 8px;
    font-size: 13px;
    color: #495066;
    letter-spacing: 0.3px;
}

.shp-housing-actions {
    margin-top: auto;
    display: flex;
    gap: 12px;
}

.shp-housing-actions .button {
    flex: 1;
    text-align: center;
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 0.4px;
}

.shp-housing-actions .button-primary {
    background: linear-gradient(135deg, #4c6fff, #748bff);
    border: none;
}

.shp-housing-actions .button-primary:hover {
    background: linear-gradient(135deg, #425de6, #667dff);
}

.shp-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.shp-page-link a,
.shp-page-link span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border-radius: 8px;
    border: 1px solid #dfe3eb;
    color: #434a5b;
    font-weight: 600;
    transition: all 0.2s ease;
}

.shp-page-link a:hover {
    border-color: #4c6fff;
    color: #4c6fff;
}

.shp-page-link .current {
    background: #4c6fff;
    border-color: #4c6fff;
    color: #fff;
}

.shp-no-results {
    text-align: center;
    padding: 60px 30px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e5e8f0;
    color: #61697c;
    font-size: 16px;
}

body.shp-lock-scroll {
    overflow: hidden;
}

.shp-application-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.shp-application-modal.is-visible {
    display: flex;
}

.shp-application-modal .shp-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, 0.5);
    opacity: 0;
    transition: opacity 0.18s ease;
}

.shp-application-modal.is-active .shp-modal-backdrop {
    opacity: 1;
}

.shp-modal-dialog {
    position: relative;
    width: min(640px, 92%);
    background: #ffffff;
    border-radius: 18px;
    padding: 32px;
    box-shadow: 0 40px 80px rgba(15, 23, 42, 0.25);
    transform: translateY(40px) scale(0.96);
    transition: transform 0.22s ease, opacity 0.22s ease;
    opacity: 0;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.shp-application-modal.is-active .shp-modal-dialog {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.shp-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: rgba(76, 111, 255, 0.12);
    color: #4c6fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
}

.shp-modal-close:hover {
    background: rgba(76, 111, 255, 0.22);
    color: #2e46c4;
}

.shp-modal-header {
    margin-bottom: 18px;
}

.shp-modal-subtitle {
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 2px;
    color: #7a8197;
    margin: 0 0 4px;
}

.shp-modal-header h3 {
    margin: 0;
    font-size: 24px;
    color: #141a31;
}

.shp-modal-body {
    position: relative;
}

.shp-modal-body.is-loading {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shp-modal-loading {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
    color: #4c5464;
    font-size: 15px;
}

.shp-loading-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 4px solid rgba(76, 111, 255, 0.25);
    border-top-color: #4c6fff;
    animation: shp-spin 0.8s linear infinite;
}

.shp-modal-error {
    padding: 20px;
    border-radius: 10px;
    background: rgba(220, 50, 50, 0.12);
    color: #91251f;
    border: 1px solid rgba(220, 50, 50, 0.18);
    text-align: center;
    font-weight: 500;
}

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

@media (max-width: 600px) {
    .shp-modal-dialog {
        width: 94%;
        padding: 24px 18px;
        border-radius: 16px;
    }

    .shp-modal-close {
        top: 10px;
        right: 10px;
    }
}
