@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&display=swap');

.ibc-wrap {
	font-family: 'Montserrat', sans-serif;
	max-width: 960px;
	margin: 0 auto;
	background: #ffffff;
	border: 2px solid #222;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 6px 32px rgba(0,0,0,0.10);
}

/* Header */
.ibc-header {
	background: #222;
	color: #fff;
	padding: 32px 40px 26px;
	border-bottom: 4px solid #fbe000;
}
.ibc-header h2 {
	font-size: 1.8rem;
	font-weight: 800;
	color: #fbe000;
	margin: 0 0 6px;
	letter-spacing: -0.02em;
	text-transform: uppercase;
}
.ibc-header p {
	font-size: 0.95rem;
	margin: 0;
	color: #ccc;
	font-weight: 400;
}

/* Body layout — stacked vertically */
.ibc-body {
	display: flex;
	flex-direction: column;
}

/* Inputs panel — horizontal row of fields */
.ibc-inputs {
	padding: 32px 40px 24px;
	border-bottom: 2px solid #eee;
	display: flex;
	flex-wrap: wrap;
	gap: 28px 40px;
	align-items: flex-start;
}

/* Fields */
.ibc-field {
	flex: 1 1 160px;
	min-width: 140px;
}
.ibc-field.ibc-field-pitch {
	flex: 3 1 340px;
}
.ibc-field > label {
	display: block;
	font-weight: 700;
	font-size: 0.82rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #222;
	margin-bottom: 10px;
}
.ibc-input-row {
	display: flex;
	align-items: center;
	gap: 10px;
}
.ibc-input-row input[type="number"] {
	width: 120px;
	padding: 12px 16px;
	border: 2px solid #ddd;
	border-radius: 6px;
	font-family: 'Montserrat', sans-serif;
	font-size: 1.1rem;
	font-weight: 600;
	color: #222;
	transition: border-color 0.2s;
	-moz-appearance: textfield;
}
.ibc-input-row input[type="number"]::-webkit-inner-spin-button,
.ibc-input-row input[type="number"]::-webkit-outer-spin-button {
	opacity: 1;
}
.ibc-input-row input[type="number"]:focus {
	outline: none;
	border-color: #fbe000;
	box-shadow: 0 0 0 3px rgba(251,224,0,0.25);
}
.ibc-unit {
	font-size: 0.9rem;
	color: #777;
	font-weight: 600;
}

/* Pitch cards */
.ibc-pitch-options {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}
.ibc-pitch-card {
	flex: 1 1 110px;
	min-width: 110px;
	cursor: pointer;
	border: 2px solid #ddd;
	border-radius: 8px;
	padding: 14px 10px 12px;
	text-align: center;
	transition: border-color 0.2s, background 0.2s;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 5px;
}
.ibc-pitch-card input[type="radio"] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}
.ibc-pitch-icon {
	display: block;
	width: 58px;
	height: 38px;
	color: #555;
	transition: color 0.2s;
}
.ibc-pitch-icon svg {
	width: 100%;
	height: 100%;
}
.ibc-pitch-label {
	font-size: 0.95rem;
	font-weight: 700;
	color: #222;
	line-height: 1.2;
}
.ibc-pitch-sub {
	font-size: 0.85rem;
	color: #777;
	font-weight: 400;
}
.ibc-pitch-card:hover {
	border-color: #fbe000;
	background: #fffde7;
}
.ibc-pitch-card.selected {
	border-color: #fbe000;
	background: #fbe000;
}
.ibc-pitch-card.selected .ibc-pitch-icon { color: #222; }
.ibc-pitch-card.selected .ibc-pitch-label,
.ibc-pitch-card.selected .ibc-pitch-sub  { color: #222; }

/* Diagram panel — full width below inputs */
.ibc-diagram-wrap {
	padding: 28px 40px 24px;
	background: #fafafa;
	border-bottom: 2px solid #eee;
	display: flex;
	flex-direction: column;
	align-items: center;
}
.ibc-diagram-label {
	font-size: 0.85rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #999;
	margin-bottom: 12px;
}
#ibc-diagram {
	width: 100%;
	max-width: 100%;
	border-radius: 8px;
	border: 1.5px solid #e0e0e0;
	background: #f8f8f8;
	transition: all 0.3s ease;
}
.ibc-diagram-note {
	font-size: 0.9rem;
	color: #aaa;
	margin-top: 10px;
	font-style: italic;
}

/* Result */
.ibc-result-wrap {
	background: #000;
	padding: 28px 40px;
	text-align: center;
	border-bottom: 4px solid #fbe000;
}
.ibc-result-inner {
	display: flex;
	align-items: baseline;
	justify-content: center;
	gap: 14px;
	flex-wrap: wrap;
}
.ibc-result-label {
	font-size: 1rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: #aaa;
}
.ibc-result-value {
	font-size: 3.6rem;
	font-weight: 800;
	color: #fbe000;
	line-height: 1;
	transition: all 0.3s ease;
}
.ibc-result-unit {
	font-size: 1.1rem;
	font-weight: 600;
	color: #fbe000;
}
.ibc-result-note {
	font-size: 0.95rem;
	color: #aaa;
	margin: 10px 0 0;
}
.ibc-result-note.hidden { display: none; }

/* Disclaimer */
.ibc-disclaimer {
	font-size: 0.85rem;
	color: #999999;
	background: #222;
	margin: 0;
	padding: 14px 24px;
	text-align: center;
	border-top: 1px solid #e0e0e0;
	font-style: italic;
}

/* Mobile */
@media (max-width: 600px) {
	.ibc-header        { padding: 22px 20px 18px; }
	.ibc-header h2     { font-size: 1.3rem; }
	.ibc-inputs        { padding: 22px 20px 18px; gap: 20px 24px; }
	.ibc-diagram-wrap  { padding: 20px; }
	.ibc-result-wrap   { padding: 22px 20px; }
	.ibc-result-value  { font-size: 2.8rem; }
	.ibc-pitch-options { gap: 8px; }
	.ibc-pitch-card    { min-width: 80px; padding: 10px 6px 8px; }
}
