/* Style for pre-filled fields */
.axispoint-prefilled-field {
    background-color: #f8f9fa;
    border-left: 4px solid #28a745;
    padding-left: 10px;
}

.axispoint-field-note {
    font-size: 12px;
    color: #28a745;
    font-style: italic;
    margin-top: 5px;
}

/* Ensure Gravity Forms fields are visible */
.axispoint-form-container .gform_wrapper {
    display: block !important;
}

.axispoint-form-container .gfield {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Style for our custom buttons */
.axispoint-btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.axispoint-btn-primary {
    background-color: #007cba;
    color: white;
}

.axispoint-btn-primary:hover {
    background-color: #005a87;
}

.axispoint-btn-secondary {
    background-color: #6c757d;
    color: white;
}

.axispoint-btn-secondary:hover {
    background-color: #545b62;
}

.axispoint-btn-disabled {
    background-color: #ccc;
    color: #666;
    cursor: not-allowed;
}
/* Prevent Gravity Forms from hiding fields */
.gform_wrapper .gform_hidden,
.gform_wrapper .gf_invisible,
.gform_wrapper [style*="display: none"] {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Style for pre-filled fields */
.axispoint-prefilled-field {
    background-color: #f8f9fa;
    border-left: 4px solid #007cba;
    padding: 10px;
    margin-bottom: 15px;
}

.axispoint-field-note {
    font-size: 12px;
    color: #666;
    font-style: italic;
    margin-top: 5px;
}

/* Ensure conditional fields are visible */
.gform_wrapper .gfield_visibility_visible {
    display: block !important;
}

.gform_wrapper .gfield_visibility_hidden {
    display: none !important;
}
/* AxisPoints Frontend Styles - Corrected for Marker Positioning */
.axispoint-wrapper .axispoint-header {
    height: auto;
    text-align: left;
    padding: 22px 24px;
    border-radius: 16px;
}
.axispoint-wrapper .axispoint-header h2 {
    font-size: 20px;
    line-height: 100%;
    position: relative;
    padding-left: 50px;
}
.axispoint-wrapper .axispoint-header h2:before {
    content: '';
    background-image: url('/wp-content/plugins/axispoints-for-gravity-forms/assets/images/bar-icon.png');
    width: 40px;
    height: 40px;
    position: absolute;
    left: 0px;
    top: -10px;
}
.axispoint-no-selections {
    position: relative;
    padding-top: 200px !important;
}
.axispoint-no-selections:before {
    content: '';
    background-image: url('/wp-content/plugins/axispoints-for-gravity-forms/assets/images/book-icon.png');
    width: 216px;
    height: 173px;
    position: absolute;
    left: 50%;
    transform: translate(-50%);
    top: 0px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.axispoint-wrapper .axispoint-right {
    padding-left: 0px;
    padding-right: 0px;
}
.axispoint-right .axispoint-selections-container,
.axispoint-right h3.axispoint-custom-title,
.axispoint-form-section {
    padding-left: 25px;
    padding-right: 25px;
}
.axispoint-right .axispoint-custom-instructions {
    margin: 0px 25px;
    border-left: none !important;
}

.axispoint-form-container .gfield_checkbox li {
    border: 1px solid #EDEDF1;
    border-radius: 12px;
    padding: 12px !important;
    display: inline-block;
    width: 49%;
    margin-bottom: 16px;
}
.axispoint-form-container .gfield_checkbox label {
    display: inline-block !important;
    border: none;
    background-color: transparent;
    padding: 0px;
    width: auto;
}
.axispoint-form-section ul.axispoint-concerns-checkbox-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.axispoint-form-container .gfield_checkbox input {
    border: 1px solid #1B144C29;
    border-radius: 50%;
    position: relative;
    top: 3px;
}
@supports (-webkit-appearance: none) or (-moz-appearance: none) {
    .axispoint-form-container input[type=checkbox]:after {
        left: 8px;
        top: 4px;
    }
}
.axispoint-form-section h3.axispoint-custom-title {
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 20px;
}
.axispoint-right .axispoint-form-section h3.axispoint-custom-title {
    padding-left: 0px;
    padding-right: 0px;
}
.axispoint-right .axispoint-form-section {
    margin-top: 0px;
    border: brown;
}
.axispoint-right .axispoint-form-section {
    padding-top: 0px;
}
.axispoint-right #axispoint-finish-consultation {
    background-color: transparent !important;
}
#main .axispoint-wrapper .axispoint-right .axispoint-btn-primary {
    background-color: #1B144C !important;
    border: 1px solid #1B144C !important;
    color: #fff;
    border-radius: 50px;
}
.axispoint-right .axispoint-selection-actions button {
    border: none;
}
.axispoint-right .axispoint-btn-secondary#axispoint-cancel-form {
    background-color: transparent;
    border: none;
    color: #000;
}
.axispoint-right .axispoint-custom-instructions .axispoint-start-text {
    text-align: left;
    display: block;
    color: #1B144C;
    font-size: 18px;
    position: relative;
    padding-left: 30px;
}
.axispoint-right .axispoint-custom-instructions .axispoint-start-text i {
    display: none;
}
.axispoint-right .axispoint-custom-instructions .axispoint-start-text:before {
    content: '';
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEwIDE1QzEwLjI4MzMgMTUgMTAuNTIwOCAxNC45MDQyIDEwLjcxMjUgMTQuNzEyNUMxMC45MDQyIDE0LjUyMDggMTEgMTQuMjgzMyAxMSAxNEMxMSAxMy43MTY3IDEwLjkwNDIgMTMuNDc5MiAxMC43MTI1IDEzLjI4NzVDMTAuNTIwOCAxMy4wOTU4IDEwLjI4MzMgMTMgMTAgMTNDOS43MTY2NyAxMyA5LjQ3OTE3IDEzLjA5NTggOS4yODc1IDEzLjI4NzVDOS4wOTU4MyAxMy40NzkyIDkgMTMuNzE2NyA5IDE0QzkgMTQuMjgzMyA5LjA5NTgzIDE0LjUyMDggOS4yODc1IDE0LjcxMjVDOS40NzkxNyAxNC45MDQyIDkuNzE2NjcgMTUgMTAgMTVaTTkgMTFIMTFWNUg5VjExWk0xMCAyMEM4LjYxNjY3IDIwIDcuMzE2NjcgMTkuNzM3NSA2LjEgMTkuMjEyNUM0Ljg4MzMzIDE4LjY4NzUgMy44MjUgMTcuOTc1IDIuOTI1IDE3LjA3NUMyLjAyNSAxNi4xNzUgMS4zMTI1IDE1LjExNjcgMC43ODc1IDEzLjlDMC4yNjI1IDEyLjY4MzMgMCAxMS4zODMzIDAgMTBDMCA4LjYxNjY3IDAuMjYyNSA3LjMxNjY3IDAuNzg3NSA2LjFDMS4zMTI1IDQuODgzMzMgMi4wMjUgMy44MjUgMi45MjUgMi45MjVDMy44MjUgMi4wMjUgNC44ODMzMyAxLjMxMjUgNi4xIDAuNzg3NUM3LjMxNjY3IDAuMjYyNSA4LjYxNjY3IDAgMTAgMEMxMS4zODMzIDAgMTIuNjgzMyAwLjI2MjUgMTMuOSAwLjc4NzVDMTUuMTE2NyAxLjMxMjUgMTYuMTc1IDIuMDI1IDE3LjA3NSAyLjkyNUMxNy45NzUgMy44MjUgMTguNjg3NSA0Ljg4MzMzIDE5LjIxMjUgNi4xQzE5LjczNzUgNy4zMTY2NyAyMCA4LjYxNjY3IDIwIDEwQzIwIDExLjM4MzMgMTkuNzM3NSAxMi42ODMzIDE5LjIxMjUgMTMuOUMxOC42ODc1IDE1LjExNjcgMTcuOTc1IDE2LjE3NSAxNy4wNzUgMTcuMDc1QzE2LjE3NSAxNy45NzUgMTUuMTE2NyAxOC42ODc1IDEzLjkgMTkuMjEyNUMxMi42ODMzIDE5LjczNzUgMTEuMzgzMyAyMCAxMCAyMFpNMTAgMThDMTIuMjMzMyAxOCAxNC4xMjUgMTcuMjI1IDE1LjY3NSAxNS42NzVDMTcuMjI1IDE0LjEyNSAxOCAxMi4yMzMzIDE4IDEwQzE4IDcuNzY2NjcgMTcuMjI1IDUuODc1IDE1LjY3NSA0LjMyNUMxNC4xMjUgMi43NzUgMTIuMjMzMyAyIDEwIDJDNy43NjY2NyAyIDUuODc1IDIuNzc1IDQuMzI1IDQuMzI1QzIuNzc1IDUuODc1IDIgNy43NjY2NyAyIDEwQzIgMTIuMjMzMyAyLjc3NSAxNC4xMjUgNC4zMjUgMTUuNjc1QzUuODc1IDE3LjIyNSA3Ljc2NjY3IDE4IDEwIDE4WiIgZmlsbD0iIzFCMTQ0QyIvPgo8L3N2Zz4K');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    width: 20px;
    height: 20px;
    position: absolute;
    left: 0px;
    top: 6px;
}

