/**
 * Public styles
 */

.icomm-ithc-questionnaire,
.icomm-ithc-report {
	direction: rtl;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px;
	background: #fff;
}

.icomm-ithc-container {
	width: 100%;
}

.icomm-ithc-title {
	font-size: 32px;
	font-weight: 700;
	margin-bottom: 20px;
	color: #1a1a1a;
}

.icomm-ithc-intro {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #fff;
	padding: 24px 32px;
	border-radius: 12px;
	margin-bottom: 24px;
	box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.icomm-ithc-intro-main {
	font-size: 19px;
	font-weight: 600;
	line-height: 1.7;
	margin: 0 0 12px 0;
	color: #fff;
}

.icomm-ithc-intro-sub {
	font-size: 17px;
	line-height: 1.6;
	margin: 0;
	color: rgba(255, 255, 255, 0.95);
	font-weight: 500;
}

.icomm-ithc-description {
	font-size: 16px;
	color: #666;
	margin-bottom: 24px;
}

.icomm-ithc-section {
	margin-bottom: 28px;
	padding: 20px;
	background: #f9f9f9;
	border-radius: 8px;
	border: 1px solid #e0e0e0;
}

.icomm-ithc-section-title {
	font-size: 22px;
	font-weight: 600;
	margin-bottom: 16px;
	color: #1a1a1a;
	border-bottom: 2px solid #0073aa;
	padding-bottom: 8px;
}

.icomm-ithc-form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-bottom: 16px;
}

.icomm-ithc-form-group {
	display: flex;
	flex-direction: column;
}

.icomm-ithc-form-group label {
	font-weight: 600;
	margin-bottom: 6px;
	color: #333;
}

.icomm-ithc-input,
.icomm-ithc-select {
	padding: 10px 12px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 16px;
	width: 100%;
	box-sizing: border-box;
}

