/* WCFM Add Property Submission Frontend Styles */

.wcfm-add-property-submission {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.wcfm-add-property-submission h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
}

.property-form {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: #0066cc;
    color: white;
}

.btn-primary:hover {
    background: #0052a3;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #1e7e34;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-outline {
    background: white;
    color: #0066cc;
    border: 2px solid #0066cc;
}

.btn-outline:hover {
    background: #0066cc;
    color: white;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Dashboard Styles */

.wcfm-add-property-dashboard {
    padding: 40px 20px;
}

.wcfm-add-property-dashboard h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 30px;
}

.properties-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.properties-table thead {
    background: #f8f9fa;
}

.properties-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #ddd;
}

.properties-table td {
    padding: 15px;
    border-bottom: 1px solid #ddd;
}

.properties-table tbody tr:hover {
    background: #f8f9fa;
}

/* Notice Styles */

.wcfm-add-property-notice {
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
}

.wcfm-add-property-notice p {
    margin: 0;
}

/* Progress Indicator */
.progress-indicator {
    display: flex;
    justify-content: space-between;
    padding: 20px 40px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.5;
}

.progress-step.active {
    opacity: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.progress-step.active .step-number {
    background: #0066cc;
    color: white;
}

/* Login Required */
.login-required {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.login-message {
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 60px 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    max-width: 500px;
}

.login-message h2 {
    color: #333;
    font-size: 2rem;
    margin-bottom: 20px;
}

.login-message p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

/* Success Screen */
.success-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.success-content {
    background: white;
    padding: 60px 40px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: bounce 0.6s ease-out;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.success-content h1 {
    font-size: 2.5rem;
    color: #27ae60;
    margin: 0 0 15px 0;
    font-weight: 700;
}

.success-content p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 40px;
}

.success-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-lg {
    padding: 15px 30px;
    font-size: 1rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-primary.btn-lg {
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    color: white;
}

.btn-primary.btn-lg:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 102, 204, 0.3);
}

.btn-success.btn-lg {
    background: linear-gradient(135deg, #27ae60 0%, #1e8449 100%);
    color: white;
}

.btn-success.btn-lg:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(39, 174, 96, 0.3);
}

.btn-outline.btn-lg {
    background: white;
    color: #0066cc;
    border: 2px solid #0066cc;
}

.btn-outline.btn-lg:hover {
    background: #f0f5ff;
    transform: translateY(-3px);
}

/* Form Steps */
.form-step {
    display: none;
    padding: 40px;
}

.form-step.active {
    display: block;
}

.step-header {
    text-align: center;
    margin-bottom: 40px;
}

.step-header h2 {
    color: #333;
    font-size: 2rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.step-header p {
    color: #666;
    font-size: 1.1rem;
}

.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e9ecef;
}

/* Location Modal */
.location-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.location-modal-content {
    background: white;
    border-radius: 15px;
    max-width: 700px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.location-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    border-bottom: 1px solid #e9ecef;
    background: white;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.location-modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.5rem;
    flex: 1;
}

.location-modal-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.close-modal {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover {
    color: #333;
}

.location-modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 25px;
}

.location-cities h4,
.location-areas h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-weight: 600;
    font-size: 1.1rem;
}

.city-list,
.area-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.city-list label,
.area-list label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.city-list label:hover,
.area-list label:hover {
    background: #f8f9fa;
}

.city-list input[type="radio"],
.area-list input[type="radio"] {
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.city-list label,
.area-list label {
    color: #333;
    font-weight: 500;
}

/* Image Upload */
.main-image-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.main-image-preview {
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-image-preview img {
    max-width: 300px;
    max-height: 300px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.main-image-item {
    position: relative;
    display: inline-block;
}

.main-image-item .remove-image {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
}

.main-image-item .remove-image:hover {
    background: #c82333;
    transform: scale(1.1);
}

.sub-images-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sub-images-preview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.sub-image-box {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.sub-image-box.empty-box {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    cursor: pointer;
}

.sub-image-box.empty-box:hover {
    border-color: #0066cc;
    background: #e7f3ff;
}

.image-placeholder {
    width: 60px;
    height: 60px;
    color: #999;
    margin-bottom: 10px;
}

.image-placeholder svg {
    width: 100%;
    height: 100%;
}

.add-image-btn {
    background: #0066cc;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.add-image-btn:hover {
    background: #0052a3;
}

.sub-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sub-image-box .remove-image {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
    z-index: 10;
}

.sub-image-box .remove-image:hover {
    background: #c82333;
    transform: scale(1.1);
}

.sub-images-count {
    margin-top: 10px;
    padding: 10px;
    background: #e7f3ff;
    border-left: 3px solid #0066cc;
    border-radius: 4px;
    color: #004085;
    font-weight: 500;
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .property-form {
        padding: 20px;
    }
    
    .location-modal-body {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .sub-images-preview {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .success-buttons {
        gap: 10px;
    }
    
    .form-navigation {
        flex-direction: column;
        gap: 10px;
    }
    
    .form-navigation button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .wcfm-add-property-submission {
        padding: 15px;
    }
    
    .property-form {
        padding: 15px;
    }
    
    .sub-images-preview {
        grid-template-columns: 1fr;
    }
    
    .success-content {
        padding: 40px 20px;
    }
    
    .success-content h1 {
        font-size: 2rem;
    }
    
    .step-header h2 {
        font-size: 1.5rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px;
    }
}
