/* Tanah Lot Sabah Kalkulator Styles */

.tls-kalkulator-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.tls-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.tls-header h2 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 2em;
    font-weight: 400;
}

.tls-header p {
    margin: 0;
    color: #6c757d;
    font-size: 1.1em;
}

.tls-calculator-wrapper {
    display: block;
}

.tls-calculator-wrapper.has-results {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

@media (max-width: 768px) {
    .tls-calculator-wrapper.has-results {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.tls-input-section h3,
.tls-results-section h3 {
    margin: 0 0 20px 0;
    color: #495057;
    font-size: 1.3em;
    font-weight: 500;
}

.tls-form-group {
    margin-bottom: 20px;
}

.tls-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #495057;
    font-weight: 500;
    font-size: 14px;
}

.tls-form-group select,
.tls-form-group input[type="number"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    background: #fff;
}

.tls-form-group select:focus,
.tls-form-group input[type="number"]:focus {
    border-color: #007cba;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 124, 186, 0.25);
}

.tls-input-wrapper {
    position: relative;
}

.tls-currency {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-weight: 500;
    z-index: 1;
}

.tls-input-wrapper input {
    padding-left: 40px;
}

.tls-land-info {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 20px;
}

.tls-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.tls-info-item:last-child {
    margin-bottom: 0;
}

.tls-label {
    color: #6c757d;
    font-size: 14px;
}

.tls-value {
    color: #495057;
    font-weight: 600;
    font-size: 14px;
}

.tls-error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
}

.tls-buttons {
    display: flex;
    gap: 12px;
}

.tls-btn {
    flex: 1;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.tls-btn-primary {
    background: #2c3e50;
    color: white;
}

.tls-btn-primary:hover {
    background: #1a252f;
    transform: translateY(-1px);
}

.tls-btn-secondary {
    background: #6c757d;
    color: white;
}

.tls-btn-secondary:hover {
    background: #5a6268;
}

.tls-btn-download {
    background: #28a745;
    color: white;
    width: 100%;
    margin-top: 20px;
}

.tls-btn-download:hover {
    background: #218838;
}

.tls-btn-whatsapp {
    background: #25D366;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
    padding: 14px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.tls-btn-whatsapp:hover {
    background: #20BA5A;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.tls-btn-whatsapp svg {
    width: 20px;
    height: 20px;
}

.tls-results-section {
    background: #f8f9fa;
    padding: 24px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.tls-result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
}

.tls-result-item:last-child {
    border-bottom: none;
}

.tls-result-label {
    color: #6c757d;
    font-size: 14px;
}

.tls-result-value {
    color: #495057;
    font-weight: 600;
    font-size: 16px;
}

.tls-result-highlight {
    background: #e7f3ff;
    padding: 16px;
    border-radius: 6px;
    margin: 16px 0;
    border-left: 4px solid #007cba;
}

.tls-result-highlight .tls-result-value {
    color: #007cba;
    font-size: 18px;
    font-weight: 700;
}

.tls-schedule-table {
    width: 100%;
    margin-top: 20px;
    border-collapse: collapse;
    background: white;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.tls-schedule-table th,
.tls-schedule-table td {
    padding: 12px;
    text-align: right;
    border-bottom: 1px solid #e9ecef;
}

.tls-schedule-table th {
    background: #f8f9fa;
    color: #495057;
    font-weight: 600;
    font-size: 14px;
}

.tls-schedule-table th:first-child,
.tls-schedule-table td:first-child {
    text-align: center;
}

.tls-schedule-table td {
    color: #6c757d;
    font-size: 14px;
}

.tls-schedule-table tbody tr:hover {
    background: #f8f9fa;
}

/* Modal Styles */
.tls-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tls-modal-content {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.tls-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tls-modal-header h4 {
    margin: 0;
    color: #495057;
    font-size: 1.2em;
}

.tls-modal-close {
    font-size: 24px;
    cursor: pointer;
    color: #6c757d;
    line-height: 1;
}

.tls-modal-close:hover {
    color: #495057;
}

.tls-modal-body {
    padding: 24px;
}

.tls-modal-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

/* Loading State */
.tls-loading {
    opacity: 0.6;
    pointer-events: none;
}

.tls-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007cba;
    border-radius: 50%;
    animation: tls-spin 1s linear infinite;
}

@keyframes tls-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Land Selection Styles */
.tls-land-selection-section {
    margin-bottom: 40px;
}

.tls-land-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.tls-land-card {
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.tls-land-card:hover {
    border-color: #007cba;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 124, 186, 0.15);
}

.tls-land-card.selected {
    border-color: #28a745;
    box-shadow: 0 4px 20px rgba(40, 167, 69, 0.2);
}

.tls-land-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f8f9fa;
}

.tls-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #dee2e6;
}

.tls-land-details {
    padding: 20px;
}

.tls-land-name {
    margin: 0 0 8px 0;
    color: #2c3e50;
    font-size: 1.2em;
    font-weight: 600;
}

.tls-land-location {
    margin: 0 0 12px 0;
    color: #6c757d;
    font-size: 0.9em;
    font-weight: 500;
}

.tls-land-description {
    margin: 0 0 15px 0;
    color: #495057;
    font-size: 0.95em;
    line-height: 1.5;
}

.tls-land-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.tls-feature-tag {
    background: #e7f3ff;
    color: #007cba;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: 500;
}

.tls-land-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.tls-spec {
    text-align: center;
}

.tls-spec-label {
    display: block;
    color: #6c757d;
    font-size: 0.85em;
    margin-bottom: 4px;
}

.tls-spec-value {
    display: block;
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.1em;
}

.tls-spec-value.tls-price {
    color: #28a745;
    font-size: 1.2em;
}

.tls-select-land-btn {
    width: 100%;
    padding: 12px;
    background: #007cba;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tls-select-land-btn:hover {
    background: #005a87;
    transform: translateY(-1px);
}

.tls-land-card.selected .tls-select-land-btn {
    background: #28a745;
    color: white;
}

.tls-land-card.selected .tls-select-land-btn:hover {
    background: #218838;
}

/* Selected Land Details */
.tls-selected-land {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    border: 2px solid #28a745;
    margin-bottom: 30px;
}

.tls-selected-land h3 {
    color: #28a745;
    margin-bottom: 20px;
}

.tls-selected-info {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    border: 1px solid #dee2e6;
}

.tls-selected-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.tls-summary-item {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.tls-summary-label {
    display: block;
    color: #6c757d;
    font-size: 0.9em;
    margin-bottom: 8px;
}

.tls-summary-value {
    display: block;
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.1em;
}

.tls-summary-price {
    color: #28a745;
    font-size: 1.3em;
}

.tls-interest-info {
    background: #e7f3ff;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #007cba;
    margin-top: 15px;
}

.tls-interest-info h4 {
    margin: 0 0 10px 0;
    color: #007cba;
    font-size: 1em;
}

.tls-interest-info p {
    margin: 0;
    color: #495057;
    font-size: 0.9em;
    line-height: 1.4;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tls-kalkulator-container {
        padding: 15px;
        margin: 10px;
    }

    .tls-header h2 {
        font-size: 1.5em;
    }

    .tls-land-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .tls-land-specs {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .tls-selected-summary {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .tls-buttons {
        flex-direction: column;
    }

    .tls-schedule-table {
        font-size: 12px;
    }

    .tls-schedule-table th,
    .tls-schedule-table td {
        padding: 8px 4px;
    }

    .tls-modal-content {
        margin: 20px;
        width: calc(100% - 40px);
    }
}

/* Loan Check and Re-loan Styles */
.tls-info-box {
    background: #e7f3ff;
    border: 1px solid #b3d9ff;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px;
    border-left: 4px solid #007cba;
}

.tls-info-box h4 {
    margin: 0 0 10px 0;
    color: #007cba;
    font-size: 1em;
}

.tls-info-box p {
    margin: 0;
    color: #495057;
    font-size: 0.9em;
    line-height: 1.4;
}

.tls-loan-check-results,
.tls-reloan-results {
    margin-top: 20px;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

.tls-success-message {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 15px;
}

.tls-success-message h4 {
    margin: 0 0 8px 0;
    font-size: 1.1em;
}

.tls-error-message {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 15px;
}

.tls-error-message h4 {
    margin: 0 0 8px 0;
    font-size: 1.1em;
}

.tls-amenities-info {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    padding: 12px;
    border-radius: 6px;
    margin-top: 15px;
}

.tls-amenities-info h4 {
    margin: 0 0 10px 0;
    color: #495057;
    font-size: 1em;
}

.tls-amenities-info ul {
    margin: 0;
    padding-left: 20px;
}

.tls-amenities-info li {
    margin-bottom: 5px;
    color: #6c757d;
}

.tls-loan-estimate {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 12px;
    border-radius: 6px;
    margin: 15px 0;
}

.tls-loan-estimate h4 {
    margin: 0 0 10px 0;
    font-size: 1em;
}

.tls-next-steps {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    padding: 12px;
    border-radius: 6px;
    margin-top: 15px;
}

.tls-next-steps h4 {
    margin: 0 0 10px 0;
    color: #495057;
    font-size: 1em;
}

.tls-next-steps ul {
    margin: 0;
    padding-left: 20px;
}

.tls-next-steps li {
    margin-bottom: 5px;
    color: #6c757d;
}