.icomm-ithc-input:focus,
.icomm-ithc-select:focus {
	outline: none;
	border-color: #0073aa;
	box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.icomm-ithc-question {
	margin-bottom: 18px;
	padding: 16px;
	background: #fff;
	border-radius: 6px;
	border: 1px solid #e0e0e0;
}

.icomm-ithc-question-label {
	display: block;
	font-weight: 600;
	margin-bottom: 10px;
	color: #333;
	font-size: 16px;
}

.icomm-ithc-options {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
}

.icomm-ithc-radio-label {
	display: flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
	padding: 8px 12px;
	border: 2px solid #ddd;
	border-radius: 6px;
	transition: all 0.2s;
}

.icomm-ithc-radio-label:hover {
	border-color: #0073aa;
	background: #f0f8ff;
}

.icomm-ithc-radio-label input[type="radio"] {
	margin: 0;
}

.icomm-ithc-radio-label input[type="radio"]:checked + span {
	font-weight: 600;
	color: #0073aa;
}

.icomm-ithc-submit-section {
	margin-top: 24px;
	text-align: center;
}

.icomm-ithc-submit-btn {
	background: #0073aa;
	color: #fff !important;
	padding: 12px 35px;
	font-size: 18px;
	font-weight: 600;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	transition: background 0.3s;
}

.icomm-ithc-submit-btn:hover {
	background: #005a87;
}

.icomm-ithc-submit-btn:disabled {
	background: #ccc;
	cursor: not-allowed;
}

/* Report Styles */
.icomm-ithc-report-header {
	text-align: center;
	margin-bottom: 40px;
	padding-bottom: 20px;
	border-bottom: 3px solid #0073aa;
}

.icomm-ithc-report-title {
	font-size: 36px;
	font-weight: 700;
	margin-bottom: 10px;
	color: #1a1a1a;
}

.icomm-ithc-report-company {
	font-size: 20px;
	color: #666;
	margin-bottom: 5px;
}

.icomm-ithc-report-date {
	font-size: 14px;
	color: #999;
}

.icomm-ithc-executive-summary {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #fff;
	border: none;
}

.icomm-ithc-executive-summary .icomm-ithc-section-title {
	color: #fff;
	border-bottom-color: rgba(255, 255, 255, 0.3);
}

.icomm-ithc-score-display {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 40px;
	margin-bottom: 30px;
	flex-wrap: wrap;
}

.icomm-ithc-score-circle {
	width: 150px;
	height: 150px;
	border-radius: 50%;
	border: 8px solid currentColor;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	background: rgba(255, 255, 255, 0.1);
}

.icomm-ithc-score-number {
	font-size: 48px;
	font-weight: 700;
	margin-bottom: 5px;
}

.icomm-ithc-score-label {
	font-size: 14px;
	opacity: 0.9;
}

.icomm-ithc-risk-level {
	font-size: 18px;
}

.icomm-ithc-risk-value {
	padding: 8px 20px;
	border-radius: 20px;
	font-weight: 600;
	display: inline-block;
	margin-right: 10px;
}

.icomm-ithc-risk-value.icomm-ithc-risk-very_low,
.icomm-ithc-risk-level .icomm-ithc-risk-value.icomm-ithc-risk-very_low,
.icomm-ithc-report .icomm-ithc-risk-value.icomm-ithc-risk-very_low,
.icomm-ithc-executive-summary .icomm-ithc-risk-value.icomm-ithc-risk-very_low {
	background: #1B5E20 !important;
	color: #fff !important;
}

.icomm-ithc-risk-value.icomm-ithc-risk-low,
.icomm-ithc-risk-level .icomm-ithc-risk-value.icomm-ithc-risk-low,
.icomm-ithc-report .icomm-ithc-risk-value.icomm-ithc-risk-low,
	.icomm-ithc-executive-summary .icomm-ithc-risk-value.icomm-ithc-risk-low {
	background: #4CAF50 !important;
	color: #fff !important;
}

.icomm-ithc-risk-value.icomm-ithc-risk-medium,
.icomm-ithc-risk-level .icomm-ithc-risk-value.icomm-ithc-risk-medium,
.icomm-ithc-report .icomm-ithc-risk-value.icomm-ithc-risk-medium,
.icomm-ithc-executive-summary .icomm-ithc-risk-value.icomm-ithc-risk-medium {
	background: #FBC02D !important;
	color: #fff !important;
}

.icomm-ithc-risk-value.icomm-ithc-risk-medium_high,
.icomm-ithc-risk-level .icomm-ithc-risk-value.icomm-ithc-risk-medium_high,
.icomm-ithc-report .icomm-ithc-risk-value.icomm-ithc-risk-medium_high,
.icomm-ithc-executive-summary .icomm-ithc-risk-value.icomm-ithc-risk-medium_high {
	background: #FB8C00 !important;
	color: #fff !important;
}

.icomm-ithc-risk-value.icomm-ithc-risk-high,
.icomm-ithc-risk-level .icomm-ithc-risk-value.icomm-ithc-risk-high,
.icomm-ithc-report .icomm-ithc-risk-value.icomm-ithc-risk-high,
.icomm-ithc-executive-summary .icomm-ithc-risk-value.icomm-ithc-risk-high {
	background: #E53935 !important;
	color: #fff !important;
}

.icomm-ithc-summary-text {
	font-size: 18px;
	line-height: 1.8;
	margin-top: 20px;
	color: #fff;
}

.icomm-ithc-score-meaning-section {
	margin-top: 30px;
}

.icomm-ithc-score-meaning-title {
	font-size: 20px;
	font-weight: 600;
	color: #1a1a1a;
	margin-bottom: 15px;
}

.icomm-ithc-score-meaning-text {
	font-size: 16px;
	line-height: 1.8;
	color: #555;
}

/* White text for all elements inside executive summary section */
.icomm-ithc-executive-summary .icomm-ithc-section-title,
.icomm-ithc-executive-summary .icomm-ithc-section-title * {
	color: #fff !important;
}

.icomm-ithc-executive-summary .icomm-ithc-summary-text,
.icomm-ithc-executive-summary .icomm-ithc-summary-text p,
.icomm-ithc-executive-summary .icomm-ithc-summary-text * {
	color: #fff !important;
}

.icomm-ithc-executive-summary .icomm-ithc-score-meaning-section,
.icomm-ithc-executive-summary .icomm-ithc-score-meaning-section *,
.icomm-ithc-executive-summary .icomm-ithc-score-meaning-title,
.icomm-ithc-executive-summary .icomm-ithc-score-meaning-title *,
.icomm-ithc-executive-summary h3 {
	color: #fff !important;
}

.icomm-ithc-executive-summary .icomm-ithc-score-meaning-text,
.icomm-ithc-executive-summary .icomm-ithc-score-meaning-text p,
.icomm-ithc-executive-summary .icomm-ithc-score-meaning-text * {
	color: #fff !important;
}

.icomm-ithc-executive-summary .icomm-ithc-scoring-note,
.icomm-ithc-executive-summary .icomm-ithc-scoring-note *,
.icomm-ithc-executive-summary .icomm-ithc-scoring-note-text,
.icomm-ithc-executive-summary .icomm-ithc-scoring-note p,
.icomm-ithc-executive-summary .icomm-ithc-scoring-note-text * {
	color: #fff !important;
}

.icomm-ithc-executive-summary .icomm-ithc-risk-label {
	color: #fff !important;
}

/* Ensure score circle text is white in executive summary */
.icomm-ithc-executive-summary .icomm-ithc-score-number,
.icomm-ithc-executive-summary .icomm-ithc-score-label {
	color: #fff !important;
}

/* Ensure all text content in executive summary is white */
.icomm-ithc-executive-summary p {
	color: #fff !important;
}

.icomm-ithc-executive-summary span:not(.icomm-ithc-risk-value) {
	color: #fff !important;
}

.icomm-ithc-category {
	margin-bottom: 30px;
	padding: 25px;
	background: #fff;
	border-radius: 8px;
	border: 1px solid #e0e0e0;
}

.icomm-ithc-category-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 15px;
	flex-wrap: wrap;
}

