.hmc-form-container {
    width: 100% !important;
    margin: 0 auto;
    padding: 0 !important;
    border: none !important;
    overflow-x: hidden; /* Prevent horizontal scroll */
    max-width: 100vw; /* Ensure container doesn't exceed viewport */
}

/* Swiper container */
.hmc-swiper {
    width: 100%;
    height: auto;
    min-height: 50vh;
    position: relative;
    padding-bottom: 50px; /* Space for pagination */
}

.hmc-swiper .swiper-wrapper {
    align-items: stretch;
}

.hmc-swiper .swiper-slide {
    height: auto;
    display: flex;
    flex-direction: column;
    opacity: 0 !important;
    transition: opacity 0.4s ease;
}

.hmc-swiper .swiper-slide-active,
.hmc-swiper .swiper-slide.hmc-recommendation-slide.swiper-slide-active {
    opacity: 1 !important;
}

/* Ensure recommendation slide is visible when active */
.hmc-swiper .hmc-recommendation-slide.swiper-slide-active {
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
}

/* Pagination bullets */
.hmc-swiper-pagination {
    position: absolute;
    bottom: 0;
    left: 50% !important; /* Override Swiper's left: 0 */
    transform: translateX(-50%);
    width: auto !important; /* Override Swiper's width: 100% */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    z-index: 10;
}

/* Override Swiper's default pagination styles */
.hmc-swiper .swiper-pagination-horizontal,
.hmc-swiper .swiper-pagination-bullets,
.hmc-swiper .swiper-pagination-custom,
.hmc-swiper .swiper-pagination-fraction {
    left: 50% !important;
    transform: translateX(-50%);
    width: auto !important;
}

.hmc-pagination-bullet {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    opacity: 0.5;
}

.hmc-pagination-bullet:hover {
    opacity: 0.8;
    transform: scale(1.2);
}

.hmc-pagination-bullet-active {
    background-color: #0073aa;
    opacity: 1;
    transform: scale(1.3);
}

.hmc-pagination-bullet.hmc-bullet-enabled {
    cursor: pointer;
    opacity: 0.5;
}

.hmc-pagination-bullet.hmc-bullet-enabled:hover {
    opacity: 0.8;
    background-color: #0073aa;
}

.hmc-pagination-bullet.hmc-bullet-disabled {
    cursor: not-allowed;
    opacity: 0.2;
    background-color: #999;
}

.hmc-pagination-bullet.hmc-bullet-disabled:hover {
    opacity: 0.2;
    transform: none;
}

.hmc-step {
    padding: 20 !important;
    border: none !important;
    border-radius: 12px !important;
    margin-bottom: 30px !important;
    transition: all 0.3s ease;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
}

.hmc-step-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.hmc-step-title {
    margin-top: 0;
    margin-bottom: 15px !important;
    font-weight: 700;
}

.hmc-step-description {
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: 400;
}
.hmc-step-options {
    display: grid;
    gap: 20px;
    max-width: 100%;
}

/* Desktop: adapts to number of items, max 5 columns */
@media (min-width: 768px) {
    .hmc-step-options[data-options-count="1"] {
        grid-template-columns: repeat(1, 1fr);
    }
    .hmc-step-options[data-options-count="2"] {
        grid-template-columns: repeat(2, 1fr);
    }
    .hmc-step-options[data-options-count="3"] {
        grid-template-columns: repeat(3, 1fr);
    }
    .hmc-step-options[data-options-count="4"] {
        grid-template-columns: repeat(4, 1fr);
    }
    .hmc-step-options[data-options-count="5"],
    .hmc-step-options[data-options-count="6"],
    .hmc-step-options[data-options-count="7"],
    .hmc-step-options[data-options-count="8"],
    .hmc-step-options[data-options-count="9"],
    .hmc-step-options[data-options-count="10"] {
        grid-template-columns: repeat(5, 1fr);
    }
    
    /* Fallback for when data attribute is not set */
    .hmc-step-options:not([data-options-count]) {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        max-width: calc(5 * (100% / 5));
    }
}

