/* DealReveal Engine Styles */
.dealreveal-wrap {
    max-width: 640px;
    margin: 30px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #333;
}

.dealreveal-wrap h2 {
    font-size: 28px;
    color: #1a237e;
    margin-bottom: 8px;
}

.dealreveal-wrap p {
    color: #666;
    margin-bottom: 24px;
}

/* Form Fields */
.dealreveal-field {
    margin-bottom: 18px;
}

.dealreveal-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 14px;
    color: #444;
}

.dealreveal-field input[type="text"],
.dealreveal-field input[type="email"],
.dealreveal-field input[type="number"] {
    width: 100%;
    padding: 10px 14px;
    font-size: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.dealreveal-field input:focus {
    border-color: #1a237e;
    outline: none;
    box-shadow: 0 0 0 2px rgba(26, 35, 126, 0.1);
}

/* Buttons */
.dealreveal-btn {
    display: inline-block;
    padding: 12px 28px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

.dealreveal-btn:hover {
    transform: translateY(-1px);
}

.dealreveal-btn:active {
    transform: translateY(0);
}

.dealreveal-btn-primary {
    background: #1a237e;
    color: #fff;
}

.dealreveal-btn-primary:hover {
    background: #283593;
}

.dealreveal-btn-primary:disabled {
    background: #9fa8da;
    cursor: not-allowed;
    transform: none;
}

.dealreveal-btn-cta {
    background: #2e7d32;
    color: #fff;
    font-size: 18px;
    padding: 14px 32px;
    width: 100%;
}

.dealreveal-btn-cta:hover {
    background: #388e3c;
}

/* Error message */
.dealreveal-error {
    background: #ffebee;
    color: #c62828;
    padding: 12px 16px;
    border-radius: 4px;
    border-left: 3px solid #c62828;
    margin-top: 12px;
    font-size: 14px;
}

/* Output section */
.dealreveal-output {
    margin-top: 30px;
}

.dealreveal-output h3 {
    font-size: 22px;
    color: #1a237e;
    margin-bottom: 20px;
}

.dealreveal-score-card {
    display: flex;
    gap: 24px;
    align-items: center;
    background: #f5f5f5;
    padding: 24px;
    border-radius: 8px;
    margin-bottom: 24px;
}

.dealreveal-score-badge {
    text-align: center;
    min-width: 100px;
}

.dealreveal-score-value {
    font-size: 48px;
    font-weight: 700;
    color: #1a237e;
}

.dealreveal-score-label {
    font-size: 18px;
    color: #999;
}

.dealreveal-score-details {
    flex: 1;
}

.dealreveal-detail-row {
    margin-bottom: 10px;
    font-size: 15px;
}

.dealreveal-detail-row strong {
    color: #444;
}

.dealreveal-pursuit-level {
    font-weight: 600;
}

/* Pursuit level colors */
.dealreveal-pursuit-strong-pursue .dealreveal-score-value { color: #2e7d32; }
.dealreveal-pursuit-conditional-pursue .dealreveal-score-value { color: #f57c00; }
.dealreveal-pursuit-pass .dealreveal-score-value { color: #c62828; }

/* Insights */
.dealreveal-insights {
    margin-bottom: 24px;
}

.dealreveal-insights h4 {
    font-size: 16px;
    color: #1a237e;
    margin-bottom: 10px;
}

.dealreveal-insights ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dealreveal-insights li {
    padding: 10px 14px;
    margin-bottom: 8px;
    background: #fff8e1;
    border-left: 3px solid #ffa000;
    border-radius: 0 4px 4px 0;
    font-size: 14px;
}

/* CTA section */
.dealreveal-cta {
    background: #e8f5e9;
    padding: 24px;
    border-radius: 8px;
    text-align: center;
}

.dealreveal-cta p {
    color: #333;
    margin-bottom: 16px;
}

/* Loading spinner */
.dealreveal-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.dealreveal-spinner {
    display: inline-block;
    width: 32px;
    height: 32px;
    border: 3px solid #e0e0e0;
    border-top-color: #1a237e;
    border-radius: 50%;
    animation: dealreveal-spin 0.8s linear infinite;
}

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