/* No remaining fields message */
.axispoint-no-remaining-fields {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
    color: #6c757d;
}

.axispoint-no-remaining-fields p {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
}
/* Panel Visibility Control */
.axispoint-active-panel {
    display: block !important;
}

.axispoint-hidden-panel {
    display: none !important;
}

/* Ensure proper panel display */
.axispoint-selections-panel.axispoint-active-panel,
.axispoint-form-section.axispoint-active-panel {
    display: block;
}

.axispoint-selections-panel.axispoint-hidden-panel,
.axispoint-form-section.axispoint-hidden-panel {
    display: none;
}

/* Instructions visibility */
.axispoint-instructions {
    display: block;
}

/* When there are selections, hide instructions */
.axispoint-selections-list:not(:empty) + #axispoint-instructions,
.axispoint-selections-list:not(:empty) ~ #axispoint-instructions {
    display: none;
}.axispoint-wrapper .axispoint-image-wrapper .axispoint-marker {
    padding: 5px;
}
.axispoint-wrapper .axispoint-left {
    background-color: #fff;
    text-align: center;
}
.axispoint-wrapper .axispoint-left .axispoint-image-wrapper img {
    margin: auto;
}
.axispoint-wrapper .axispoint-image-wrapper .axispoint-marker .axispoint-custom-icon {
    position: absolute;
    top: 1px;
    left: 1px;
}

