/* ---------- Shared ---------- */
.ccf-form-wrap, .ccf-cards-grid { box-sizing: border-box; }
.ccf-form-wrap *, .ccf-cards-grid * { box-sizing: border-box; }

/* ---------- Notice ---------- */
.ccf-notice {
	padding: 14px 18px;
	border-radius: 8px;
	margin-bottom: 20px;
	font-size: 15px;
}
.ccf-notice-success { background: #e6f6ec; color: #1e7e34; border: 1px solid #b7e4c7; }
.ccf-notice-error { background: #fdecea; color: #b3261e; border: 1px solid #f5c2c0; }

/* ---------- Application form ---------- */
.ccf-apply-form {
	max-width: 640px;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 28px;
}
.ccf-field { margin-bottom: 18px; }
.ccf-field-row {
	display: flex;
	gap: 16px;
	margin-bottom: 0;
}
.ccf-field-row .ccf-field { flex: 1; margin-bottom: 18px; }
.ccf-field label {
	display: block;
	font-weight: 600;
	font-size: 14px;
	margin-bottom: 6px;
	color: #1f2937;
}
.ccf-field input[type="text"],
.ccf-field input[type="email"],
.ccf-field input[type="file"],
.ccf-field select,
.ccf-field textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font-size: 14px;
	background: #fff;
}
.ccf-field textarea { resize: vertical; }
.ccf-field input:focus,
.ccf-field select:focus,
.ccf-field textarea:focus {
	outline: none;
	border-color: #6366f1;
	box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}
.ccf-submit-btn {
	background: #4f46e5;
	color: #fff;
	border: none;
	padding: 12px 28px;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease;
}
.ccf-submit-btn:hover { background: #4338ca; }

@media (max-width: 480px) {
	.ccf-field-row { flex-direction: column; gap: 0; }
}

/* ---------- Cards grid ---------- */
.ccf-cards-grid {
	display: grid;
	gap: 24px;
	grid-template-columns: repeat(3, 1fr);
}
.ccf-columns-1 { grid-template-columns: 1fr; }
.ccf-columns-2 { grid-template-columns: repeat(2, 1fr); }
.ccf-columns-3 { grid-template-columns: repeat(3, 1fr); }
.ccf-columns-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
	.ccf-cards-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 600px) {
	.ccf-cards-grid { grid-template-columns: 1fr !important; }
}

.ccf-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.ccf-card:hover {
	box-shadow: 0 8px 24px rgba(0,0,0,0.08);
	transform: translateY(-2px);
}
.ccf-card-image {
	position: relative;
	height: 170px;
	background: #f3f4f6;
	overflow: hidden;
}
.ccf-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.ccf-card-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #9ca3af;
}
.ccf-card-placeholder .dashicons { font-size: 42px; width: 42px; height: 42px; }
.ccf-card-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	background: #4f46e5;
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	padding: 4px 10px;
	border-radius: 999px;
}
.ccf-card-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.ccf-card-title { margin: 0 0 6px; font-size: 18px; color: #111827; }
.ccf-card-location {
	display: flex;
	align-items: center;
	gap: 4px;
	margin: 0 0 8px;
	font-size: 13px;
	color: #6b7280;
}
.ccf-card-location .dashicons { font-size: 16px; width: 16px; height: 16px; }
.ccf-card-address {
	margin: 0 0 12px;
	font-size: 13px;
	color: #4b5563;
	line-height: 1.5;
}
.ccf-card-contact {
	margin-top: auto;
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding-top: 10px;
	border-top: 1px solid #f0f0f0;
}
.ccf-card-contact-item {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: #4f46e5;
	text-decoration: none;
}
.ccf-card-contact-item .dashicons { font-size: 15px; width: 15px; height: 15px; }
.ccf-card-contact-item:hover { text-decoration: underline; }

.ccf-no-results {
	color: #6b7280;
	font-style: italic;
}
