.hcf-quiz-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 2rem;
}

.hcf-progress-bar {
    width: 100%;
    height: 4px;
    background-color: #f0f0f0;
    border-radius: 2px;
    margin-bottom: 2rem;
}

.hcf-progress {
    height: 100%;
    background-color: #007bff;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.hcf-quiz-content {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hcf-question-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.hcf-questions-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
}

.hcf-question-section {
    padding: 1.5rem;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.hcf-question-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

/* Machine type question with images - display in a 2x2 grid */
.hcf-question-section[data-step="machine_type"] .hcf-question-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

/* Make the 'Other' button span 2 columns in the machine type section */
.hcf-question-section[data-step="machine_type"] .hcf-option[data-value="other"] {
    grid-column: span 2;
    text-align: center;
    justify-content: center;
}

.hcf-question-section[data-step="contract_type"] .hcf-question-options {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Make machine count question display in 3 columns */
.hcf-question-section[data-step="machine_count"] .hcf-question-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.hcf-submit-container {
    margin-top: 2rem;
    text-align: center;
}

.hcf-option {
    background: #ffffff;
    padding: 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: relative;
    display: flex;
    align-items: center;
    font-weight: 500;
}

.hcf-option:before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #007bff;
    border-radius: 50%;
    margin-right: 12px;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.hcf-option:hover {
    background: #f0f7ff;
    border-color: #007bff;
    box-shadow: 0 4px 8px rgba(0,123,255,0.15);
    transform: translateY(-2px);
}

/* Styles for options with images */
.hcf-option-with-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0;
    overflow: hidden;
    height: 100%;
}

.hcf-option-with-image:hover {
    background:#fff !important;
}

.hcf-option-with-image:before {
    display: none; /* Hide the radio button circle */
}

.hcf-option-with-image .hcf-option-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.hcf-option-with-image .hcf-option-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.hcf-option-with-image:hover .hcf-option-image img {
    transform: scale(1.05);
    background:#fff !important;
    
}

.hcf-option-with-image .hcf-option-label {
    padding: 1rem;
    width: 100%;
    background-color: #ffffff;
    font-weight: 500;
}

.hcf-option-with-image.selected {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.3);
    background:#fff !important;
}

.hcf-option-with-image.selected .hcf-option-label {
    background-color: #007bff;
    color: white;
}

.hcf-option.selected {
    background: #e6f2ff;
    color: #007bff;
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0,123,255,0.2);
    font-weight: 600;
}

.hcf-option.selected:before {
    background-color: #007bff;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.2);
    position: relative;
}

.hcf-option.selected:after {
    content: '✓';
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 12px;
    line-height: 1;
}

.hcf-option[data-value="plus"],
.hcf-option[data-value="extra"],
.hcf-option[data-value="max"] {
    display:none;
}

.hcf-plan-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

.hcf-plan-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.hcf-max-plan-container {
    margin-top: 2rem;
    width: 100%;
}

.hcf-max-plan {
    background: #f8f9fa;
    border-top: 3px solid #007bff;
}

.hcf-plan-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

/* Styling for selected plan card */
.hcf-plan-card.selected {
    background: #e6f2ff; /* Same pale blue as other selected options */
    border-color: #007bff;
    box-shadow: 0 4px 8px rgba(0,123,255,0.2);
    transform: translateY(-3px);
}

/* Disabled plan card (e.g., Extra when machine_age > 10) */
.hcf-plan-card.hcf-disabled {
    opacity: 0.6;
    filter: grayscale(0.15);
    pointer-events: none;
}

.hcf-plan-card.hcf-disabled .hcf-choose-plan.disabled,
.hcf-choose-plan.disabled,
.hcf-choose-plan[disabled] {
    background: #a8b6c7;
    cursor: not-allowed;
}

.hcf-plan-restriction {
    color: #a00;
    font-size: 13px;
    margin-bottom: 8px;
}

.hcf-plan-title {
    color: #007bff;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.hcf-plan-features {
    list-style: none;
    padding: 0;
    text-align: left;
    max-width: 440px;
    margin: 15px auto;
}

.hcf-plan-features li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
    color: #666;
    font-size: 0.95rem;
}

.hcf-plan-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

.hcf-plan-price {
    margin: 1.5rem 0;
    font-size: 1.1rem;
    text-align: center;
}

.hcf-price-monthly {
    color: #007bff;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.hcf-price-annual {
    color: #666;
    font-size: 0.9rem;
}