/* Mobile: always 2 columns (50% each) */
@media (max-width: 767px) {
    .hmc-step-options {
        grid-template-columns: repeat(2, 1fr);
    }
}

.hmc-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px !important;
    border: none !important;
    border-radius: 12px !important;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1) !important;
    text-align: center;
    position: relative;
    min-height: 150px;
}

.hmc-option:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.hmc-radio-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
    cursor: pointer;
}

/* Selected state - using :has() for modern browsers */
@supports selector(:has(*)) {
    .hmc-option:has(.hmc-radio-input:checked) {
        border: 2px solid #012B55 !important;
    }
}

/* Fallback for browsers without :has() support */
.hmc-option.hmc-option-selected {
    border: 2px solid #012B55 !important;
}

.hmc-option-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 0 10px;
}
.hmc-option-label {
    cursor: pointer;
    margin-top: 12px;
    margin-bottom: 4px;
}
.hmc-option-description {
    cursor: pointer;
    text-align: center;
    margin-bottom: 12px;
}

.hmc-option-image {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    flex-shrink: 0;
    min-height: 80px;
}

.hmc-option-image img {
    width: auto;
    max-width: 300px !important;
    max-height: 100px;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 8px !important;
}

/* Mobile: Force images to fit within container */
@media (max-width: 767px) {
    .hmc-form-container {
        padding: 0 !important;
    }
    
    .hmc-step {
        padding: 0 !important;
        border-radius: 10px !important;
    }
    
    .hmc-step-content {
        padding: 0 !important;
    }
    
    .hmc-option-image {
        max-width: 100%;
        overflow: hidden;
    }
    
    .hmc-option-image img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        object-fit: contain;
    }
    
    .hmc-option {
        padding: 0 !important;
        border-radius: 10px !important;
        max-width: 100%;
        overflow: hidden;
    }
    
    .hmc-option-content {
        padding: 0 !important;
    }
    
    .hmc-step-options {
        max-width: 100%;
        overflow: hidden;
        gap: 10px;
    }
    
    /* Remove font sizes - use theme defaults */
    .hmc-step-title {
        line-height: inherit;
    }
    
    .hmc-step-description {
        line-height: inherit;
    }
    
    .hmc-card-content {
        padding: 0 !important;
    }
    
    .hmc-rec-description {
        padding: 0 !important;
    }
    
    .hmc-recommendation-result {
        padding: 0 !important;
    }
    
    /* Additional padding removals */
    .hmc-rec-description {
        padding: 0 !important;
    }
    
    .hmc-rec-content-loading {
        padding: 0 !important;
    }
    
    .hmc-debug-info {
        padding: 0 !important;
    }
    
    .hmc-debug-row {
        padding: 0 !important;
    }
    
    .hmc-debug-row code {
        padding: 0 !important;
    }
    
    .hmc-debug-row pre {
        padding: 0 !important;
    }
    
    .hmc-reset-wrapper {
        padding-top: 0 !important;
    }
    
    .hmc-reset-button {
        padding: 0 !important;
    }
}

/* If no image, adjust label spacing */
.hmc-option:not(:has(.hmc-option-image img)) .hmc-option-label {
    margin-top: 0;
}

/* Fallback for browsers without :has() */
.hmc-option:not(.hmc-has-image) .hmc-option-label {
    margin-top: 0;
}
.hmc-recommendation-slide {
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 100%;
}

.hmc-recommendation-result {
    margin-top: 40px;
    padding: 0px;
}

.hmc-recommendations-header {
    margin-top: 0;
    margin-bottom: 30px;
    text-align: left;
}

.hmc-recommendation-result .hmc-rec-title {
    margin-bottom: 20px;
    display: none; /* Hide individual recommendation titles, use header instead */
}

.hmc-rec-description {
    margin-top: 15px;
    margin-bottom: 20px;
    
}
.hmc-recommendation-item {
    margin-bottom: 30px;
}
.hmc-recommendation-item:last-child {
    margin-bottom: 0;
}
.hmc-rec-title {
    margin-top: 0;
    margin-bottom: 15px;
    font-weight: bold;
}