.icomm-ithc-category-title {
	font-size: 22px;
	font-weight: 600;
	color: #1a1a1a;
	margin: 0;
}

.icomm-ithc-category-score {
	font-size: 18px;
}

.icomm-ithc-category-score-value {
	font-weight: 700;
	color: #0073aa;
}

.icomm-ithc-category-description {
	font-size: 16px;
	line-height: 1.6;
	color: #666;
	margin-bottom: 20px;
}

.icomm-ithc-issues {
	margin-top: 20px;
}

.icomm-ithc-issues-title {
	font-size: 18px;
	font-weight: 600;
	margin-bottom: 15px;
	color: #333;
}

.icomm-ithc-issue {
	margin-bottom: 25px;
	padding: 20px;
	background: #fff5f5;
	border-right: 4px solid #dc3545;
	border-radius: 4px;
}

.icomm-ithc-issue-title {
	font-size: 18px;
	font-weight: 600;
	margin-bottom: 10px;
	color: #c53030;
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.icomm-ithc-urgency {
	padding: 4px 12px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 600;
}

.icomm-ithc-urgency-critical {
	background: #dc3545;
	color: #fff;
}

.icomm-ithc-urgency-high {
	background: #fd7e14;
	color: #fff;
}

.icomm-ithc-urgency-medium {
	background: #ffc107;
	color: #333;
}

.icomm-ithc-urgency-low {
	background: #6c757d;
	color: #fff;
}

.icomm-ithc-issue-description {
	font-size: 15px;
	line-height: 1.6;
	color: #555;
	margin-bottom: 10px;
}

.icomm-ithc-issue-impact,
.icomm-ithc-issue-recommendation {
	font-size: 14px;
	line-height: 1.6;
	color: #666;
	margin-top: 10px;
}

.icomm-ithc-issue-impact strong,
.icomm-ithc-issue-recommendation strong {
	color: #333;
}

.icomm-ithc-top-issues,
.icomm-ithc-top-recommendations {
	margin-bottom: 30px;
	padding: 25px;
	background: #fff;
	border-radius: 8px;
	border: 1px solid #e0e0e0;
}

.icomm-ithc-top-issues h3,
.icomm-ithc-top-recommendations h3 {
	font-size: 20px;
	font-weight: 600;
	margin-bottom: 15px;
	color: #1a1a1a;
}

.icomm-ithc-top-issues-list,
.icomm-ithc-top-recommendations-list {
	padding-right: 20px;
}

.icomm-ithc-top-issues-list li,
.icomm-ithc-top-recommendations-list li {
	margin-bottom: 15px;
	line-height: 1.6;
	color: #555;
}

.icomm-ithc-top-issues-list li strong {
	color: #c53030;
}

.icomm-ithc-cta-section {
	margin-top: 40px;
}

.icomm-ithc-cta-box {
	padding: 40px;
	border-radius: 12px;
	text-align: center;
	border: 3px solid;
}

.icomm-ithc-cta-urgent {
	background: #fff5f5;
	border-color: #dc3545;
}

.icomm-ithc-cta-medium {
	background: #fff8e1;
	border-color: #ffc107;
}

.icomm-ithc-cta-low {
	background: #e8f5e9;
	border-color: #28a745;
}

.icomm-ithc-cta-title {
	font-size: 24px;
	font-weight: 700;
	margin-bottom: 15px;
	color: #1a1a1a;
}

.icomm-ithc-cta-text {
	font-size: 18px;
	line-height: 1.6;
	margin-bottom: 25px;
	color: #555;
}

.icomm-ithc-cta-button {
	background: #0073aa;
	color: #fff;
	padding: 15px 40px;
	font-size: 18px;
	font-weight: 600;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	transition: background 0.3s;
}

.icomm-ithc-cta-button:hover {
	background: #005a87;
}

/* Custom CTA Button - not WordPress standard */
.icomm-ithc-cta-button-custom {
	display: inline-block;
	background: #000;
	color: #fff !important;
	padding: 12px 35px;
	font-size: 18px;
	font-weight: 600;
	border: 2px solid #ff00ff;
	border-radius: 6px;
	text-decoration: none;
	cursor: pointer;
	transition: all 0.3s ease;
	font-family: inherit;
	text-align: center;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.icomm-ithc-cta-button-custom:hover:not(:disabled) {
	background: #1a1a1a;
	border-color: #ff33ff;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
	color: #fff !important;
	text-decoration: none;
	transform: translateY(-2px);
}

.icomm-ithc-cta-button-custom:disabled {
	cursor: not-allowed;
	opacity: 0.7;
	color: #fff !important;
}

/* Ensure button text is always white, even inside CTA boxes and when background changes */
.icomm-ithc-cta-box .icomm-ithc-cta-button-custom,
.icomm-ithc-cta-low .icomm-ithc-cta-button-custom,
.icomm-ithc-cta-medium .icomm-ithc-cta-button-custom,
.icomm-ithc-cta-urgent .icomm-ithc-cta-button-custom,
.icomm-ithc-cta-button-custom[style*="background"],
.icomm-ithc-cta-button-custom[style*="#28a745"],
button.icomm-ithc-cta-button-custom,
.icomm-ithc-report .icomm-ithc-cta-button-custom,
.icomm-ithc-cta-section .icomm-ithc-cta-button-custom,
.icomm-ithc-cta-button-custom,
.icomm-ithc-cta-button-custom *,
.icomm-ithc-cta-button-custom:visited,
.icomm-ithc-cta-button-custom:link,
.icomm-ithc-cta-button-custom:active,
.icomm-ithc-cta-button-custom:focus {
	color: #fff !important;
}

/* Force white text on button even with inline styles - highest priority */
button.icomm-ithc-cta-button-custom[style] {
	color: #fff !important;
}

button.icomm-ithc-cta-button-custom[style] * {
	color: #fff !important;
}

/* Success Page Styles */
.icomm-ithc-success {
	direction: rtl;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	max-width: 1000px;
	margin: 0 auto;
	padding: 40px 60px;
	background: #fff;
}

.icomm-ithc-success-header {
	margin-top: 40px;
	margin-bottom: 40px;
}

.icomm-ithc-success-title {
	font-size: 29px;
	font-weight: 700;
	color: #1a1a1a;
	margin-bottom: 20px;
}

.icomm-ithc-success-intro {
	font-size: 18px;
	line-height: 1.8;
	color: #555;
}

.icomm-ithc-section-title {
	font-size: 24px;
	font-weight: 600;
	color: #1a1a1a;
	margin-bottom: 20px;
	margin-top: 30px;
}

.icomm-ithc-report-ready {
	margin-bottom: 40px;
}

.icomm-ithc-report-intro {
	font-size: 16px;
	line-height: 1.8;
	color: #555;
	margin-bottom: 15px;
}

.icomm-ithc-categories-list,
.icomm-ithc-details-list,
.icomm-ithc-options-list {
	list-style: none;
	padding: 0;
	margin: 15px 0 20px 0;
}

.icomm-ithc-categories-list li,
.icomm-ithc-details-list li,
.icomm-ithc-options-list li {
	font-size: 16px;
	line-height: 1.8;
	color: #555;
	margin-bottom: 10px;
	padding-right: 25px;
	position: relative;
}

.icomm-ithc-categories-list li:before,
.icomm-ithc-details-list li:before,
.icomm-ithc-options-list li:before {
	content: "•";
	position: absolute;
	right: 0;
	color: #0073aa;
	font-size: 20px;
	font-weight: bold;
}

.icomm-ithc-scoring-note {
	font-size: 16px;
	line-height: 1.8;
	color: #666;
	font-style: italic;
	margin-top: 20px;
}

.icomm-ithc-score-meaning,
.icomm-ithc-report-details {
	margin-bottom: 40px;
}

.icomm-ithc-meaning-text,
.icomm-ithc-details-intro,
.icomm-ithc-details-note {
	font-size: 16px;
	line-height: 1.8;
	color: #555;
	margin-bottom: 15px;
}

.icomm-ithc-success-score {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-bottom: 50px;
}

.icomm-ithc-score-circle {
	width: 150px;
	height: 150px;
	border-radius: 50%;
	border: 6px solid currentColor;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	margin-bottom: 20px;
}

.icomm-ithc-score-number {
	font-size: 48px;
	font-weight: 700;
	color: currentColor;
}

.icomm-ithc-score-label {
	font-size: 16px;
	color: #666;
	margin-top: 5px;
}

.icomm-ithc-risk-level {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 18px;
}

.icomm-ithc-risk-label {
	color: #555;
}

.icomm-ithc-risk-value {
	padding: 5px 15px;
	border-radius: 20px;
	font-weight: 600;
}

/* Risk level colors for success page */
.icomm-ithc-success .icomm-ithc-risk-value.icomm-ithc-risk-very_low,
.icomm-ithc-success .icomm-ithc-risk-level .icomm-ithc-risk-value.icomm-ithc-risk-very_low {
	background: #1B5E20 !important;
	color: #fff !important;
}

.icomm-ithc-success .icomm-ithc-risk-value.icomm-ithc-risk-low,
.icomm-ithc-success .icomm-ithc-risk-level .icomm-ithc-risk-value.icomm-ithc-risk-low {
	background: #4CAF50 !important;
	color: #fff !important;
}

.icomm-ithc-success .icomm-ithc-risk-value.icomm-ithc-risk-medium,
.icomm-ithc-success .icomm-ithc-risk-level .icomm-ithc-risk-value.icomm-ithc-risk-medium {
	background: #FBC02D !important;
	color: #fff !important;
}

.icomm-ithc-success .icomm-ithc-risk-value.icomm-ithc-risk-medium_high,
.icomm-ithc-success .icomm-ithc-risk-level .icomm-ithc-risk-value.icomm-ithc-risk-medium_high {
	background: #FB8C00 !important;
	color: #fff !important;
}

.icomm-ithc-success .icomm-ithc-risk-value.icomm-ithc-risk-high,
.icomm-ithc-success .icomm-ithc-risk-level .icomm-ithc-risk-value.icomm-ithc-risk-high {
	background: #E53935 !important;
	color: #fff !important;
}

.icomm-ithc-cta-section {
	margin-bottom: 40px;
}

.icomm-ithc-cta-text {
	font-size: 16px;
	line-height: 1.8;
	color: #555;
	margin-bottom: 15px;
}

.icomm-ithc-options-title {
	font-size: 16px;
	color: #1a1a1a;
	margin-top: 20px;
	margin-bottom: 15px;
}

.icomm-ithc-success-actions {
	display: flex;
	gap: 20px;
	justify-content: center;
	margin-bottom: 30px;
	flex-wrap: wrap;
}

.icomm-ithc-button {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 15px 35px;
	font-size: 18px;
	font-weight: 600;
	border-radius: 6px;
	text-decoration: none;
	transition: all 0.3s;
	border: none;
	cursor: pointer;
}

.icomm-ithc-button-icon {
	font-size: 20px;
}

.icomm-ithc-button-primary {
	background: #0073aa;
	color: #fff;
}

.icomm-ithc-button-primary:hover {
	background: #005a87;
	color: #fff;
}

.icomm-ithc-success-actions .icomm-ithc-button-primary {
	background: #0073aa;
	color: #fff;
}

.icomm-ithc-button-secondary {
	background: #28a745;
	color: #fff;
}

.icomm-ithc-button-secondary:hover {
	background: #218838;
	color: #fff;
}

.icomm-ithc-continue-section {
	text-align: center;
	margin-top: 50px;
	margin-bottom: 40px;
}

.icomm-ithc-contact-direct {
	font-size: 16px;
	color: #1a1a1a;
	margin-top: 30px;
	margin-bottom: 20px;
}

.icomm-ithc-contact-info {
	display: flex;
	justify-content: center;
	gap: 30px;
	flex-wrap: wrap;
}

.icomm-ithc-contact-item {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 18px;
	margin: 0;
}

.icomm-ithc-contact-icon {
	font-size: 20px;
}

.icomm-ithc-contact-link {
	color: #0073aa;
	text-decoration: none;
	font-weight: 600;
}

.icomm-ithc-contact-link:hover {
	text-decoration: underline;
}

@media (max-width: 768px) {
	.icomm-ithc-form-row {
		grid-template-columns: 1fr;
	}
	
	.icomm-ithc-options {
		flex-direction: column;
	}
	
	.icomm-ithc-score-display {
		flex-direction: column;
		gap: 20px;
	}
	
	.icomm-ithc-category-header {
		flex-direction: column;
		align-items: flex-start;
	}
	
	.icomm-ithc-success-actions {
		flex-direction: column;
	}
	
	.icomm-ithc-button {
		width: 100%;
		text-align: center;
	}
}
