/* Healthcare Cost Estimator wizard (guided, step-by-step UI). */

.hc-container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    overflow: hidden;
}

/* Progress Bar */
.hc-progress-container {
    background: #f5f5f5;
    padding: 20px 30px;
    border-bottom: 1px solid #e0e0e0;
}

.hc-progress-bar {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 10px;
}

.hc-progress-bar::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 0;
    right: 0;
    height: 3px;
    background: #e0e0e0;
    z-index: 0;
}

.hc-progress-bar-fill {
    position: absolute;
    top: 15px;
    left: 0;
    height: 3px;
    background: #0023FF;
    transition: width 0.3s ease;
    z-index: 1;
}

.hc-progress-step {
    position: relative;
    z-index: 2;
    text-align: center;
    flex: 1;
}

.hc-progress-step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: white;
    border: 3px solid #e0e0e0;
    margin: 0 auto 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s ease;
}

.hc-progress-step.active .hc-progress-step-circle {
    border-color: #0023FF;
    background: #0023FF;
    color: white;
}

.hc-progress-step.completed .hc-progress-step-circle {
    border-color: #48bb78;
    background: #48bb78;
    color: white;
}

.hc-progress-step-label {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.hc-progress-step.active .hc-progress-step-label {
    color: #0023FF;
    font-weight: 600;
}

/* Content Area */
.hc-content {
    padding: 40px 30px;
}

.hc-wizard-step {
    display: none;
}

.hc-wizard-step.active {
    display: block;
    animation: hcFadeIn 0.3s ease;
}

@keyframes hcFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.hc-step-title {
    font-size: 24px;
    color: #2d3748;
    margin-bottom: 10px;
}

.hc-step-description {
    color: #718096;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Form Elements */
.hc-form-group {
    margin-bottom: 24px;
}

.hc-form-group label {
    display: block;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
    font-size: 14px;
}

.hc-form-group input[type="text"],
.hc-form-group input[type="number"],
.hc-form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s;
    min-width: 0; /* Ensure selects can shrink */
}

.plan-deductible-type,
.plan-premium-frequency,
.plan-coverage-type {
    height: 3em;
}

.hc-form-group input:focus,
.hc-form-group select:focus {
    outline: none;
    border-color: #0023FF;
}

.hc-input-hint {
    font-size: 12px;
    color: #718096;
    margin-top: 4px;
}

.hc-radio-group {
    display: flex;
    gap: 16px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.hc-radio-option {
    flex: 1;
    min-width: 120px;
    padding: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.hc-radio-option:hover {
    border-color: #0023FF;
}

.hc-radio-option input[type="radio"] {
    display: none;
}

.hc-radio-option input[type="radio"]:checked + label {
    color: #0023FF;
}

.hc-radio-option.selected {
    border-color: #0023FF;
    background: #f0f4ff;
}

.hc-radio-option label {
    font-weight: 600;
    margin: 0;
    cursor: pointer;
}

/* Plan Cards */
.hc-plan-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.hc-plan-card {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    background: #f7fafc;
}

.hc-plan-card h3 {
    color: #0023FF;
    margin-bottom: 16px;
    font-size: 18px;
}

/* Buttons */
.hc-button-group {
    display: flex;
    gap: 12px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e2e8f0;
}

.hc-btn-primary {
    background: #0023FF;
    color: white;
    flex: 1;
}

.hc-btn-primary:hover {
    background: #001ecc;
}

.hc-btn-secondary {
    background: #e2e8f0;
    color: #2d3748;
}

.hc-btn-secondary:hover {
    background: #cbd5e0;
}

/* Results Table */
.hc-results-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.hc-results-table th,
.hc-results-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.hc-results-table th {
    background: #f7fafc;
    font-weight: 600;
    color: #2d3748;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hc-results-table td {
    font-size: 15px;
}

.hc-results-table .winner {
    background: #f0fff4;
}

.hc-results-table .total-cost {
    font-size: 18px;
    font-weight: 700;
    color: #0023FF;
}

.hc-winner-badge {
    display: inline-block;
    background: #48bb78;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 8px;
}

/* Collapsible Sections */
.hc-collapsible-section {
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 16px;
    overflow: hidden;
}

.hc-collapsible-header {
    padding: 16px;
    background: #f7fafc;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.hc-collapsible-header:hover {
    background: #edf2f7;
}

.hc-collapsible-header h4 {
    margin: 0;
    color: #2d3748;
    font-size: 16px;
}

.hc-collapsible-icon {
    transition: transform 0.3s;
}

.hc-collapsible-section.open .hc-collapsible-icon {
    transform: rotate(180deg);
}

.hc-collapsible-content {
    display: none;
    padding: 20px;
}

.hc-collapsible-section.open .hc-collapsible-content {
    display: block;
}

/* Dynamic Items */
.hc-dynamic-item {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    position: relative;
}

.hc-dynamic-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.hc-remove-btn {
    background: #fc8181;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
}

.hc-remove-btn:hover {
    background: #f56565;
}

.hc-add-item-btn {
    background: white;
    border: 2px dashed #cbd5e0;
    color: #0023FF;
    padding: 12px;
    border-radius: 8px;
    width: 100%;
    font-weight: 600;
    cursor: pointer;
    margin-top: 12px;
}

.hc-add-item-btn:hover {
    border-color: #0023FF;
    background: #f7fafc;
}

.hc-optional-sections {
    background: #f7fafc;
    border-radius: 8px;
    padding: 24px;
    margin-top: 20px;
}

.hc-optional-sections h3 {
    margin-bottom: 16px;
    color: #2d3748;
}

.hc-checkbox-option {
    display: flex;
    align-items: center;
    padding: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.hc-checkbox-option:hover {
    border-color: #0023FF;
    background: white;
}

.hc-checkbox-option input[type="checkbox"] {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.hc-checkbox-option label {
    margin: 0;
    cursor: pointer;
    font-weight: 600;
}

/* Premium frequency inline display */
.hc-premium-frequency-group {
    display: flex;
    gap: 8px;
    align-items: flex-end;
}

.hc-premium-frequency-group > div {
    flex: 1;
}

.hc-premium-frequency-group select {
    margin-bottom: 0;
}

.hc-page-wrap {
    padding-top: 2rem;
    padding-bottom: 3rem;
}
