/* Property Submission Form Styles */
.property-submission-wizard {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

.form-step {
    display: none;
    padding: 30px;
}

.form-step.active {
    display: block;
}

.property-type-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.property-type-card {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.property-type-card:hover {
    border-color: #007cba;
    transform: translateY(-2px);
}

.property-type-card.selected {
    border-color: #007cba;
    background-color: #f0f8ff;
}

.property-type-card h4 {
    margin: 0 0 10px 0;
    color: #333;
}

.property-type-card p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.form-section {
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.form-section h4 {
    margin: 0 0 15px 0;
    color: #333;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 10px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 15px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007cba;
}

/* Image Upload */
.image-upload-container {
    margin-top: 15px;
    position: relative;
}

/* Trong assets/css/dynamic-forms.css */
.upload-area {
    cursor: pointer;
    padding: 30px 20px;
    border: 2px dashed #ddd;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    background: #fafafa;
    position: relative;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.upload-area:hover, 
.upload-area.highlight {
    border-color: #007cba;
    background: #f0f8ff;
    transform: scale(1.02);
}

.upload-icon {
    font-size: 2em;
    margin-bottom: 10px;
}

.upload-area p {
    margin: 5px 0;
}

.upload-hint {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

/* Ẩn input file nhưng vẫn click được - QUAN TRỌNG */
#property-images {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
}

/* Đảm bảo các phần tử khác không chặn click */
.upload-area > *:not(#property-images) {
    position: relative;
    z-index: 1;
    pointer-events: none; /* Cho phép click xuyên qua */
}

/* Image preview styles */
.image-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.image-preview-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    aspect-ratio: 1/1;
}

.image-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-number {
    position: absolute;
    top: 5px;
    left: 5px;
    background: rgba(0,0,0,0.7);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    z-index: 1;
}

.remove-image {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255,0,0,0.8);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    z-index: 1;
}

.remove-image:hover {
    background: rgba(255,0,0,1);
}

.image-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 6px;
    font-size: 10px;
}

.file-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.file-size {
    opacity: 0.8;
    font-size: 9px;
}

.upload-summary {
    grid-column: 1 / -1;
    background: #e3f2fd;
    padding: 12px 15px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.file-count {
    background: #2196f3;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
}

.more-images-notice {
    grid-column: 1 / -1;
    text-align: center;
    padding: 10px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    color: #856404;
    font-size: 14px;
}

.no-images {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 30px 20px;
    grid-column: 1 / -1;
}

/* Mobile optimization */
@media (max-width: 768px) {
    .upload-area {
        padding: 25px 15px;
    }
    
    .image-preview {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 8px;
    }
    
    .upload-hint {
        font-size: 12px;
    }
}

/* Đảm bảo input file hoạt động trên mobile */
#property-images {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}

.remove-image {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0,0,0,0.7);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.btn-prev,
.btn-submit {
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.btn-prev {
    background: #6c757d;
    color: white;
}

.btn-submit {
    background: #007cba;
    color: white;
}

.btn-prev:hover {
    background: #5a6268;
}

.btn-submit:hover {
    background: #005a87;
}

/* Success Step */
.submission-success {
    text-align: center;
    padding: 40px 20px;
}

.submission-success h3 {
    color: #28a745;
    margin-bottom: 15px;
}

.success-actions {
    margin-top: 30px;
}

.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    margin: 0 10px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #007cba;
    color: white;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-primary:hover,
.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Loading */
.loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .property-submission-wizard {
        margin: 10px;
        border-radius: 0;
    }
    
    .form-step {
        padding: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-prev,
    .btn-submit {
        width: 100%;
    }
    p.dang-ban-type{
        text-align: center;
    }

}
/* Trong assets/css/dynamic-forms.css */
.dynamic-form-section h4 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    margin: 0 0 20px 0;
    font-size: 18px;
    border-left: 5px solid #ff6b6b;
}

.dynamic-form-section {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 0;
    overflow: hidden;
}

.dynamic-form-section .form-group {
    padding: 0 20px 15px 20px;
}

.dynamic-form-section .form-group:last-child {
    padding-bottom: 20px;
}
.template-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.template-nha-dat-ban {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
}

.template-nha-dat-cho-thue {
    background: linear-gradient(135deg, #4834d4 0%, #686de0 100%);
}

.template-can-ho-chung-cu {
    background: linear-gradient(135deg, #00d2d3 0%, #54a0ff 100%);
}
/* Trong assets/css/dynamic-forms.css */
.guest-notice {
    margin-bottom: 25px;
}

.notice-info {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 1px solid #ffeaa7;
    border-radius: 10px;
    padding: 20px;
    color: #856404;
}

.notice-info h4 {
    margin: 0 0 10px 0;
    color: #856404;
}

.notice-info p {
    margin: 8px 0;
    line-height: 1.5;
}

.login-link, .register-link {
    color: #007cba;
    font-weight: 600;
    text-decoration: none;
}

.login-link:hover, .register-link:hover {
    text-decoration: underline;
}

.guest-contact-notice {
    background: #e3f2fd;
    border: 1px solid #bbdefb;
    border-radius: 6px;
    padding: 12px 15px;
    margin-top: 10px;
    font-size: 14px;
    color: #1565c0;
}

.btn-register {
    background: #ff6b6b;
    color: white;
    padding: 12px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-register:hover {
    background: #ff5252;
    transform: translateY(-2px);
}

/* Hiển thị khác nhau cho các loại user */
.submission-success.published {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 1px solid #c3e6cb;
}

.submission-success.pending {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 1px solid #ffeaa7;
}

.submission-success.draft {
    background: linear-gradient(135deg, #e2e3e5 0%, #d6d8db 100%);
    border: 1px solid #d6d8db;
}
p.dang-ban-type{
    font-weight: bold;
    color: #005a87;
    font-size: 1.5em;
    margin-bottom: 10px;
}
