/* Modern styling for the flood risk analyzer plugin */
.flood-risk-analyzer {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    max-width: 700px;
    margin: 30px auto;
    padding: 30px;
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.flood-risk-analyzer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    z-index: -1;
}

.flood-risk-analyzer h3 {
    color: white;
    text-align: center;
    margin-bottom: 25px;
    font-size: 28px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.flood-risk-analyzer p {
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.6;
}

.fra-input-group {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
    align-items: stretch;
}

.fra-input-group input[type="text"],
.fra-input-group input[type="email"] {
    flex-grow: 1;
    padding: 16px 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.fra-input-group input[type="text"]::placeholder,
.fra-input-group input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.fra-input-group input[type="text"]:focus,
.fra-input-group input[type="email"]:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.fra-input-group button {
    padding: 16px 24px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 140px;
}

.fra-input-group button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(238, 90, 36, 0.4);
    background: linear-gradient(135deg, #ff5252, #d63031);
}

.fra-input-group button:active {
    transform: translateY(0);
}

.fra-input-group button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

#fra-loading, #fra-email-loading {
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin: 20px 0;
    backdrop-filter: blur(10px);
}

#fra-results {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    color: #333;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

#fra-results h4 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

#fra-results p {
    text-align: left;
    margin-bottom: 12px;
    color: #2c3e50;
    font-size: 15px;
    line-height: 1.5;
}

#fra-results strong {
    color: #2980b9;
    font-weight: 600;
}

.fra-premium-offer {
    text-align: center;
    margin-top: 30px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.fra-premium-offer h4 {
    color: white;
    margin-bottom: 15px;
    font-size: 24px;
    font-weight: 700;
}

.fra-premium-features {
    margin: 20px 0;
}

.fra-premium-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fra-premium-features li {
    padding: 8px 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
}

.fra-premium-features li::before {
    content: '✓';
    color: #00d4aa;
    font-weight: bold;
    margin-right: 10px;
}

.fra-premium-btn {
    padding: 16px 32px;
    background: linear-gradient(135deg, #00d4aa, #00b894);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.fra-premium-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 180, 148, 0.4);
    background: linear-gradient(135deg, #00b894, #00a085);
}

.fra-report-preview {
    margin: 25px 0;
}

.fra-report-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.fra-feature {
    display: flex;
    align-items: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.fra-feature-icon {
    font-size: 24px;
    margin-right: 12px;
}

.fra-feature-text {
    font-size: 14px;
    font-weight: 500;
}

.fra-privacy-section {
    margin-top: 25px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.fra-privacy-note {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fra-privacy-icon {
    margin-right: 8px;
    font-size: 16px;
}

.fra-trust-indicators {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.fra-trust-item {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.fra-success-actions {
    text-align: center;
    margin-top: 30px;
}

.fra-secondary-btn {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.fra-secondary-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Success step styling */
#fra-step-4 {
    text-align: center;
}

#fra-step-4 h3 {
    color: #00d4aa;
    font-size: 32px;
    margin-bottom: 20px;
}

#fra-step-4 p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Loading animations */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

#fra-loading p, #fra-email-loading p {
    animation: pulse 2s infinite;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .flood-risk-analyzer {
        margin: 20px;
        padding: 20px;
    }
    
    .fra-input-group {
        flex-direction: column;
    }

    .fra-input-group button {
        width: 100%;
        min-width: auto;
    }
    
    .fra-report-features {
        grid-template-columns: 1fr;
    }
    
    .fra-trust-indicators {
        flex-direction: column;
        gap: 10px;
    }
    
    .flood-risk-analyzer h3 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .flood-risk-analyzer {
        margin: 10px;
        padding: 15px;
    }
    
    .fra-input-group input[type="text"],
    .fra-input-group input[type="email"] {
        padding: 14px 16px;
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .flood-risk-analyzer h3 {
        font-size: 20px;
    }
}


