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

@media (max-width: 768px) {
    .hcf-quiz-container {
        padding: 0;
    }
}

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

.hcf-progress {
    height: 100%;
    background-color: var(--hcf-primary-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);
}

@media (max-width: 768px) {
    .hcf-quiz-content {
        padding: 1.25rem;
        border-radius: 4px;
    }
}

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

@media (max-width: 768px) {
    .hcf-question-title {
        font-size: 1.2em;
        margin-bottom: 1rem;
        line-height: 1.3;
    }
}

.hcf-questions-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    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;
}

.hcf-question-options[data-step="machine_age"] input[type="number"] {
    margin:20px 0;
}

/* 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;
}

@media (max-width: 768px) {
    .hcf-question-section[data-step="machine_type"] .hcf-question-options {
        gap: 1rem;
    }
}

/* 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;
}

/* Make serial number and machine age fields display side-by-side at 50% width */
.hcf-question-section[data-step="serial_number"],
.hcf-question-section[data-step="machine_age"] {
    flex: 0 0 calc(50% - 1rem);
    max-width: calc(50% - 1rem);
}

/* Ensure other question sections take full width */
.hcf-question-section:not([data-step="serial_number"]):not([data-step="machine_age"]) {
    flex: 0 0 100%;
    max-width: 100%;
}

