/**
 * Revma Bill Analyzer Styles
 */

.rba-wrapper { max-width: 700px; margin: 0 auto; }

.rba-upload-section, .rba-manual-section {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.rba-title {
    margin: 0 0 12px;
    font-size: 1.5rem;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 12px;
}

.rba-description { color: #6b7280; margin-bottom: 24px; }

/* Dropzone */
.rba-dropzone {
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.rba-dropzone:hover, .rba-dropzone.dragover {
    border-color: #2563eb;
    background: #eff6ff;
}

.rba-dropzone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.rba-dropzone-content svg { color: #9ca3af; margin-bottom: 16px; }
.rba-dropzone-content p { margin: 0; color: #6b7280; }
.rba-dropzone-content strong { color: #1f2937; }
.rba-allowed { font-size: 0.8rem; color: #9ca3af; margin-top: 8px; display: block; }

.rba-dropzone-preview {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: center;
}

.rba-dropzone-preview svg { color: #2563eb; }
.rba-filename { font-weight: 500; }
.rba-remove-file {
    width: 24px;
    height: 24px;
    border: none;
    background: #fee2e2;
    color: #dc2626;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
}

/* Progress */
.rba-upload-progress { margin-top: 16px; }
.rba-progress-bar { height: 6px; background: #e5e7eb; border-radius: 3px; overflow: hidden; }
.rba-progress-fill { height: 100%; background: #2563eb; width: 0; transition: width 0.3s; }
.rba-progress-text { font-size: 0.85rem; color: #6b7280; margin-top: 8px; display: block; text-align: center; }

/* Form */
.rba-form-row { margin-bottom: 20px; }
.rba-form-row label { display: block; margin-bottom: 6px; font-weight: 500; color: #374151; }
.rba-form-row input, .rba-form-row select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
}
.rba-form-row input:focus, .rba-form-row select:focus {
    outline: none;
    border-color: #2563eb;
}
.rba-form-row small { color: #9ca3af; font-size: 0.8rem; margin-top: 4px; display: block; }

.rba-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.rba-radio-group { display: flex; gap: 20px; }
.rba-radio { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.rba-radio input { width: 18px; height: 18px; accent-color: #2563eb; }

.rba-submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 16px;
}
.rba-submit-btn:hover { opacity: 0.9; }
.rba-submit-btn:disabled { background: #9ca3af; cursor: not-allowed; }

.rba-alternative {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}
.rba-alternative span { color: #9ca3af; }
.rba-manual-link { color: #2563eb; margin-left: 8px; }

/* Results */
.rba-results { margin-top: 32px; }
.rba-results-content { background: white; border-radius: 16px; padding: 32px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }

.rba-savings-banner {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    padding: 24px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}
.rba-savings-icon { font-size: 3rem; }
.rba-savings-amount { display: block; font-size: 2rem; font-weight: 700; }

.rba-comparison-summary {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 32px;
    padding: 24px;
    background: #f9fafb;
    border-radius: 12px;
}

.rba-comparison-card { flex: 1; text-align: center; }
.rba-card-label { font-size: 0.8rem; color: #6b7280; display: block; }
.rba-card-provider { font-size: 1.1rem; font-weight: 600; display: block; margin: 8px 0; }
.rba-card-cost { font-size: 1.5rem; font-weight: 700; }
.rba-comparison-card.rba-best .rba-card-cost { color: #22c55e; }
.rba-comparison-arrow { font-size: 2rem; color: #d1d5db; }

/* Plans List */
.rba-plans-list { display: flex; flex-direction: column; gap: 12px; }

.rba-plan-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #f9fafb;
    border-radius: 10px;
    border: 2px solid transparent;
}
.rba-plan-card.rba-plan-best {
    background: #f0fdf4;
    border-color: #22c55e;
}

.rba-plan-rank {
    width: 32px;
    height: 32px;
    background: #e5e7eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}
.rba-plan-best .rba-plan-rank { background: #22c55e; color: white; }

.rba-plan-info { flex: 1; }
.rba-plan-info strong { display: block; }
.rba-plan-info span { font-size: 0.85rem; color: #6b7280; }

.rba-plan-details { text-align: right; }
.rba-plan-rate { font-size: 0.85rem; color: #6b7280; }
.rba-plan-discount { background: #dcfce7; color: #166534; padding: 2px 8px; border-radius: 4px; font-size: 0.75rem; font-weight: 600; margin-left: 8px; }

.rba-plan-cost { text-align: right; min-width: 80px; }
.rba-plan-cost strong { font-size: 1.1rem; }
.rba-plan-cost small { color: #6b7280; }

.rba-plan-savings { font-size: 0.8rem; color: #22c55e; font-weight: 500; }

.rba-plan-cta {
    padding: 8px 16px;
    background: #2563eb;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
}

.rba-note { margin-top: 24px; font-size: 0.8rem; color: #9ca3af; }

/* Verification */
.rba-verification { background: #fef3c7; padding: 24px; border-radius: 12px; }
.rba-verification h4 { margin: 0 0 12px; color: #92400e; }
.rba-verification p { color: #b45309; margin-bottom: 20px; }

@media (max-width: 600px) {
    .rba-comparison-summary { flex-direction: column; }
    .rba-comparison-arrow { transform: rotate(90deg); }
    .rba-form-grid { grid-template-columns: 1fr; }
    .rba-plan-card { flex-wrap: wrap; }
}