input[type=checkbox] + label, input[type=radio] + label {
    display: inline-flex !important;
    padding-left: 10px;
    font-size: var(--global--font-size-xs);
    vertical-align: top;
}

/* Multi-Step Layout Fixes */
.axispoint-step {
    display: none;
    width: 100%;
}

.axispoint-step.active {
    display: block;
}

.axispoint-step-selections.active,
.axispoint-step-concerns.active,
.axispoint-step-personal.active {
    display: block;
}

/* Ensure proper step visibility */
.axispoint-step-selections,
.axispoint-step-concerns,
.axispoint-step-personal {
    display: none;
}

.axispoint-step-selections.active,
.axispoint-step-concerns.active,
.axispoint-step-personal.active {
    display: block;
}

/* Personal Details Section Specific Styles */
.axispoint-personal-details-section {
    display: none;
}

.axispoint-step-personal.active .axispoint-personal-details-section {
    display: block;
}

/* Form Section Visibility */
.axispoint-form-section {
    display: none;
}

.axispoint-step-concerns.active .axispoint-form-section {
    display: block;
}

/* Selections Panel Visibility */
.axispoint-selections-panel {
    display: block;
}

.axispoint-step-selections.active .axispoint-selections-panel {
    display: block;
}

@media (min-width: 1250px) {
    .axispoint-wrapper {
        max-width: 1200px !important;
    }
}
@media (max-width: 767px) {
    .axispoint-wrapper {
        padding-left: 20px;
        padding-right: 20px;
    }
}
.axispoint-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.axispoint-header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 15px;
}