.hmc-rec-title h4,
.hmc-recommendation-item h4 {
    font-weight: bold;
}
.hmc-rec-description {
    margin-top: 15px;
    margin-bottom: 20px;
    padding: 0;
    background: #fff;
    border-radius: 4px;
}
.hmc-rec-content-items {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

@media (max-width: 767px) {
    .hmc-rec-content-items {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .hmc-rec-content-loading {
        padding: 0 !important;
    }
    
    .hmc-debug-info {
        padding: 0 !important;
    }
    
    .hmc-debug-row {
        padding: 0 !important;
    }
    
    .hmc-debug-row code {
        padding: 0 !important;
    }
    
    .hmc-debug-row pre {
        padding: 0 !important;
    }
    
    .hmc-reset-wrapper {
        padding-top: 0 !important;
    }
    
    .hmc-reset-button {
        padding: 0 !important;
    }
}
.hmc-rec-content-loading {
    text-align: center;
    padding: 20px;
    grid-column: 1 / -1;
    font-style: italic;
}
.hmc-rec-content.hmc-loading {
    font-style: italic;
}
/* Product Card Styles */
.hmc-product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: none;
    border: none;
    transition: none;
    margin-bottom: 30px;
    max-width: 400px;
}

.hmc-product-card:hover {
    transform: none;
    box-shadow: none;
}

.hmc-product-image-wrapper {
    position: relative;
    background: #fff;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
}

.hmc-product-image-link {
    display: block;
    width: 100%;
    text-decoration: none;
}

.hmc-product-thumbnail {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hmc-product-thumbnail img {
    max-width: 100% !important;
    height: auto;
    object-fit: contain;
}

.hmc-product-content {
    padding: 20px;
}

.hmc-product-title {
    margin: 0 0 12px 0;
    font-weight: bold;
}

.hmc-product-title a {
    text-decoration: none;
}


.hmc-product-excerpt {
    margin: 0 0 15px 0;
    color: #666;
    line-height: 1.6;
    max-width: 100%;
}

.hmc-product-rating {
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 2px;
}

.hmc-star {
    line-height: 1;
}

.hmc-star-filled {
    color: #000;
}

.hmc-star-empty {
    color: #ccc;
}

.hmc-product-price {
    margin: 0 0 15px 0;
}


.hmc-product-buy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 10px;
    cursor: pointer;
    border: 2px solid transparent;
    white-space: nowrap;
    background-color: #002b56;
    color: white;
}

.hmc-product-buy-btn:hover {
    background-color: #003d7a;
    text-decoration: none;
}

.hmc-product-read-more-btn {
    /* Same style as buy button */
}

.hmc-buy-text {
    color: white;
}

/* Regular Page/Post Card Styles */
.hmc-content-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 20px;
}

.hmc-content-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.hmc-card-link {
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
    color: inherit;
}

.hmc-card-link:hover {
    text-decoration: none !important;
}

.hmc-content-card:hover .hmc-card-link,
.hmc-product-card:hover .hmc-card-link {
    text-decoration: none !important;
}

.hmc-card-thumbnail-wrapper {
    flex: 0 0 200px;
    min-height: 150px;
    background: #f0f0f0;
    overflow: hidden;
}

