/**
 * Netcentrix Cyber Security Cost Calculator
 *
 * Everything is scoped to .nc-cc so it cannot collide with the existing
 * .cf7-* rules used by the IT support calculator. Colours come from the
 * custom properties below, so retheming is a single block edit.
 *
 * @version 1.0.0
 */

.nc-cc {
	--cc-ink: #0a1f44;
	--cc-ink-soft: #4a5f85;
	--cc-paper: #e6ecf9;
	--cc-panel: #d4dff3;
	--cc-white: #ffffff;
	--cc-accent: #2ec98b;
	--cc-accent-dark: #22a873;
	--cc-accent-ink: #06301f;
	--cc-line: rgba(10, 31, 68, 0.12);
	--cc-line-strong: rgba(10, 31, 68, 0.24);
	--cc-radius: 14px;
	--cc-radius-sm: 10px;
	--cc-gap: 24px;

	background: var(--cc-paper);
	border-radius: 28px;
	color: var(--cc-ink);
	padding: 40px;
	position: relative;
}

.nc-cc *,
.nc-cc *::before,
.nc-cc *::after {
	box-sizing: border-box;
}

/* Layout ------------------------------------------------------------- */

.nc-cc__grid {
	display: grid;
	gap: var(--cc-gap);
	grid-template-columns: minmax(0, 1fr);
}
.nc-cc__field br {
    display: none;
}
@media (min-width: 1024px) {
	.nc-cc__grid {
		grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
		align-items: start;
	}
}

.nc-cc__block + .nc-cc__block {
	margin-top: 32px;
}

.nc-cc__legend {
	display: block;
	font-size: 1.05rem;
	font-weight: 600;
	letter-spacing: -0.01em;
	margin: 0 0 4px;
}

.nc-cc__legend-note {
	color: var(--cc-ink-soft);
	display: block;
	font-size: 0.875rem;
	margin: 0 0 16px;
}

/* Fields -------------------------------------------------------------- */

.nc-cc__fields {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 600px) {
	.nc-cc__fields {
		grid-template-columns: minmax(0, 1fr);
	}
}

.nc-cc__field label {
	display: block;
	font-size: 0.875rem;
	font-weight: 500;
	margin-bottom: 6px;
}

.nc-cc__field-hint {
	color: var(--cc-ink-soft);
	display: block;
	font-size: 0.75rem;
	font-weight: 400;
	margin-top: 2px;
}

.nc-cc input[type="text"],
.nc-cc input[type="email"],
.nc-cc input[type="tel"],
.nc-cc input[type="number"],
.nc-cc select,
.nc-cc textarea {
	background: var(--cc-white);
	border: 1px solid transparent;
	border-radius: var(--cc-radius-sm);
	color: var(--cc-ink);
	font: inherit;
	padding: 13px 14px;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	width: 100%;
}

.nc-cc input::placeholder {
	color: rgba(10, 31, 68, 0.4);
}

.nc-cc input:focus-visible,
.nc-cc select:focus-visible,
.nc-cc textarea:focus-visible,
.nc-cc button:focus-visible,
.nc-cc [role="radio"]:focus-visible {
	border-color: var(--cc-accent-dark);
	box-shadow: 0 0 0 3px rgba(46, 201, 139, 0.35);
	outline: 2px solid transparent;
	outline-offset: 2px;
}

/* Segmented controls -------------------------------------------------- */