.axispoint-main-title {
    color: #2d3748;
    font-size: 28px;
    font-weight: 600;
    margin: 0;
}

.axispoint-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

/* Left Panel - Image - CORRECTED POSITIONING */
.axispoint-left {
    position: relative;
}

.axispoint-image-container {
    background: #f8fafc;
    border: 2px dashed #cbd5e0;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    width: 100%;
}

.axispoint-image-wrapper {
    position: relative;
    display: inline-block;
    max-width: 100%;
    width: 100%;
    line-height: 0; /* Remove extra space */
    overflow: hidden;
    border-radius: 8px;
}

.axispoint-image-inner {
    position: relative;
    display: inline-block;
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
    transform-origin: center center;
}

.axispoint-body-image {
    display: block;
    max-width: 100%;
    height: auto;
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Markers - CORRECTED POSITIONING */
.axispoint-marker {
    position: absolute !important;
    width: 30px;
    height: 30px;
    background: #3182ce;
    border: 2px solid #000000;
    border-radius: 50%;
    cursor: pointer;
    transform: translate(-50%, -50%); /* Center the marker */
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 10;
    opacity: 1; /* Changed from 0 to 1 */
    pointer-events: all;
}

.axispoint-marker:hover {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.axispoint-marker.active {
    background: #48bb78 !important;
}

.axispoint-marker.axispoint-marker-completed {
    background: #28a745 !important;
    opacity: 0.8;
}

.axispoint-marker.axispoint-marker-completed::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 14px;
}

.axispoint-marker-icon {
    font-size: 14px;
    line-height: 1;
}

.axispoint-marker-default {
    font-size: 16px;
    line-height: 1;
    font-weight: bold;
}

/* Animation Keyframes */
@keyframes axispointPulse {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1); 
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.1); 
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    }
}

@keyframes axispointPulsating {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1); 
        opacity: 1;
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.15); 
        opacity: 0.8;
    }
}

.axispoint-animation-pulse_once {
    animation: axispointPulse 2s ease-in-out !important;
}

.axispoint-animation-pulsating {
    animation: axispointPulsating 2s ease-in-out infinite !important;
}

/* Zoom Controls on Left Side */
.axispoint-zoom-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}

.axispoint-zoom-controls button {
    padding: 10px 15px;
    border: 1px solid #cbd5e0;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #4a5568;
    font-size: 14px;
}

.axispoint-zoom-controls button:hover {
    background: #3182ce;
    border-color: #3182ce;
    color: white;
}

/* How To Use on Left Side */
.axispoint-help-section {
    text-align: center;
}

.axispoint-help-link {
    color: #718096;
    text-decoration: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
    padding: 8px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #f7fafc;
}

.axispoint-help-link:hover {
    color: #3182ce;
    border-color: #3182ce;
}

/* Right Panel - Instructions, Selections & Form */
.axispoint-right {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    height: fit-content;
    min-height: 500px;
}

/* Instructions on Right Side */
.axispoint-instructions {
    text-align: center;
    padding: 15px;
    background: rgba(0, 123, 255, 0.05);
    border-radius: 8px;
    border-left: 4px solid #007bff;
    margin-bottom: 20px;
}

.axispoint-start-text {
    margin: 0;
    color: #4a5568;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.axispoint-start-text i {
    color: #007bff;
}

.axispoint-selections-title {
    color: #000000;
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
}

.axispoint-selections-container {
    min-height: 150px;
}

.axispoint-no-selections {
    text-align: center;
    padding: 30px 20px;
    color: #718096;
}

.axispoint-no-selections h4 {
    color: #1B144C;
    margin: 0 0 10px 0;
    font-size: 20px;
    font-weight: 600;
}

.axispoint-no-selections p {
    margin: 0;
    font-size: 14px;
}

.axispoint-selections-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Selection Item Styles - Updated for Edit/Delete */
.axispoint-selection-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    margin-bottom: 8px;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.axispoint-selection-item:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
}

.axispoint-selection-item-completed {
    background: #f0f9ff !important;
    border-left: 4px solid #28a745 !important;
    border-color: #c3e6cb !important;
}

