/* Survey Form Styles */
.opsgeniewss-survey-container {
    position: relative;
    width: 100%;
    box-sizing: border-box;
}
.opsgeniewss-survey-form {
    font-family: 'Inter', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    max-width: 900px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
}

.opsgeniewss-survey-form:hover {
    transform: translateY(-2px);
}

.opsgeniewss-survey-form h2 {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 20px;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 10px;
}

.opsgeniewss-tabs {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 25px;
    gap: 8px;
}

.opsgeniewss-tabs .tab {
    background: #0073aa;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    color: #fff;
    transition: all 0.3s ease;
    border-radius: 8px 8px 0 0;
    margin-right: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.opsgeniewss-tabs .tab:hover {
    background: #006699;
    transform: translateY(-1px);
}

.opsgeniewss-tabs .tab.active {
    background: #005d87;
    color: #fff;
    border-bottom: 2px solid #005d87;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.opsgeniewss-tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.opsgeniewss-tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.opsgeniewss-question {
    margin-bottom: 25px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 8px;
    transition: background 0.3s ease, transform 0.2s ease;
}

.opsgeniewss-question:hover {
    background: #f1f5f9;
    transform: translateY(-1px);
}

.opsgeniewss-question label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.opsgeniewss-question .required {
    color: #e53e3e;
    font-size: 12px;
}

.opsgeniewss-question input[type="text"],
.opsgeniewss-question textarea,
.opsgeniewss-question select {
    width: 100%;
    max-width: 500px;
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.opsgeniewss-question textarea {
    resize: vertical;
    min-height: 80px;
}

.opsgeniewss-question input[type="text"]:focus,
.opsgeniewss-question textarea:focus,
.opsgeniewss-question select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.opsgeniewss-options {
    margin-top: 5px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.opsgeniewss-options input[type="radio"],
.opsgeniewss-options input[type="checkbox"] {
    margin-right: 8px;
    accent-color: #0073aa;
    vertical-align: middle;
}

.opsgeniewss-options label {
    font-size: 13px;
    font-weight: normal;
    color: #4a5568;
    display: inline-block;
    vertical-align: middle;
}

.opsgeniewss-multi-slider {
    position: relative; /* For positioning the total */
}

.opsgeniewss-multi-slider label {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    gap: 10px;
    width: 100%; /* Ensure the label spans the full width of the parent */
}

.opsgeniewss-multi-slider .slider-label {
    flex: 1; /* Take up remaining space */
    font-size: 13px;
    color: #4a5568;
}

.opsgeniewss-multi-slider input[type="range"] {
    flex: 0 0 200px; /* Keep slider width at 200px */
    margin: 0;
    accent-color: #0073aa;
}

.opsgeniewss-multi-slider .slider-value {
    flex: 0 0 30px; /* Fixed width for the value */
    text-align: right;
    font-size: 13px;
    color: #4a5568;
}

.opsgeniewss-multi-slider .slider-total {
    margin-top: 10px;
    padding: 8px;
    background: #edf2f7;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #1a1a1a;
    text-align: right;
}

.opsgeniewss-multi-slider .slider-total.error {
    background: #fef2f2;
    color: #e53e3e;
}

.opsgeniewss-matrix {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.opsgeniewss-matrix th,
.opsgeniewss-matrix td {
    border: 1px solid #d1d5db;
    padding: 8px;
    text-align: center;
    font-size: 13px;
    vertical-align: middle;
}

.opsgeniewss-matrix th {
    background: #edf2f7;
    font-weight: 600;
}

.opsgeniewss-matrix td:first-child {
    text-align: left;
    font-weight: 500;
}

.opsgeniewss-matrix tr.error {
    background: #fef2f2;
}

.opsgeniewss-matrix td input[type="radio"] {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: auto;
    height: auto;
    margin: 0 auto;
    accent-color: #0073aa;
}

.opsgeniewss-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 10px;
}

.opsgeniewss-navigation button {
    background: linear-gradient(135deg, #0073aa, #005d87);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.opsgeniewss-navigation button:hover {
    background: linear-gradient(135deg, #006699, #004d73);
    transform: translateY(-1px);
}

.opsgeniewss-navigation button:active {
    transform: translateY(0);
}

.hidden {
    display: none !important;
}

.opsgeniewss-progress-bar {
    margin-bottom: 25px;
}

.progress-label {
    font-size: 13px;
    color: #4a5568;
    margin-bottom: 8px;
    font-weight: 500;
}

.progress {
    background: #e5e7eb;
    border-radius: 6px;
    height: 12px;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.progress-fill {
    background: linear-gradient(90deg, #0073aa, #005d87);
    height: 100%;
    transition: width 0.5s ease-in-out;
}

.opsgeniewss-question.error {
    border-left: 3px solid #e53e3e;
    padding-left: 12px;
    background: #fef2f2;
}

.error-message {
    color: #e53e3e;
    font-size: 12px;
    margin-top: 5px;
}

.opsgeniewss-chart {
    margin-bottom: 40px;
    padding: 20px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.opsgeniewss-chart h3 {
    margin-top: 0;
    font-size: 16px;
    color: #1a1a1a;
}

.opsgeniewss-chart canvas {
    max-width: 600px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .opsgeniewss-survey-form {
        margin: 20px;
        padding: 20px;
        border-radius: 8px;
    }

    .opsgeniewss-tabs {
        flex-direction: column;
        border-bottom: none;
        gap: 4px;
    }

    .opsgeniewss-tabs .tab {
        padding: 10px 15px;
        border-radius: 6px;
        border-bottom: 1px solid #e5e7eb;
        text-align: left;
    }

    .opsgeniewss-tabs .tab.active,
    .opsgeniewss-tabs .tab:hover {
        border-bottom: 1px solid #e5e7eb;
        background: #005d87;
    }

    .opsgeniewss-navigation {
        flex-direction: column;
        gap: 10px;
    }

    .opsgeniewss-navigation button {
        width: 100%;
        padding: 12px;
    }

    .opsgeniewss-matrix th,
    .opsgeniewss-matrix td {
        padding: 6px;
        font-size: 12px;
    }

    .opsgeniewss-question {
        padding: 10px;
    }

    .opsgeniewss-options {
        flex-direction: column;
        align-items: flex-start;
    }

    .opsgeniewss-options label {
        margin-right: 0;
    }

    .opsgeniewss-multi-slider label {
        flex-wrap: wrap;
    }

    .opsgeniewss-multi-slider .slider-label {
        flex: 1 1 100%;
    }

    .opsgeniewss-multi-slider input[type="range"] {
        flex: 1 1 100%;
    }
    /* Success and Error Messages */
.opsgeniewss-survey-container #opsgeniewss-response {
    max-width: 900px;
    margin: 40px auto;
    padding: 15px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    line-height: 1.5;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.opsgeniewss-survey-container #opsgeniewss-response.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    opacity: 1;
}

.opsgeniewss-survey-container #opsgeniewss-response.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    opacity: 1;
}
/* Enhanced Custom Modal Styles for OpsGenie Branding */
#opsgeniewss-custom-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay */
    animation: fadeIn 0.3s ease;
}

#opsgeniewss-custom-modal .opsgeniewss-modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 30px; /* More padding for comfort */
    border: none; /* Remove border for cleaner look */
    width: 80%;
    max-width: 400px;
    text-align: center;
    border-radius: 12px; /* Softer corners */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25); /* Deeper shadow for depth */
    animation: zoomIn 0.4s ease;
}

#opsgeniewss-custom-modal .close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

#opsgeniewss-custom-modal .close-modal:hover,
#opsgeniewss-custom-modal .close-modal:focus {
    color: #000;
    text-decoration: none;
}

#modal-message {
    margin-top: 20px;
    font-size: 16px;
    color: #333; /* Neutral text color */
}

#opsgeniewss-custom-modal .opsgeniewss-button {
    margin-top: 20px;
    padding: 12px 24px;
    background-color: #0073aa; /* OpsGenie blue */
    color: white;
    border: none;
    border-radius: 30px; /* Rounded button */
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 6px rgba(0,115,170,0.3); /* Subtle blue shadow */
}

#opsgeniewss-custom-modal .opsgeniewss-button:hover {
    background-color: #005177; /* Darker blue on hover */
    box-shadow: 0 4px 12px rgba(0,115,170,0.4);
    transform: translateY(-1px);
}

#opsgeniewss-custom-modal .opsgeniewss-button:active {
    transform: translateY(0);
}

/* Animations for smoothness */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* Success-specific styles (green accents) */
#opsgeniewss-custom-modal.success #modal-message {
    color: #50C878; /* Green for success */
}

/* Error-specific styles (red accents) */
#opsgeniewss-custom-modal.error #modal-message {
    color: #D83367; /* Red for error */
}
}