.hcf-plan-actions {
    margin-top: auto;
    text-align: center;
}

.hcf-choose-plan {
    background: #007bff;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.hcf-choose-plan:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

.hcf-input-container {
    display: flex;
    gap: 10px;
    margin-top: 1rem;
}

.hcf-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    min-height:58px;
}

.hcf-input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.25);
    outline: none;
}

.hcf-button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hcf-button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.hcf-end-screen {
    text-align: center;
}

.hcf-end-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.hcf-end-content {
    margin-bottom: 2rem;
}

.hcf-plan-summary {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    text-align: center;
}

.hcf-plan-title {
    color: #007bff;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.hcf-plan-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.hcf-plan-features li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
    color: #666;
    font-size: 0.95rem;
}

.hcf-plan-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

.hcf-plan-price {
    margin: 1.5rem 0;
    font-size: 1.1rem;
}

.hcf-price-monthly {
    color: #007bff;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.hcf-price-annual {
    color: #666;
    font-size: 0.9rem;
}

.hcf-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.hcf-button:hover {
    background-color: #0056b3;
}

.hcf-text-input {
    margin: 20px 0;
    width: 100%;
    max-width: 500px;
}

.hcf-input {
    width: 100%;
    padding: 1.2rem;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.hcf-input:hover {
    border-color: #007bff;
    box-shadow: 0 4px 8px rgba(0,123,255,0.15);
    transform: translateY(-2px);
}

.hcf-input:focus {
    outline: none;
    border-color: #007bff;
}

.hcf-next-btn {
    padding: 12px 25px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.hcf-next-btn:hover {
    background-color: #0056b3;
}

/* Mobile responsiveness */
/* Quiz Summary Styles */
.hcf-quiz-summary {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.hcf-quiz-summary h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #333;
    text-align: center;
}

.hcf-summary-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.hcf-summary-image {
    flex: 0 0 200px;
}

.hcf-summary-image img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.hcf-summary-details {
    flex: 1 1 300px;
}

.hcf-summary-details h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.hcf-summary-price {
    font-size: 1.6rem;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 1rem;
}

.hcf-summary-features ul {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
}

.hcf-summary-features li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.hcf-summary-features li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #007bff;
    font-weight: bold;
}

.hcf-summary-actions {
    text-align: center;
    margin-top: 1.5rem;
}

.hcf-summary-actions .hcf-button {
    display: inline-block;
    padding: 0.75rem 2rem;
    background-color: #007bff;
    color: #fff;
    font-weight: bold;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.hcf-summary-actions .hcf-button:hover {
    background-color: #0056b3;
}

.hcf-summary-empty {
    padding: 2rem;
    text-align: center;
    color: #666;
    font-style: italic;
}

@media (max-width: 768px) {
    .hcf-quiz-container {
        padding: 1rem;
    }
    
    .hcf-quiz-summary {
        padding: 1.5rem;
        margin: 1rem auto;
    }
    
    .hcf-summary-content {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .hcf-summary-image {
        flex: 0 0 auto;
        text-align: center;
    }
    
    .hcf-summary-image img {
        max-width: 180px;
    }
    
    .hcf-plan-comparison {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .hcf-plan-card {
        padding: 1.25rem;
    }
    
    .hcf-plan-features {
        margin: 0 0 1.25rem 0;
    }
}

/* Tooltip for serial number help */
.hcf-tooltip {
  position: relative;
  display: inline-block;
  cursor: pointer;
  vertical-align: super;;
}

.hcf-tooltip .hcf-tooltip-content {
  visibility: hidden;
  width: 320px;
  background: #fff;
  color: #222;
  text-align: left;
  border-radius: 6px;
  border: 1px solid #ccc;
  padding: 16px 20px 12px 20px;
  position: absolute;
  z-index: 100;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  font-size: 15px;
  opacity: 0;
  transition: opacity 0.3s;
}

.hcf-tooltip:hover .hcf-tooltip-content,
.hcf-tooltip:focus-within .hcf-tooltip-content {
  visibility: visible;
  opacity: 1;
}

.hcf-tooltip .hcf-tooltip-arrow {
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -8px;
  border-width: 8px;
  border-style: solid;
  border-color: #fff transparent transparent transparent;
  filter: drop-shadow(0 -1px 1px #ccc);
}

.hcf-tooltip-content img {
  display: block;
  margin: 10px auto 0 auto;
  max-width: 260px;
  border-radius: 4px;
  border: 1px solid #eee;
}
