/* Biotech Salary Estimator Styles */
.biotech-estimator {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.biotech-estimator h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.biotech-estimator p {
    color: #6c757d;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.salary-form {
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #495057;
    font-size: 0.95rem;
}

.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 1rem;
    background-color: #fff;
    color: #495057;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-group select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.estimate-btn {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    width: 100%;
    transition: all 0.2s ease;
    position: relative;
}

.estimate-btn:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.estimate-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
    margin-left: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.salary-results {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 6px;
    border-left: 4px solid #28a745;
    margin-top: 1.5rem;
}

.salary-results h4 {
    color: #495057;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.salary-display {
    margin-bottom: 1rem;
}

.salary-range {
    font-size: 2rem;
    font-weight: 700;
    color: #28a745;
    margin-bottom: 0.5rem;
    text-align: center;
}

.salary-details {
    background: white;
    padding: 1rem;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

.salary-details p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    color: #495057;
}

.salary-details strong {
    color: #495057;
}

.market-insights {
    margin-top: 1rem;
    padding: 1rem;
    background: #e8f4fd;
    border-radius: 4px;
}

.market-insights h5 {
    margin-top: 0;
    color: #0066cc;
    font-size: 1rem;
}

.market-insights ul {
    margin: 0.5rem 0;
    padding-left: 1.2rem;
}

.market-insights li {
    margin-bottom: 0.5rem;
    color: #495057;
    font-size: 0.9rem;
}

.data-source {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid #dee2e6;
}

.data-source small {
    color: #6c757d;
    font-size: 0.8rem;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: 4px;
    border: 1px solid #f5c6cb;
    margin-top: 1rem;
}

/* Lead Capture Styles */
.lead-capture {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #007bff;
}

.lead-capture h4 {
    margin-top: 0;
    color: #007bff;
    font-size: 1.2rem;
}

.lead-capture p {
    color: #495057;
    margin-bottom: 1rem;
}

.lead-capture ul {
    margin: 1rem 0;
    padding-left: 1.2rem;
}

.lead-capture li {
    margin-bottom: 0.5rem;
    color: #495057;
}

/* Email Input Specific Styles */
#lead-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

#lead-form input[type="email"] {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    background-color: #ffffff !important; /* Force white background */
    color: #000000 !important; /* Force black text */
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

#lead-form input[type="email"]:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    background-color: #ffffff !important; /* Maintain white on focus */
    color: #000000 !important; /* Maintain black text on focus */
}

#lead-form input[type="email"]::placeholder {
    color: #6c757d !important; /* Gray placeholder text */
    opacity: 1;
}

#lead-form button {
    background: #007bff;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

#lead-form button:hover {
    background: #0056b3;
}

#lead-form button:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 4px;
    border: 1px solid #c3e6cb;
    margin-top: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .biotech-estimator {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .salary-range {
        font-size: 1.5rem;
    }
    
    #lead-form {
        flex-direction: column;
        gap: 1rem;
    }
    
    #lead-form button {
        width: 100%;
    }
}

/* WordPress specific adjustments */
.wp-block-group .biotech-estimator,
.entry-content .biotech-estimator {
    margin-left: auto;
    margin-right: auto;
}