.axispoint-selection-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.axispoint-selection-label {
    color: #2d3748;
    font-weight: 600;
    font-size: 14px;
}

.axispoint-selection-status {
    font-size: 12px;
    color: #28a745;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.axispoint-selection-details {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 5px;
}

.axispoint-selection-badge {
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    border: 1px solid #bbdefb;
}

.axispoint-selection-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.axispoint-edit-selection,
.axispoint-delete-selection,
.axispoint-remove-selection {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}

.axispoint-edit-selection {
    color: #007bff;
    border: 1px solid #007bff;
    background: white;
}

.axispoint-edit-selection:hover {
    background: #007bff;
    color: white;
    transform: translateY(-1px);
}

.axispoint-delete-selection {
    color: #dc3545;
    border: 1px solid #dc3545;
    background: white;
}

.axispoint-delete-selection:hover {
    background: #dc3545;
    color: white;
    transform: translateY(-1px);
}

.axispoint-remove-selection {
    color: #6c757d;
    padding: 6px;
    border: 1px solid transparent;
}

.axispoint-remove-selection:hover {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

/* Form Section */
.axispoint-form-section {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 2px solid #e2e8f0;
}

.axispoint-form-header {
    margin-bottom: 20px;
}
.axispoint-form-header #axispoint-selected-concern {
    display: none;
}

.axispoint-form-title {
    color: #000000;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px 0;
}