.hmc-card-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hmc-card-thumbnail-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.hmc-card-content {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.hmc-card-title {
    margin: 0 0 10px 0;
    font-weight: bold;
}

.hmc-card-excerpt {
    margin: 0 0 10px 0;
    flex: 1;
    color: #666;
    line-height: 1.6;
    max-width: 100%;
}

@media (max-width: 600px) {
    .hmc-card-thumbnail-wrapper {
        flex: 0 0 auto;
        width: 100%;
    }
    .hmc-product-card {
        max-width: 100%;
    }
    
    /* Remove all paddings */
    .hmc-product-content {
        padding: 0 !important;
    }
    
    .hmc-product-image-wrapper {
        padding: 0 !important;
    }
    
    .hmc-card-content {
        padding: 0 !important;
    }
    
    .hmc-card-thumbnail-wrapper {
        padding: 0 !important;
    }
}

/* Reset Button Styles */
.hmc-reset-wrapper {
    margin-top: 30px;
    text-align: center;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
}

.hmc-reset-button {
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    padding: 10px 20px !important;
    text-decoration: none !important;
    box-shadow: none !important;
    transform: none !important;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hmc-reset-button:hover {
    background: none !important;
    background-color: transparent !important;
    box-shadow: none !important;
    transform: none !important;
    text-decoration: underline !important;
}

.hmc-reset-button:active {
    transform: translateY(0);
}

/* Debug Info Styles (Admin Only) */
.hmc-debug-info {
    margin-top: 20px;
    padding: 20px;
    background-color: #f5f5f5 !important;
    border: 2px solid #d0d0d0 !important;
    border-radius: 8px;
    font-family: monospace;
    color: #1d2327 !important;
}

.hmc-debug-info h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #1d2327 !important;
}

.hmc-debug-row {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ddd;
}

.hmc-debug-row:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.hmc-debug-row strong {
    display: block;
    margin-bottom: 5px;
    color: #1d2327 !important;
}

.hmc-debug-row code {
    display: block;
    padding: 8px;
    background-color: #fff !important;
    border: 1px solid #ddd !important;
    border-radius: 4px;
    word-break: break-all;
    color: #1d2327 !important;
}

.hmc-debug-row pre {
    display: block;
    padding: 10px;
    background-color: #fff !important;
    border: 1px solid #ddd !important;
    border-radius: 4px;
    overflow-x: auto;
    max-height: 200px;
    overflow-y: auto;
    margin: 5px 0 0 0;
    white-space: pre-wrap;
    word-wrap: break-word;
    color: #1d2327 !important;
}

/* Typography and recommendation page theming */
.hmc-form-container {
    --hmc-step-title-size: 36px;
    --hmc-step-title-color: #102449;
    --hmc-step-description-size: 18px;
    --hmc-step-description-color: #475569;
    --hmc-option-label-size: 18px;
    --hmc-option-label-color: #0f172a;
    --hmc-recommendation-title-size: 42px;
    --hmc-recommendation-title-color: #102449;
    --hmc-recommendation-description-size: 18px;
    --hmc-recommendation-description-color: #334155;
    --hmc-primary-button-bg: #1d4ed8;
    --hmc-primary-button-text: #ffffff;
}

.hmc-form-container .hmc-step-title {
    font-size: var(--hmc-step-title-size);
    line-height: 1.15;
    color: var(--hmc-step-title-color);
    letter-spacing: -0.02em;
}

.hmc-form-container .hmc-step-description {
    font-size: var(--hmc-step-description-size);
    line-height: 1.55;
    color: var(--hmc-step-description-color);
}

.hmc-form-container .hmc-option-label {
    font-size: var(--hmc-option-label-size);
    line-height: 1.35;
    color: var(--hmc-option-label-color);
    font-weight: 700;
}

/* Recommendation page refresh */
.hmc-form-container .hmc-recommendation-result {
    margin-top: 20px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.hmc-form-container .hmc-recommendations-header {
    margin-bottom: 12px;
    font-size: var(--hmc-recommendation-title-size);
    line-height: 1.1;
    color: var(--hmc-recommendation-title-color);
    letter-spacing: -0.02em;
    font-weight: 800;
}

.hmc-form-container .hmc-rec-description {
    margin: 0 0 26px;
    padding: 0;
    background: transparent;
    color: var(--hmc-recommendation-description-color);
    font-size: var(--hmc-recommendation-description-size);
    line-height: 1.65;
}

.hmc-form-container .hmc-recommendation-item {
    margin-bottom: 20px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: none;
}

.hmc-form-container .hmc-rec-title {
    margin-bottom: 14px;
    color: var(--hmc-recommendation-title-color);
}

/* Contact form visual upgrade (CF7 + Gravity Forms) */
.hmc-form-container .hmc-rec-cf7-form,
.hmc-form-container .hmc-rec-gravity-form,
.hmc-form-container .hmc-rec-native-form {
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: none;
}

.hmc-form-container .hmc-rec-cf7-form input[type="text"],
.hmc-form-container .hmc-rec-cf7-form input[type="email"],
.hmc-form-container .hmc-rec-cf7-form input[type="tel"],
.hmc-form-container .hmc-rec-cf7-form textarea,
.hmc-form-container .hmc-rec-gravity-form input[type="text"],
.hmc-form-container .hmc-rec-gravity-form input[type="email"],
.hmc-form-container .hmc-rec-gravity-form input[type="tel"],
.hmc-form-container .hmc-rec-gravity-form textarea,
.hmc-form-container .hmc-rec-gravity-form select,
.hmc-form-container .hmc-rec-native-form input[type="text"],
.hmc-form-container .hmc-rec-native-form input[type="email"],
.hmc-form-container .hmc-rec-native-form input[type="tel"],
.hmc-form-container .hmc-rec-native-form textarea {
    width: 100%;
    border-radius: 0;
    border: 1px solid #cdd9ea;
    background: transparent;
    padding: 12px 14px;
    color: #0f172a;
    box-sizing: border-box;
}

.hmc-form-container .hmc-rec-cf7-form input:focus,
.hmc-form-container .hmc-rec-cf7-form textarea:focus,
.hmc-form-container .hmc-rec-gravity-form input:focus,
.hmc-form-container .hmc-rec-gravity-form textarea:focus,
.hmc-form-container .hmc-rec-gravity-form select:focus,
.hmc-form-container .hmc-rec-native-form input:focus,
.hmc-form-container .hmc-rec-native-form textarea:focus {
    border-color: #4f8cff;
    box-shadow: 0 0 0 3px rgba(79, 140, 255, 0.14);
    outline: none;
}

.hmc-form-container .hmc-rec-cf7-form input[type="submit"],
.hmc-form-container .hmc-rec-cf7-form button,
.hmc-form-container .hmc-rec-gravity-form button,
.hmc-form-container .hmc-rec-gravity-form input[type="submit"],
.hmc-form-container .hmc-rec-native-form button,
.hmc-form-container .hmc-rec-native-form input[type="submit"],
.hmc-form-container .hmc-product-buy-btn {
    background: var(--hmc-primary-button-bg) !important;
    color: var(--hmc-primary-button-text) !important;
    border: 1px solid transparent !important;
    border-radius: 0 !important;
    padding: 11px 22px !important;
    font-weight: 700 !important;
    transition: transform 0.2s ease, filter 0.2s ease !important;
}

.hmc-form-container .hmc-rec-cf7-form input[type="submit"]:hover,
.hmc-form-container .hmc-rec-cf7-form button:hover,
.hmc-form-container .hmc-rec-gravity-form button:hover,
.hmc-form-container .hmc-rec-gravity-form input[type="submit"]:hover,
.hmc-form-container .hmc-rec-native-form button:hover,
.hmc-form-container .hmc-rec-native-form input[type="submit"]:hover,
.hmc-form-container .hmc-product-buy-btn:hover {
    transform: translateY(-1px);
    filter: brightness(0.95);
}

.hmc-form-container .hmc-rec-native-form .hmc-native-form-response {
    margin-top: 10px;
    font-size: 14px;
}

.hmc-form-container .hmc-rec-native-form .hmc-native-form-success {
    color: #0f766e;
}

.hmc-form-container .hmc-rec-native-form .hmc-native-form-error {
    color: #b91c1c;
}

.hmc-form-container .hmc-rec-native-form .hmc-native-debug-preview {
    margin-top: 12px;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font-family: monospace;
    font-size: 12px;
    color: #0f172a;
}

/* Default style adjustments */
h3.hmc-step-description {
    padding-bottom: 50px;
}

label.hmc-option {
    background: white;
}

span.hmc-option-description {
    font-weight: 400;
}

span.hmc-option-label {
    margin-bottom: 10px;
}

form.hmc-native-contact-form label {
    display: block;
    width: 100%;
}

.hmc-form-container .hmc-rec-cf7-form label,
.hmc-form-container .hmc-rec-gravity-form label {
    display: block;
    width: 100%;
}

form.hmc-native-contact-form input {
    width: 100%;
    background-color: white;
}

.hmc-form-container .hmc-rec-cf7-form input:not([type="submit"]),
.hmc-form-container .hmc-rec-cf7-form textarea,
.hmc-form-container .hmc-rec-cf7-form select,
.hmc-form-container .hmc-rec-gravity-form input:not([type="submit"]),
.hmc-form-container .hmc-rec-gravity-form textarea,
.hmc-form-container .hmc-rec-gravity-form select,
.hmc-form-container .hmc-rec-native-form input:not([type="submit"]),
.hmc-form-container .hmc-rec-native-form textarea,
.hmc-form-container .hmc-rec-native-form select {
    background-color: #fff !important;
}

div.hmc-reset-wrapper {
    color: red;
    border: none;
}

button.hmc-reset-button {
    color: red;
}

form p label {
    font-weight: 400;
}

.hmc-contact-form-two-col-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 200px;
    align-items: start;
}

.hmc-contact-form-two-col-layout .hmc-contact-form-two-col-left,
.hmc-contact-form-two-col-layout .hmc-contact-form-two-col-right {
    width: 100%;
}

.hmc-contact-form-two-col-layout .hmc-recommendation-item {
    margin-bottom: 0;
}

.hmc-contact-form-two-col-layout .hmc-recommendations-header {
    margin-top: 0;
}

@media (max-width: 900px) {
    .hmc-contact-form-two-col-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 767px) {
    .hmc-form-container .hmc-step-title {
        font-size: calc(var(--hmc-step-title-size) * 0.78);
    }

    .hmc-form-container .hmc-recommendations-header {
        font-size: calc(var(--hmc-recommendation-title-size) * 0.72);
    }

    .hmc-form-container .hmc-recommendation-result {
        padding: 0;
        border-radius: 0;
    }

    /* Mobile contact-form best practices: avoid horizontal overflow and zoom. */
    .hmc-contact-form-two-col-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .hmc-form-container .hmc-contact-form-two-col-left,
    .hmc-form-container .hmc-contact-form-two-col-right,
    .hmc-form-container .hmc-rec-native-form,
    .hmc-form-container .hmc-rec-cf7-form,
    .hmc-form-container .hmc-rec-gravity-form {
        width: 100%;
        max-width: 100%;
    }

    .hmc-form-container .hmc-rec-cf7-form input:not([type="submit"]),
    .hmc-form-container .hmc-rec-cf7-form textarea,
    .hmc-form-container .hmc-rec-cf7-form select,
    .hmc-form-container .hmc-rec-gravity-form input:not([type="submit"]),
    .hmc-form-container .hmc-rec-gravity-form textarea,
    .hmc-form-container .hmc-rec-gravity-form select,
    .hmc-form-container .hmc-rec-native-form input:not([type="submit"]),
    .hmc-form-container .hmc-rec-native-form textarea,
    .hmc-form-container .hmc-rec-native-form select {
        width: 100% !important;
        box-sizing: border-box;
        font-size: 16px; /* Prevent iOS zoom on focus */
    }

    .hmc-form-container .hmc-rec-cf7-form input[type="submit"],
    .hmc-form-container .hmc-rec-cf7-form button,
    .hmc-form-container .hmc-rec-gravity-form input[type="submit"],
    .hmc-form-container .hmc-rec-gravity-form button,
    .hmc-form-container .hmc-rec-native-form input[type="submit"],
    .hmc-form-container .hmc-rec-native-form button {
        width: 100%;
        min-height: 44px;
    }
}