.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 var(--hcf-primary-color, #007bff);
    border-radius: 50%;
    margin-right: 12px;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.hcf-option:hover {
    background: #f0f7ff;
    border-color: var(--hcf-primary-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;
}

@media (max-width: 768px) {
    .hcf-option-with-image .hcf-option-label {
        padding: 0.75rem 0.5rem;
        font-size: 0.9em;
        line-height: 1.2;
    }
}

.hcf-option-with-image.selected {
    border-color: var(--hcf-primary-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: var(--hcf-primary-color, #007bff);
    color: white;
}

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

.hcf-option.selected:before {
    background-color: var(--hcf-primary-color, #007bff);
    border-color: var(--hcf-primary-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;
}

/* Updated plan comparison layout to match screenshot */
.hcf-plan-section {
    padding: 20px 0;
}

.hcf-plan-comparison {
    display: flex;
    flex-wrap: nowrap;
    gap: 24px;
    justify-content: stretch;
}

.hcf-max-plan-container {
    margin-top: 32px;
    display: flex;
    justify-content: center;
}

.hcf-max-plan {
    max-width: 720px;
    width: 100%;
}

/* Individual plan cards */
.hcf-plan-card {
    background: #ffffff;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* keep ribbon within card */
}

/* Header band */
.hcf-plan-header {
    padding: 14px 18px 10px;
    color: #333;
    background: #ffffff;
    min-height: 72px; /* ensure titles+subtitles align across plans */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hcf-plan-plus .hcf-plan-header {
    border-bottom: 3px solid #c27824; /* bronze underline */
}

.hcf-plan-extra .hcf-plan-header {
    border-bottom: 3px solid #888c94; /* silver/grey underline */
    position: relative;
}

.hcf-plan-max .hcf-plan-header {
    border-bottom: 3px solid #e6b322; /* gold underline */
}

.hcf-plan-title {
    font-size: 1.2em;
    font-weight: 600;
    margin: 0 0 4px;
    text-align: left;
    color: #333;
}

.hcf-plan-stars {
    margin-right: 4px;
}

.hcf-plan-subtitle {
    font-size: 0.75em;
    opacity: 1;
    text-align:center;
    color: #444;
    font-weight:500;
}

/* Popular ribbon on Extra */
.hcf-plan-ribbon {
    position: absolute;
    top: 15px;
    right: -35px;
    background: var(--hcf-primary-color, #007bff);
    color: #fff;
    font-size: 10px;
    text-transform: uppercase;
    padding: 4px 40px;
    transform: rotate(40deg);
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

/* Body and footer */
.hcf-plan-body {
    padding: 18px 24px 20px;
    display: flex;
    flex-direction: column;
    flex: 1; /* body fills remaining height inside card */
    min-height:400px;
}

.hcf-plan-footer {
    padding: 10px 18px 14px;
    font-size: 11px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #777;
    border-top: 1px solid #eee;
}

/* Styling for selected plan card */
.hcf-plan-card.selected {
    background: #e6f2ff; /* Same pale blue as other selected options */
    border-color: var(--hcf-primary-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;
}

/* Plus, Extra, Max titles */
/* Features list */
.hcf-plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    flex: 1; /* take up remaining vertical space so price/button align across cards */
}

.hcf-plan-features li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.4;
}

.hcf-plan-features li + li {
    border-top: 1px solid #e3e3e3;
    padding-top: 8px;
    padding-bottom:8px;
}

/* Green check icon bullet (new for screenshot style) */
.hcf-plan-features li::before {
    content: '✔';
    position: absolute;
    left: 0;
    top: 0;
    color: #22A447; /* Green check */
    font-size: 13px;
}

/* Price line */
.hcf-plan-price {
    text-align: center;
    font-weight: 600;
    color: var(--hcf-primary-color, #007bff);
    margin: 0 0 20px;
}

.hfc-price-regular {
    margin-bottom:10px;
}

.hcf-price-regular .hcf-price-was {
    text-decoration: line-through;
    color: #888;
    font-size: 0.9em;
}

.hcf-price-sale {
    font-weight: 700;
    color: var(--hcf-primary-color, #007bff);
    font-size:1.4em;
}

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

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

/* Choose button */
.hcf-plan-actions {
    text-align: center;
}

.hcf-choose-plan {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 4px;
    border: none;
    background: var(--hcf-primary-color, #007bff);
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}

.hcf-choose-plan:hover {
    background: #005fa9;
}

.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: var(--hcf-primary-color, #007bff);
    box-shadow: 0 0 0 3px rgba(0,123,255,0.25);
    outline: none;
}

.hcf-button {
    background-color: var(--hcf-primary-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: color-mix(in srgb, var(--hcf-primary-color, #007bff) 85%, black);
    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 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
    text-align:center;
}

.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;
    top:10px;
}

.hcf-plan-price {

    font-size: 1.1rem;
}

.hcf-price-monthly {
    color: var(--hcf-primary-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: var(--hcf-primary-color, #007bff);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.hcf-button:hover {
    background-color: color-mix(in srgb, var(--hcf-primary-color, #007bff) 85%, black);
}

.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: var(--hcf-primary-color, #007bff);
    box-shadow: 0 4px 8px rgba(0,123,255,0.15);
    transform: translateY(-2px);
}

.hcf-input:focus {
    outline: none;
    border-color: var(--hcf-primary-color, #007bff);
}

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

.hcf-next-btn:hover {
    background-color: color-mix(in srgb, var(--hcf-primary-color, #007bff) 85%, black);
}

/* 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: var(--hcf-primary-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: var(--hcf-primary-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: var(--hcf-primary-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: color-mix(in srgb, var(--hcf-primary-color, #007bff) 85%, black);
}

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

@media (max-width: 768px) {
    .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 {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .hcf-plan-card {
        width: 100%;
        flex: none;
    }
    
    .hcf-plan-features {
        margin: 0 0 1.25rem 0;
    }
    
    /* Stack serial number and machine age fields vertically on tablet/mobile */
    .hcf-question-section[data-step="serial_number"],
    .hcf-question-section[data-step="machine_age"] {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Small phone optimizations */
@media (max-width: 600px) {
    .hcf-question-section {
        padding: 1rem;
    }

    /* Machine type with images: keep two columns when possible */
    .hcf-question-section[data-step="machine_type"] .hcf-question-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .hcf-question-section[data-step="machine_type"] .hcf-option[data-value="other"] {
        grid-column: span 2;
    }

    /* Machine count: reduce density */
    .hcf-question-section[data-step="machine_count"] .hcf-question-options {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Image tiles: reduce height to fit viewport better */
    .hcf-option-with-image .hcf-option-image {
        height: 140px;
    }

    /* Submit button: easier tap target and alignment */
    .hcf-submit-container .hcf-button {
        width: 100%;
    }

    /* Acceptance checkbox readability */
    .hcf-acceptance-checkbox label {
        font-size: 0.95rem;
        line-height: 1.45;
    }
}

@media (max-width: 360px) {
    /* Extra small screens: single column where necessary */
    .hcf-question-section[data-step="machine_type"] .hcf-question-options,
    .hcf-question-section[data-step="machine_count"] .hcf-question-options {
        grid-template-columns: 1fr;
    }

    .hcf-option-with-image .hcf-option-image {
        height: 120px;
    }
}

/* 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;
  max-width: 90vw; /* Prevent tooltip from overflowing on small screens */
}

.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;
}

/* ========================================
   REPAIR FORM SPECIFIC STYLES
   ======================================== */

/* Issue Checkboxes */
.hcf-issue-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
}

.hcf-checkbox-option {
    display: flex;
    align-items: center;
    padding: 1rem 1.2rem;
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

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

.hcf-checkbox-option input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    cursor: pointer;
    accent-color: var(--hcf-primary-color, #007bff);
}

.hcf-checkbox-option input[type="checkbox"]:checked + span {
    color: var(--hcf-primary-color, #007bff);
}

/* Limescale Warning Banner */
.hcf-warning-banner {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 1rem 1.2rem;
    margin: 1.5rem 0;
    color: #856404;
    line-height: 1.6;
}

.hcf-warning-banner strong {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.05em;
}

.hcf-phone-link {
    color: #856404;
    font-weight: 600;
    text-decoration: underline;
}

.hcf-phone-link:hover {
    color: #533f03;
}

/* Form Rows and Fields */
.hcf-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.hcf-form-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.25rem;
}

.hcf-form-field label {
    font-weight: 600;
    margin-bottom: 0.65rem;
    color: #333;
    font-size: 0.95em;
}

.hcf-form-field .hcf-input,
.hcf-form-field select,
.hcf-form-field textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    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-form-field .hcf-input:focus,
.hcf-form-field select:focus,
.hcf-form-field textarea:focus {
    border-color: var(--hcf-primary-color, #007bff);
    box-shadow: 0 0 0 3px rgba(0,123,255,0.15);
    outline: none;
}

/* Access Time Slots Grid */
.hcf-access-times-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 1rem;
}

.hcf-access-time-slot {
    background: #f9f9f9;
    padding: 1.25rem;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.hcf-access-time-slot h4 {
    margin: 0 0 1rem 0;
    color: #333;
    font-size: 1em;
    font-weight: 600;
}

/* Radio-style Card List (matches checkbox option style) */
.hcf-radio-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.hcf-radio-option {
    display: flex;
    align-items: center;
    padding: 1rem 1.2rem;
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

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

.hcf-radio-option.selected {
    background: #f0f7ff;
    border-color: var(--hcf-primary-color, #007bff);
}

.hcf-radio-option.selected span:not(.hcf-radio-circle) {
    color: var(--hcf-primary-color, #007bff);
}

.hcf-radio-circle {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-right: 12px;
    border: 2px solid #c0c0c0;
    border-radius: 50%;
    transition: all 0.2s ease;
    position: relative;
}

.hcf-radio-option:hover .hcf-radio-circle {
    border-color: var(--hcf-primary-color, #007bff);
}

.hcf-radio-option.selected .hcf-radio-circle {
    border-color: var(--hcf-primary-color, #007bff);
}

.hcf-radio-option.selected .hcf-radio-circle:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--hcf-primary-color, #007bff);
}

.hcf-radio-option small {
    opacity: 0.7;
    font-weight: 400;
}

/* Time chips use tighter spacing within narrow columns */
.hcf-time-chips .hcf-radio-option {
    padding: 0.75rem 1rem;
    font-size: 0.95em;
}

/* Repair Navigation */
.hcf-repair-navigation {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid #f0f0f0;
}

.hcf-button-secondary {
    background-color: #6c757d;
}

.hcf-button-secondary:hover {
    background-color: #5a6268;
}

/* Repair Error Messages */
.hcf-repair-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

/* Option Price Display */
.hcf-option-price {
    font-size: 0.9em;
    color: var(--hcf-primary-color, #007bff);
    font-weight: 600;
    margin-top: 0.5rem;
}

/* Form Notice */
.form-notice {
    background: #e7f3ff;
    border-left: 4px solid var(--hcf-primary-color, #007bff);
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.form-notice em {
    color: #0056b3;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hcf-form-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .hcf-access-times-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .hcf-access-time-slot {
        padding: 1rem;
    }
    
    .hcf-time-chips {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .hcf-repair-navigation {
        flex-direction: column-reverse;
    }
    
    .hcf-repair-navigation .hcf-button {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .hcf-checkbox-option {
        padding: 0.85rem 1rem;
        font-size: 0.95em;
    }
    
    .hcf-warning-banner {
        padding: 0.85rem 1rem;
        font-size: 0.95em;
    }
}

/* Weekday checkbox options */
.hcf-weekday-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.hcf-weekday-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.97rem;
    font-weight: 500;
    color: #333;
    user-select: none;
}

.hcf-weekday-option:hover {
    border-color: var(--hcf-primary-color, #007bff);
    background: #fffdf5;
}

.hcf-weekday-option.selected {
    border-color: var(--hcf-primary-color, #007bff);
    background: var(--hcf-primary-color, #007bff);
    color: #ffffff;
}

.hcf-weekday-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
    accent-color: var(--hcf-primary-color, #007bff);
}

/* Repair form submit button - uses plugin primary color setting */
.hcf-submit-repair,
button.hcf-submit-repair,
.hcf-button.hcf-submit-repair {
    background-color: var(--hcf-primary-color, #007bff) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 1.1em !important;
    padding: 1rem 2.5rem !important;
    border-radius: 6px !important;
    border: none !important;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease !important;
    text-decoration: none !important;
}

.hcf-submit-repair:hover,
button.hcf-submit-repair:hover,
.hcf-button.hcf-submit-repair:hover,
.hcf-submit-repair:focus,
button.hcf-submit-repair:focus,
.hcf-button.hcf-submit-repair:focus {
    background-color: var(--hcf-primary-color, #007bff) !important;
    filter: brightness(0.9);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2) !important;
    text-decoration: none !important;
}

/* Secondary button (Edit Details) - gray style */
.hcf-button-secondary,
a.hcf-button-secondary,
.hcf-button.hcf-button-secondary {
    background-color: #6c757d !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    padding: 1rem 2rem !important;
    border-radius: 6px !important;
    border: none !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease !important;
    text-decoration: none !important;
}

.hcf-button-secondary:hover,
a.hcf-button-secondary:hover,
.hcf-button.hcf-button-secondary:hover,
.hcf-button-secondary:focus,
a.hcf-button-secondary:focus,
.hcf-button.hcf-button-secondary:focus {
    background-color: #5a6268 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2) !important;
    text-decoration: none !important;
}

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

.hcf-acceptance-checkbox {
    margin-bottom: 1.5rem;
    text-align: left;
}

/* Terms & Conditions Modal */
.hcf-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.hcf-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.hcf-modal-content {
    position: relative;
    max-width: 700px;
    max-height: 90vh;
    margin: 5vh auto;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.hcf-modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hcf-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #1a1a1a;
}

.hcf-modal-close,
button.hcf-modal-close {
    background: none !important;
    border: none !important;
    font-size: 2rem !important;
    line-height: 1 !important;
    color: #666 !important;
    cursor: pointer !important;
    padding: 0 !important;
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 4px !important;
    transition: background-color 0.2s, color 0.2s !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

.hcf-modal-close:hover,
button.hcf-modal-close:hover,
.hcf-modal-close:focus,
button.hcf-modal-close:focus {
    background-color: #f0f0f0 !important;
    color: #1a1a1a !important;
    border: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
    transform: none !important;
}

.hcf-modal-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
}

.hcf-modal-body h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
    color: #1a1a1a;
}

.hcf-modal-body h3:first-child {
    margin-top: 0;
}

.hcf-modal-body p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: #333;
}

.hcf-modal-body ul,
.hcf-modal-body ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.hcf-modal-body ul li,
.hcf-modal-body ol li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
    color: #333;
}

.hcf-modal-body ol.hcf-terms-list {
    counter-reset: item;
    list-style-type: none;
    padding-left: 0;
}

.hcf-modal-body ol.hcf-terms-list > li {
    counter-increment: item;
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
}

.hcf-modal-body ol.hcf-terms-list > li::before {
    content: counter(item) ". ";
    position: absolute;
    left: 0;
    font-weight: bold;
}

.hcf-modal-body ol.hcf-terms-list ol {
    margin-top: 0.5rem;
    padding-left: 1.5rem;
}

.hcf-modal-body ol.hcf-terms-list ol li {
    margin-bottom: 0.5rem;
}

.hcf-modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid #e0e0e0;
    text-align: right;
}

.hcf-modal-close-btn {
    background-color: var(--hcf-primary-color, #007bff) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 0.75rem 2rem !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    cursor: pointer;
    transition: background-color 0.2s;
}

.hcf-modal-close-btn:hover {
    background-color: var(--hcf-primary-color, #007bff) !important;
    filter: brightness(0.9);
}

@media (max-width: 768px) {
    .hcf-modal-content {
        max-width: 95%;
        margin: 2vh auto;
        max-height: 96vh;
    }
    
    .hcf-modal-header,
    .hcf-modal-body,
    .hcf-modal-footer {
        padding: 1.25rem;
    }
    
    .hcf-modal-header h2 {
        font-size: 1.25rem;
    }
}

.hcf-acceptance-checkbox a {
    color: var(--hcf-primary-color, #007bff);
}

/* ========================================
   CONFIRMATION SCREEN STYLES
   ======================================== */

.hcf-confirmation-section {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.hcf-confirmation-section h3 {
    margin: 0 0 1rem 0;
    color: #333;
    font-size: 1.1em;
    font-weight: 600;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 0.5rem;
}

/* Machine Summary */
.hcf-machine-summary {
    display: flex;
    gap: 2rem;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid var(--hcf-primary-color, #007bff);
}

.hcf-machine-image {
    flex-shrink: 0;
}

.hcf-machine-image img {
    width: 150px;
    height: auto;
    border-radius: 8px;
}

.hcf-machine-details h3 {
    margin: 0 0 1rem 0;
    font-size: 1.5em;
    color: #333;
    border: none;
    padding: 0;
}

.hcf-repair-price {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.hcf-price-label {
    font-size: 1em;
    color: #666;
}

.hcf-price-amount {
    font-size: 2em;
    font-weight: 700;
    color: var(--hcf-primary-color, #007bff);
}

.hcf-price-note {
    font-size: 0.9em;
    color: #666;
    margin: 0;
}

/* Detail Rows */
.hcf-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.hcf-detail-row:last-child {
    border-bottom: none;
}

.hcf-detail-label {
    font-weight: 600;
    color: #666;
}

.hcf-detail-value {
    color: #333;
}

/* Confirmation List */
.hcf-confirmation-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hcf-confirmation-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.hcf-confirmation-list li:last-child {
    border-bottom: none;
}

/* Address */
.hcf-address {
    font-style: normal;
    line-height: 1.8;
    color: #333;
}

/* Confirmation Actions */
.hcf-confirmation-actions {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #f0f0f0;
}

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

/* Mobile Responsive for Confirmation */
@media (max-width: 768px) {
    .hcf-machine-summary {
        flex-direction: column;
        text-align: center;
    }
    
    .hcf-machine-image img {
        width: 120px;
    }
    
    .hcf-repair-price {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .hcf-price-amount {
        font-size: 1.75em;
    }
    
    .hcf-confirmation-actions {
        flex-direction: column-reverse;
    }
    
    .hcf-confirmation-actions .hcf-button {
        width: 100%;
    }
    
    .hcf-detail-row {
        flex-direction: column;
        gap: 0.25rem;
    }
}

/* Special Case Form Styles */
.hcf-special-case-container {
    max-width: 750px;
    margin: 0 auto;
    padding: 2rem;
}

.hcf-special-case-message {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.hcf-special-case-message h3 {
    margin: 0 0 1rem 0;
    color: #856404;
    font-size: 1.3rem;
}

.hcf-special-case-message p {
    margin: 0.5rem 0;
    color: #856404;
    line-height: 1.6;
}

.hcf-special-case-success {
    background: #d4edda;
    border: 2px solid #28a745;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    margin-top: 2rem;
}

.hcf-special-case-success h3 {
    margin: 0 0 1rem 0;
    color: #155724;
    font-size: 1.5rem;
}

.hcf-special-case-success p {
    margin: 0;
    color: #155724;
    font-size: 1.1rem;
    line-height: 1.6;
}

.hcf-special-case-error {
    background: #f8d7da;
    border: 2px solid #dc3545;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    color: #721c24;
    font-weight: 500;
}

/* Special case form styling */
#hcf-special-case-form {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 2rem;
    border: 1px solid #e0e0e0;
}

#hcf-special-case-form .hcf-form-field {
    margin-bottom: 1.5rem;
}

#hcf-special-case-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

#hcf-special-case-form .hcf-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#hcf-special-case-form .hcf-input:focus {
    outline: none;
    border-color: var(--hcf-primary-color, #007bff);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
}

#hcf-special-case-form .hcf-submit-btn {
    width: 100%;
    background-color: var(--hcf-primary-color, #007bff);
    color: #ffffff;
    font-weight: 700;
    font-size: 1.1em;
    padding: 1rem 2.5rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

#hcf-special-case-form .hcf-submit-btn:hover:not(:disabled) {
    background-color: var(--hcf-primary-color, #007bff);
    filter: brightness(0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

#hcf-special-case-form .hcf-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Responsive adjustments for special case form */
@media (max-width: 768px) {
    .hcf-special-case-container {
        padding: 1rem;
    }
    
    .hcf-special-case-message,
    #hcf-special-case-form {
        padding: 1.5rem;
    }
    
    .hcf-special-case-success {
        padding: 1.5rem;
    }
}

/* ============================================
   MACHINE CHECK FORM STYLES
   ============================================ */

/* Machine Check submit button - uses plugin primary color */
.hcf-submit-machine-check,
button.hcf-submit-machine-check,
.hcf-button.hcf-submit-machine-check,
a.hcf-submit-machine-check {
    background-color: var(--hcf-primary-color, #007bff) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    border: none !important;
    padding: 1rem 2.5rem !important;
    font-size: 1.1rem !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    display: inline-block !important;
    line-height: 1.5 !important;
    text-align: center !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

.hcf-submit-machine-check:hover,
button.hcf-submit-machine-check:hover,
.hcf-button.hcf-submit-machine-check:hover,
a.hcf-submit-machine-check:hover,
.hcf-submit-machine-check:focus,
button.hcf-submit-machine-check:focus,
.hcf-button.hcf-submit-machine-check:focus,
a.hcf-submit-machine-check:focus {
    background-color: var(--hcf-primary-color, #007bff) !important;
    filter: brightness(0.9);
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15) !important;
    text-decoration: none !important;
}

.hcf-submit-machine-check:disabled,
button.hcf-submit-machine-check:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

/* Override any Elementor link/button styles */
.elementor-widget-container .hcf-submit-machine-check,
.elementor-button-wrapper .hcf-submit-machine-check,
.elementor a.hcf-submit-machine-check {
    background-color: var(--hcf-primary-color, #007bff) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    border: none !important;
    padding: 1rem 2.5rem !important;
    font-size: 1.1rem !important;
    text-decoration: none !important;
}

.elementor-widget-container .hcf-submit-machine-check:hover,
.elementor-button-wrapper .hcf-submit-machine-check:hover,
.elementor a.hcf-submit-machine-check:hover {
    background-color: var(--hcf-primary-color, #007bff) !important;
    filter: brightness(0.9);
    color: #ffffff !important;
    text-decoration: none !important;
}

/* Machine Check confirmation actions */
.hcf-confirmation-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Responsive for Machine Check buttons */
@media (max-width: 768px) {
    .hcf-confirmation-actions {
        flex-direction: column-reverse;
    }
    
    .hcf-confirmation-actions .hcf-button {
        width: 100%;
    }
    
    .hcf-submit-machine-check,
    button.hcf-submit-machine-check,
    .hcf-button.hcf-submit-machine-check {
        width: 100% !important;
        padding: 1rem 1.5rem !important;
    }
}