.axispoint-selected-concern {
    color: #2d3748;
    font-size: 16px;
    font-weight: 500;
    margin: 0 0 15px 0;
    padding: 12px 15px;
    background: rgba(0, 123, 255, 0.1);
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

/* Form Content Styling */
.axispoint-form-content {
    margin-bottom: 20px;
}

.axispoint-concern-title {
    color: #2d3748;
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.axispoint-concern-subtitle {
    color: #718096;
    font-size: 14px;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
}

/* NEW: Concern Selection Fields Styling */
.axispoint-concern-fields {
    margin-bottom: 20px;
}

.axispoint-concern-field {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.axispoint-field-label {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
    display: block;
}

/* Radio Button Styling for both native radio and converted select fields */
.axispoint-concerns-radio-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.axispoint-concern-option {
    margin-bottom: 10px;
    border-radius: 24px !important;
}

.axispoint-concern-label {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: white;
    border: 2px solid #e9ecef;
    cursor: pointer;
    width: 100%;
    margin-bottom: 0;
    transition: all 0.3s ease;
    border-radius: 24px !important;
}

.axispoint-concerns-radio-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.axispoint-concern-radio {
    visibility: hidden;
    display: none;
}

.axispoint-concern-label:hover {
    border-color: #007cba;
    background: #f8f9fa;
    transform: translateY(-1px);
}

.axispoint-concern-radio:checked + .axispoint-concern-label {
    border-color: #007cba;
    background: #e7f1ff;
    box-shadow: 0 2px 8px rgba(0, 124, 186, 0.2);
}

.axispoint-radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #6c757d;
    border-radius: 50%;
    margin-right: 12px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.axispoint-concern-radio:checked + .axispoint-concern-label .axispoint-radio-custom {
    border-color: #007cba;
    background: #007cba;
}

.axispoint-concern-radio:checked + .axispoint-concern-label .axispoint-radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

.axispoint-concern-text {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    line-height: 1.4;
}

/* Hide original radio inputs but keep them accessible */
.axispoint-concern-radio {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* No Fields Message */
.axispoint-no-fields {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
}

.axispoint-no-fields p {
    margin: 0 0 10px 0;
    color: #6c757d;
}

.axispoint-no-fields p:last-child {
    margin-bottom: 0;
    font-size: 14px;
}

/* Gravity Forms Styling */
.axispoint-form-container .gform_wrapper {
    margin: 0 !important;
}

.axispoint-form-container .gform_fields {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.axispoint-form-container .gfield {
    margin-bottom: 15px !important;
    padding: 0 !important;
}

.axispoint-form-container .gfield_label {
    font-weight: 500 !important;
    color: #2d3748 !important;
    margin-bottom: 0px !important;
    display: block !important;
}

.axispoint-form-container input[type="text"],
.axispoint-form-container input[type="email"],
.axispoint-form-container input[type="tel"],
.axispoint-form-container textarea,
.axispoint-form-container select {
    width: 100% !important;
    padding: 12px !important;
    border: 1px solid #cbd5e0 !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    transition: border-color 0.2s ease !important;
    box-sizing: border-box !important;
}

.axispoint-form-container input:focus,
.axispoint-form-container textarea:focus,
.axispoint-form-container select:focus {
    outline: none !important;
    border-color: #3182ce !important;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1) !important;
}

/* Checkbox and Radio Styling */
.axispoint-form-container .gfield_checkbox,
.axispoint-form-container .gfield_radio {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.axispoint-form-container .gfield_checkbox li,
.axispoint-form-container .gfield_radio li {
    margin-bottom: 0px !important;
    padding: 0 !important;
    list-style: none !important;
}

.axispoint-form-container .gfield_checkbox input,
.axispoint-form-container .gfield_radio input {
    margin-right: 8px !important;
}

.axispoint-form-container .gfield_checkbox label,
.axispoint-form-container .gfield_radio label {
    cursor: pointer;
    font-weight: normal !important;
}

/* Buttons */
.axispoint-form-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.axispoint-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.axispoint-btn-primary {
    background: #007bff;
    color: white;
    border: 1px solid #007bff;
}

.axispoint-btn-primary:hover {
    background: #0056b3;
    border-color: #0056b3;
    transform: translateY(-1px);
}

.axispoint-btn-secondary {
    background: #e2e8f0;
    color: #4a5568;
    border: 1px solid #cbd5e0;
}

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

.axispoint-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.axispoint-btn-danger {
    background: #dc3545;
    color: white;
    border: 1px solid #dc3545;
}

.axispoint-btn-danger:hover {
    background: #c82333;
    border-color: #bd2130;
}

/* Finish Consultation Button */
.axispoint-finish-section {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid #e2e8f0;
    text-align: center;
}

#axispoint-finish-consultation {
    background: #28a745;
    border-color: #28a745;
    color: white;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
}

#axispoint-finish-consultation:hover {
    background: #218838;
    border-color: #1e7e34;
    transform: translateY(-1px);
}

/* Personal Details Section Specific Styles */
.axispoint-personal-details-section {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.axispoint-personal-details-section .axispoint-form-header {
    margin-bottom: 25px;
}

.axispoint-personal-details-section .axispoint-form-title {
    font-size: 22px;
    color: #2d3748;
}

/* NEW: Personal Details Form Styling */
.axispoint-personal-field {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

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

.axispoint-required {
    color: #dc3545;
    margin-left: 4px;
}

.axispoint-personal-input-field,
.axispoint-personal-textarea,
.axispoint-personal-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.axispoint-personal-input-field:focus,
.axispoint-personal-textarea:focus,
.axispoint-personal-select:focus {
    outline: none;
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

.axispoint-personal-checkbox-list,
.axispoint-personal-radio-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.axispoint-personal-checkbox-list li,
.axispoint-personal-radio-list li {
    margin-bottom: 8px;
}

.axispoint-personal-checkbox-list input[type="checkbox"],
.axispoint-personal-radio-list input[type="radio"] {
    margin-right: 8px;
}

.axispoint-personal-checkbox-list label,
.axispoint-personal-radio-list label {
    cursor: pointer;
    font-weight: normal;
}

/* Color Scheme Variations */
.axispoint-scheme-blue .axispoint-selected-concern,
.axispoint-scheme-blue .axispoint-instructions,
.axispoint-scheme-blue .axispoint-btn-primary {
    border-left-color: #007bff !important;
}
.axispoint-scheme-blue .axispoint-btn-primary {
    background: #007bff !important;
    border-color: #007bff !important;
}

.axispoint-scheme-red .axispoint-selected-concern,
.axispoint-scheme-red .axispoint-instructions,
.axispoint-scheme-red .axispoint-btn-primary {
    border-left-color: #ff4136 !important;
}
.axispoint-scheme-red .axispoint-btn-primary {
    background: #ff4136 !important;
    border-color: #ff4136 !important;
}

.axispoint-scheme-green .axispoint-selected-concern,
.axispoint-scheme-green .axispoint-instructions,
.axispoint-scheme-green .axispoint-btn-primary {
    border-left-color: #2ecc40 !important;
}
.axispoint-scheme-green .axispoint-btn-primary {
    background: #2ecc40 !important;
    border-color: #2ecc40 !important;
}

/* Message Styles */
.axispoint-message {
    padding: 12px 15px;
    margin: 10px 0;
    border-radius: 6px;
    font-weight: 500;
    border: 1px solid transparent;
    animation: slideDown 0.3s ease;
}

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

.axispoint-message-success {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.axispoint-message-error {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.axispoint-message-warning {
    background-color: #fff3cd;
    color: #856404;
    border-color: #ffeaa7;
}

.axispoint-message-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-color: #bee5eb;
}

/* Loading States */
.axispoint-loading {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
    padding: 40px;
    text-align: center;
    color: #718096;
}

.axispoint-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3182ce;
    border-radius: 50%;
    animation: axispointSpin 1s linear infinite;
}

@keyframes axispointSpin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Fullscreen mode */
.axispoint-fullscreen-mode {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: white;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.axispoint-fullscreen-mode .axispoint-image-inner {
    max-width: 90vw;
    max-height: 90vh;
}

.axispoint-fullscreen-mode .axispoint-body-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
}

/* Error states */
.axispoint-error {
    color: #e53e3e;
    text-align: center;
    padding: 20px;
    background: #fed7d7;
    border-radius: 6px;
    border: 1px solid #feb2b2;
}

/* Responsive Design */
@media (max-width: 768px) {
    .axispoint-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .axispoint-wrapper {
        padding: 15px;
    }
    
    .axispoint-right {
        padding: 20px;
    }
    
    .axispoint-form-actions {
        flex-direction: column;
    }
    
    .axispoint-btn {
        width: 100%;
    }
    
    .axispoint-selection-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .axispoint-selection-actions {
        align-self: flex-end;
        width: 100%;
        justify-content: flex-end;
    }
    
    .axispoint-selection-content {
        width: 100%;
    }
    
    .axispoint-concern-field {
        padding: 15px;
    }
    
    .axispoint-concern-label {
        padding: 10px 12px;
    }
    
    /* Mobile step adjustments */
    .axispoint-step {
        min-height: 400px;
    }
}

/* Print Styles */
@media print {
    .axispoint-zoom-controls,
    .axispoint-help-section,
    .axispoint-form-actions,
    .axispoint-selection-actions {
        display: none !important;
    }
    
    .axispoint-wrapper {
        max-width: none !important;
        padding: 0 !important;
    }
    
    .axispoint-content {
        grid-template-columns: 1fr !important;
    }
    
    .axispoint-step {
        display: block !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .axispoint-marker {
        border-width: 3px;
    }
    
    .axispoint-selection-item {
        border-width: 2px;
    }
    
    .axispoint-btn {
        border-width: 2px;
    }
    
    .axispoint-concern-label {
        border-width: 2px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .axispoint-marker,
    .axispoint-btn,
    .axispoint-selection-item,
    .axispoint-concern-label {
        transition: none !important;
    }
    
    .axispoint-animation-pulse_once,
    .axispoint-animation-pulsating {
        animation: none !important;
    }
    
    .axispoint-loading::after {
        animation: axispointSpin 2s linear infinite !important;
    }
}

/* Ensure proper step transitions */
.axispoint-step {
    transition: opacity 0.3s ease;
}

.axispoint-step:not(.active) {
    opacity: 0;
    pointer-events: none;
    position: absolute;
    top: -9999px;
    left: -9999px;
}

.axispoint-step.active {
    opacity: 1;
    pointer-events: all;
    position: relative;
    top: auto;
    left: auto;
}

.axispoint-image-inner button.axispoint-marker span.axispoint-custom-default {
    position: absolute;
    top: 1px;
    left: 3px;
}