.ccc-form-wrapper,
.ccc-form-wrapper * {
	box-sizing: border-box;
}

.ccc-form-wrapper {
	width: min(100%, 920px);
	margin: 32px auto;
	padding: 0 16px;
	color: #18212f;
	font-family: inherit;
}

.ccc-card {
	background: #ffffff;
	border: 1px solid #dfe6ee;
	border-radius: 8px;
	box-shadow: 0 16px 40px rgba(18, 31, 48, 0.08);
	padding: 24px;
}

.ccc-card + .ccc-card {
	margin-top: 18px;
}

.ccc-card-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	background: #f7fafc;
}

.ccc-kicker {
	margin: 0 0 6px;
	color: #527089;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0;
	text-transform: uppercase;
}

.ccc-card h2 {
	margin: 0;
	font-size: clamp(1.4rem, 2vw, 2rem);
	line-height: 1.2;
	color: #122238;
}

.ccc-recipient-limit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 34px;
	padding: 6px 12px;
	border: 1px solid #c8d7e6;
	border-radius: 999px;
	color: #30516e;
	font-size: 0.88rem;
	font-weight: 700;
	white-space: nowrap;
	background: #ffffff;
}

.ccc-field {
	margin-bottom: 22px;
}

.ccc-field label {
	display: block;
	margin-bottom: 8px;
	color: #22354a;
	font-size: 0.95rem;
	font-weight: 700;
}

.ccc-field input[type="text"],
.ccc-field input[type="email"],
.ccc-field input[type="file"],
.ccc-field textarea {
	width: 100%;
	min-height: 48px;
	border: 1px solid #c9d6e2;
	border-radius: 8px;
	background: #fbfdff;
	color: #152436;
	font: inherit;
	padding: 12px 14px;
	transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.ccc-field input[type="file"] {
	background: #ffffff;
}

.ccc-field input:focus,
.ccc-field textarea:focus {
	border-color: #1677c7;
	background: #ffffff;
	box-shadow: 0 0 0 3px rgba(22, 119, 199, 0.16);
	outline: 0;
}

.ccc-recipient-list {
	display: grid;
	gap: 10px;
}

.ccc-recipient-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 44px;
	gap: 10px;
	align-items: center;
}

.ccc-recipient-row input {
	min-width: 0;
}

.ccc-add-recipient,
.ccc-remove-recipient,
.ccc-submit-button {
	border: 0;
	border-radius: 8px;
	cursor: pointer;
	font: inherit;
	font-weight: 700;
	transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.ccc-add-recipient {
	margin-top: 12px;
	padding: 10px 14px;
	background: #e9f4ff;
	color: #145c97;
}

.ccc-remove-recipient {
	width: 44px;
	height: 44px;
	background: #fff0f0;
	color: #a01818;
	font-size: 1.35rem;
	line-height: 1;
}

.ccc-remove-recipient:disabled {
	cursor: not-allowed;
	opacity: 0.45;
}

.ccc-submit-button {
	width: 100%;
	min-height: 52px;
	margin-top: 4px;
	padding: 14px 18px;
	background: #116f45;
	color: #ffffff;
	box-shadow: 0 12px 24px rgba(17, 111, 69, 0.22);
}

.ccc-add-recipient:hover,
.ccc-remove-recipient:not(:disabled):hover,
.ccc-submit-button:hover {
	transform: translateY(-1px);
}

.ccc-submit-button:hover {
	background: #0d5f3a;
}

.ccc-help,
.ccc-file-list {
	margin: 8px 0 0;
	color: #5d7084;
	font-size: 0.9rem;
	line-height: 1.5;
}

.ccc-file-list {
	border: 1px dashed #c4d2df;
	border-radius: 8px;
	background: #f7fafc;
	padding: 10px 12px;
}

.ccc-form-feedback {
	display: none;
	margin: 0 0 16px;
	border-radius: 8px;
	padding: 12px 14px;
	font-weight: 700;
}

.ccc-form-feedback.is-visible {
	display: block;
}

.ccc-form-feedback.is-error {
	background: #fff4f4;
	border: 1px solid #f0b7b7;
	color: #9f1d1d;
}

.ccc-alert-success,
.ccc-alert-error {
	width: min(100%, 920px);
	margin: 18px auto;
	border-radius: 8px;
	padding: 14px 16px;
	font-weight: 700;
}

.ccc-alert-success {
	background: #ebf8f1;
	border: 1px solid #9ed8ba;
	color: #116f45;
}

.ccc-alert-error {
	background: #fff4f4;
	border: 1px solid #f0b7b7;
	color: #9f1d1d;
}

.ccc-editor-field .wp-editor-wrap {
	border: 1px solid #c9d6e2;
	border-radius: 8px;
	overflow: hidden;
}

.ccc-editor-field .wp-editor-container {
	border: 0;
}

@media (max-width: 680px) {
	.ccc-form-wrapper {
		margin: 20px auto;
		padding: 0 12px;
	}

	.ccc-card {
		padding: 18px;
	}

	.ccc-card-header {
		align-items: flex-start;
		flex-direction: column;
	}

	.ccc-recipient-limit {
		white-space: normal;
	}

	.ccc-recipient-row {
		grid-template-columns: minmax(0, 1fr) 40px;
		gap: 8px;
	}

	.ccc-remove-recipient {
		width: 40px;
		height: 40px;
	}
}