.nc-cc__segmented {
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.nc-cc__segment {
	background: var(--cc-white);
	border: 1px solid transparent;
	border-radius: var(--cc-radius-sm);
	cursor: pointer;
	display: block;
	font: inherit;
	padding: 14px;
	text-align: left;
	transition: border-color 0.15s ease, background-color 0.15s ease;
	width: 100%;
}

.nc-cc__segment:hover {
	border-color: var(--cc-line-strong);
}

.nc-cc__segment.is-active {
	background: var(--cc-ink);
	border-color: var(--cc-ink);
	color: var(--cc-white);
}

.nc-cc__segment-label {
	display: block;
	font-weight: 600;
}

.nc-cc__segment-note {
	color: var(--cc-ink-soft);
	display: block;
	font-size: 0.78rem;
	margin-top: 3px;
}

.nc-cc__segment.is-active .nc-cc__segment-note {
	color: rgba(255, 255, 255, 0.7);
}

/* Service cards ------------------------------------------------------- */

.nc-cc__cards {
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.nc-cc__card {
	position: relative;
}

.nc-cc__checkbox {
	height: 1px;
	opacity: 0;
	position: absolute;
	width: 1px;
}

.nc-cc__card-inner {
	background: var(--cc-white);
	border: 1px solid transparent;
	border-radius: var(--cc-radius);
	cursor: pointer;
	display: flex;
	flex-direction: column;
	gap: 8px;
	height: 100%;
	padding: 16px;
	transition: border-color 0.15s ease, transform 0.15s ease;
}

.nc-cc__card-inner:hover {
	border-color: var(--cc-line-strong);
}

.nc-cc__checkbox:focus-visible + .nc-cc__card-inner {
	border-color: var(--cc-accent-dark);
	box-shadow: 0 0 0 3px rgba(46, 201, 139, 0.35);
}

.nc-cc__card.is-selected .nc-cc__card-inner {
	border-color: var(--cc-accent);
}

.nc-cc__card.is-unavailable .nc-cc__card-inner {
	opacity: 0.55;
}

.nc-cc__card-head {
	align-items: flex-start;
	display: flex;
	gap: 10px;
}

.nc-cc__tick {
	background: var(--cc-white);
	border: 1.5px solid var(--cc-line-strong);
	border-radius: 6px;
	flex: 0 0 auto;
	height: 20px;
	margin-top: 2px;
	position: relative;
	transition: background-color 0.15s ease, border-color 0.15s ease;
	width: 20px;
}

.nc-cc__card.is-selected .nc-cc__tick {
	background: var(--cc-accent);
	border-color: var(--cc-accent);
}

.nc-cc__tick::after {
	border-bottom: 2px solid var(--cc-accent-ink);
	border-left: 2px solid var(--cc-accent-ink);
	content: "";
	height: 5px;
	left: 4px;
	opacity: 0;
	position: absolute;
	top: 5px;
	transform: rotate(-45deg);
	transition: opacity 0.15s ease;
	width: 10px;
}

.nc-cc__card.is-selected .nc-cc__tick::after {
	opacity: 1;
}

.nc-cc__card-title {
	font-weight: 600;
	line-height: 1.3;
}

.nc-cc__card-desc {
	color: var(--cc-ink-soft);
	font-size: 0.82rem;
	line-height: 1.5;
}

.nc-cc__card-price {
	border-top: 1px solid var(--cc-line);
	color: var(--cc-ink-soft);
	font-size: 0.82rem;
	margin-top: auto;
	padding-top: 10px;
}

.nc-cc__card-price strong {
	color: var(--cc-ink);
	font-size: 0.95rem;
}

.nc-cc__card-rate {
	display: block;
	font-size: 0.72rem;
	margin-top: 2px;
	opacity: 0.85;
}

/* Summary ------------------------------------------------------------- */

.nc-cc__summary {
	position: sticky;
	top: 110px;
}

.nc-cc__summary-inner {
	background: var(--cc-panel);
	border-radius: var(--cc-radius);
	padding: 24px;
}

.nc-cc__summary-title {
	font-size: 1.05rem;
	margin: 0 0 12px;
}

.nc-cc__summary-subtitle {
	border-top: 1px solid var(--cc-line);
	font-size: 0.9rem;
	margin: 18px 0 10px;
	padding-top: 16px;
}

.nc-cc__headline {
	align-items: baseline;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
}

.nc-cc__headline-figure {
	font-size: clamp(2rem, 5vw, 2.6rem);
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1;
}

.nc-cc__headline-unit {
	color: var(--cc-ink-soft);
	font-size: 0.9rem;
}

.nc-cc__headline-sub {
	color: var(--cc-ink-soft);
	font-size: 0.82rem;
	margin: 6px 0 0;
}

.nc-cc__lines {
	border-top: 1px solid var(--cc-line);
	margin-top: 16px;
	padding-top: 12px;
}

.nc-cc__line {
	display: flex;
	gap: 12px;
	justify-content: space-between;
	padding: 7px 0;
}

.nc-cc__line-label {
	font-size: 0.85rem;
	line-height: 1.35;
}

.nc-cc__line-meta {
	color: var(--cc-ink-soft);
	display: block;
	font-size: 0.72rem;
	margin-top: 1px;
}

.nc-cc__line-total {
	font-size: 0.85rem;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.nc-cc__row {
	border-top: 1px solid var(--cc-line);
	display: flex;
	font-size: 0.85rem;
	justify-content: space-between;
	padding: 9px 0;
}

.nc-cc__row--discount {
	color: var(--cc-accent-dark);
}

.nc-cc__row--total {
	font-size: 0.98rem;
}

.nc-cc__empty {
	color: var(--cc-ink-soft);
	font-size: 0.85rem;
	margin: 0;
}

/* Submit and legal ---------------------------------------------------- */

.nc-cc__actions {
	margin-top: 20px;
}

.nc-cc input[type="submit"],
.nc-cc .wpcf7-submit {
	background: var(--cc-accent);
	border: 0;
	border-radius: 999px;
	color: var(--cc-accent-ink);
	cursor: pointer;
	font: inherit;
	font-weight: 600;
	padding: 15px 32px;
	transition: background-color 0.15s ease, opacity 0.15s ease;
	width: 100%;
}

.nc-cc .wpcf7-submit:hover:not(:disabled) {
	background: var(--cc-accent-dark);
}

.nc-cc .wpcf7-submit:disabled {
	cursor: not-allowed;
	opacity: 0.45;
}

.nc-cc__legal {
	color: var(--cc-ink-soft);
	font-size: 0.72rem;
	line-height: 1.6;
	margin-top: 16px;
}

.nc-cc__legal a {
	color: inherit;
	text-decoration: underline;
}

/* Running total bar. The one thing that follows you down the page. ----- */

.nc-cc__bar {
	align-items: center;
	background: var(--cc-ink);
	border-radius: 999px;
	bottom: 16px;
	box-shadow: 0 10px 30px rgba(10, 31, 68, 0.3);
	color: var(--cc-white);
	display: none;
	gap: 16px;
	justify-content: space-between;
	left: 16px;
	padding: 12px 14px 12px 20px;
	position: fixed;
	right: 16px;
	z-index: 40;
}

.nc-cc__bar.is-visible {
	display: flex;
}

@media (min-width: 1024px) {
	.nc-cc__bar.is-visible {
		display: none;
	}
}

.nc-cc__bar-figure {
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1.1;
}

.nc-cc__bar-unit {
	display: block;
	font-size: 0.7rem;
	font-weight: 400;
	opacity: 0.7;
}

.nc-cc__bar-link {
	background: var(--cc-accent);
	border: 0;
	border-radius: 999px;
	color: var(--cc-accent-ink);
	cursor: pointer;
	font: inherit;
	font-size: 0.82rem;
	font-weight: 600;
	padding: 10px 18px;
	white-space: nowrap;
}

/* Contact Form 7 overrides -------------------------------------------- */

.nc-cc .wpcf7-not-valid-tip {
	color: #b3261e;
	font-size: 0.75rem;
	margin-top: 4px;
}

.nc-cc .wpcf7-response-output {
	border-radius: var(--cc-radius-sm);
	font-size: 0.85rem;
	margin: 20px 0 0;
	padding: 12px 16px;
}

.nc-cc .wpcf7-spinner {
	display: block;
	margin: 10px auto 0;
}

/* Progressive enhancement. Hide the JS built regions until they exist. - */

.nc-cc:not(.is-ready) [data-cc-summary],
.nc-cc:not(.is-ready) [data-cc-bar] {
	display: none;
}

@media (prefers-reduced-motion: reduce) {
	.nc-cc *,
	.nc-cc *::before,
	.nc-cc *::after {
		transition-duration: 0.01ms !important;
	}
}

@media (max-width: 767px) {
	.nc-cc {
		border-radius: 18px;
		padding: 24px 20px 28px;
	}

	.nc-cc__summary {
		position: static;
	}
}
