/* Zoning Compatibility Analyzer - Frontend Styles */

/* Container and Layout */
.zca-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
}

.zca-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e1e5e9;
}

.zca-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.zca-subtitle {
    font-size: 1.2rem;
    color: #7f8c8d;
    margin: 0;
    font-weight: 400;
}

/* Steps and Forms */
.zca-step {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 30px;
    margin-bottom: 20px;
    border: 1px solid #e1e5e9;
    transition: all 0.3s ease;
}

.zca-step:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.zca-form {
    max-width: 600px;
    margin: 0 auto;
}

.zca-form-group {
    margin-bottom: 25px;
}

.zca-label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 1rem;
}

.zca-input,
.zca-select,
.zca-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #ffffff;
    box-sizing: border-box;
}

.zca-input:focus,
.zca-select:focus,
.zca-textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    transform: translateY(-1px);
}

.zca-textarea {
    resize: vertical;
    min-height: 80px;
}

.zca-help-text {
    display: block;
    color: #7f8c8d;
    font-size: 0.875rem;
    margin-top: 5px;
    font-style: italic;
}

/* Buttons */
.zca-button {
    display: inline-block;
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
    min-width: 160px;
}

.zca-button:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.zca-button:hover:before {
    left: 100%;
}

.zca-button-primary {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.zca-button-primary:hover {
    background: linear-gradient(135deg, #2980b9, #1f5f8b);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.zca-button-secondary {
    background: linear-gradient(135deg, #27ae60, #229954);
    color: white;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.zca-button-secondary:hover {
    background: linear-gradient(135deg, #229954, #1e7e34);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
}

.zca-button-outline {
    background: transparent;
    color: #3498db;
    border: 2px solid #3498db;
}

.zca-button-outline:hover {
    background: #3498db;
    color: white;
    transform: translateY(-2px);
}

.zca-loading {
    display: none;
}

/* Results Display */
.zca-results-header {
    text-align: center;
    margin-bottom: 30px;
}

.zca-results-header h3 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 15px;
}

.zca-property-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #3498db;
    margin-bottom: 20px;
}

.zca-property-info p {
    margin: 5px 0;
    font-weight: 500;
}

.zca-result-box {
    margin-bottom: 30px;
}

.zca-result-status {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.zca-result-icon {
    font-size: 2rem;
    margin-right: 15px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.2);
}

.zca-result-allowed {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    box-shadow: 0 4px 20px rgba(39, 174, 96, 0.3);
}

.zca-result-prohibited {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    box-shadow: 0 4px 20px rgba(231, 76, 60, 0.3);
}

.zca-result-uncertain {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    box-shadow: 0 4px 20px rgba(243, 156, 18, 0.3);
}

.zca-result-details {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.zca-result-details p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Upgrade Offer */
.zca-upgrade-offer {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    margin: 30px 0;
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.3);
}

.zca-offer-content h4 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    text-align: center;
}

.zca-features-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
}

.zca-features-list li {
    padding: 8px 0;
    font-size: 1rem;
    display: flex;
    align-items: center;
}

.zca-features-list li:before {
    content: '';
    width: 20px;
    height: 20px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    margin-right: 10px;
    flex-shrink: 0;
}

.zca-offer-price {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 20px 0;
    padding: 15px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
}

.zca-email-form {
    background: rgba(255,255,255,0.1);
    padding: 25px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.zca-email-form .zca-input {
    background: rgba(255,255,255,0.9);
    border: none;
    color: #333;
}

.zca-checkbox-label {
    display: flex;
    align-items: flex-start;
    font-size: 0.9rem;
    line-height: 1.4;
    cursor: pointer;
}

.zca-checkbox-label input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Success Message */
.zca-success-content {
    text-align: center;
    padding: 40px 20px;
}

.zca-success-icon {
    font-size: 4rem;
    color: #27ae60;
    margin-bottom: 20px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(39, 174, 96, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.zca-success-content h3 {
    font-size: 2rem;
    color: #27ae60;
    margin-bottom: 15px;
}

.zca-success-content p {
    font-size: 1.1rem;
    color: #7f8c8d;
    max-width: 500px;
    margin: 0 auto 30px;
}

/* Actions */
.zca-actions {
    text-align: center;
    margin-top: 30px;
}

/* Loading Overlay */
.zca-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    color: white;
}

.zca-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: zca-spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes zca-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Simple Results Styles */
.zca-simple-results {
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.zca-simple-results h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.zca-status-allowed {
    color: #27ae60;
    font-weight: 700;
}

.zca-status-prohibited {
    color: #e74c3c;
    font-weight: 700;
}

.zca-status-uncertain {
    color: #f39c12;
    font-weight: 700;
}

/* Responsive Design */
@media (max-width: 768px) {
    .zca-container {
        padding: 15px;
    }
    
    .zca-title {
        font-size: 2rem;
    }
    
    .zca-subtitle {
        font-size: 1rem;
    }
    
    .zca-step {
        padding: 20px;
    }
    
    .zca-button {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .zca-features-list {
        grid-template-columns: 1fr;
    }
    
    .zca-result-status {
        flex-direction: column;
        text-align: center;
    }
    
    .zca-result-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .zca-title {
        font-size: 1.8rem;
    }
    
    .zca-result-status {
        font-size: 1.2rem;
    }
    
    .zca-success-icon {
        font-size: 3rem;
        width: 60px;
        height: 60px;
    }
}

/* Animation Classes */
.zca-fade-in {
    animation: zca-fadeIn 0.5s ease-in;
}

@keyframes zca-fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.zca-slide-up {
    animation: zca-slideUp 0.3s ease-out;
}

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

/* Accessibility */
.zca-button:focus,
.zca-input:focus,
.zca-select:focus,
.zca-textarea:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .zca-button,
    .zca-loading-overlay {
        display: none !important;
    }
    
    .zca-container {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

