/* ==========================================================================
   CF7 Power Pack - UIテーマ集
   ========================================================================== */

/* ---------- 共通ベーススタイル ---------- */
.wpcf7 [class*="cf7pp-theme-"] {
	box-sizing: border-box;
}

.wpcf7 [class*="cf7pp-theme-"] p {
	margin-bottom: 1.2em;
}

.wpcf7 [class*="cf7pp-theme-"] label {
	display: block;
	margin-bottom: 0.4em;
	font-weight: 600;
	font-size: 0.9em;
}

.wpcf7 [class*="cf7pp-theme-"] .wpcf7-form-control-wrap {
	display: block;
}

/* ---------- テーマ1: モダン ---------- */
.cf7pp-theme-modern {
	max-width: 640px;
	margin: 0 auto;
	padding: 2.5em;
	background: #ffffff;
	border-radius: 16px;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.cf7pp-theme-modern input[type="text"],
.cf7pp-theme-modern input[type="email"],
.cf7pp-theme-modern input[type="tel"],
.cf7pp-theme-modern input[type="url"],
.cf7pp-theme-modern input[type="number"],
.cf7pp-theme-modern input[type="date"],
.cf7pp-theme-modern select,
.cf7pp-theme-modern textarea {
	width: 100%;
	padding: 12px 16px;
	border: 2px solid #e2e8f0;
	border-radius: 10px;
	font-size: 1em;
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
	background: #f8fafc;
	outline: none;
}

.cf7pp-theme-modern input:focus,
.cf7pp-theme-modern select:focus,
.cf7pp-theme-modern textarea:focus {
	border-color: #6366f1;
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
	background: #fff;
}

.cf7pp-theme-modern textarea {
	min-height: 140px;
	resize: vertical;
}

.cf7pp-theme-modern input[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 14px 32px;
	background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
	color: #fff;
	border: none;
	border-radius: 10px;
	font-size: 1.05em;
	font-weight: 700;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	letter-spacing: 0.02em;
}

.cf7pp-theme-modern input[type="submit"]:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(99, 102, 241, 0.35);
}

.cf7pp-theme-modern input[type="submit"]:active {
	transform: translateY(0);
}

/* ---------- テーマ2: マテリアル ---------- */
.cf7pp-theme-material {
	max-width: 640px;
	margin: 0 auto;
	padding: 2.5em;
	background: #ffffff;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.08);
	font-family: "Roboto", -apple-system, sans-serif;
}

.cf7pp-theme-material input[type="text"],
.cf7pp-theme-material input[type="email"],
.cf7pp-theme-material input[type="tel"],
.cf7pp-theme-material input[type="url"],
.cf7pp-theme-material input[type="number"],
.cf7pp-theme-material input[type="date"],
.cf7pp-theme-material select,
.cf7pp-theme-material textarea {
	width: 100%;
	padding: 12px 0;
	border: none;
	border-bottom: 2px solid #bdbdbd;
	border-radius: 0;
	font-size: 1em;
	background: transparent;
	transition: border-color 0.3s ease;
	outline: none;
}

.cf7pp-theme-material input:focus,
.cf7pp-theme-material select:focus,
.cf7pp-theme-material textarea:focus {
	border-bottom-color: #1976d2;
}

.cf7pp-theme-material textarea {
	min-height: 120px;
	resize: vertical;
}

.cf7pp-theme-material input[type="submit"] {
	width: 100%;
	padding: 14px 32px;
	background: #1976d2;
	color: #fff;
	border: none;
	border-radius: 4px;
	font-size: 1em;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	cursor: pointer;
	transition: background 0.3s ease, box-shadow 0.3s ease;
}

.cf7pp-theme-material input[type="submit"]:hover {
	background: #1565c0;
	box-shadow: 0 4px 12px rgba(25, 118, 210, 0.4);
}

/* ---------- テーマ3: グラスモーフィズム ---------- */
.cf7pp-theme-glassmorphism {
	max-width: 640px;
	margin: 0 auto;
	padding: 2.5em;
	background: rgba(255, 255, 255, 0.25);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 20px;
	box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.cf7pp-theme-glassmorphism input[type="text"],
.cf7pp-theme-glassmorphism input[type="email"],
.cf7pp-theme-glassmorphism input[type="tel"],
.cf7pp-theme-glassmorphism input[type="url"],
.cf7pp-theme-glassmorphism input[type="number"],
.cf7pp-theme-glassmorphism input[type="date"],
.cf7pp-theme-glassmorphism select,
.cf7pp-theme-glassmorphism textarea {
	width: 100%;
	padding: 12px 16px;
	background: rgba(255, 255, 255, 0.35);
	backdrop-filter: blur(4px);
	border: 1px solid rgba(255, 255, 255, 0.5);
	border-radius: 12px;
	font-size: 1em;
	outline: none;
	transition: all 0.3s ease;
}

.cf7pp-theme-glassmorphism input:focus,
.cf7pp-theme-glassmorphism select:focus,
.cf7pp-theme-glassmorphism textarea:focus {
	background: rgba(255, 255, 255, 0.5);
	border-color: rgba(99, 102, 241, 0.5);
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.cf7pp-theme-glassmorphism textarea {
	min-height: 140px;
	resize: vertical;
}

.cf7pp-theme-glassmorphism input[type="submit"] {
	width: 100%;
	padding: 14px 32px;
	background: linear-gradient(135deg, rgba(99, 102, 241, 0.8), rgba(168, 85, 247, 0.8));
	color: #fff;
	border: none;
	border-radius: 12px;
	font-size: 1.05em;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.3s ease;
	backdrop-filter: blur(4px);
}

.cf7pp-theme-glassmorphism input[type="submit"]:hover {
	background: linear-gradient(135deg, rgba(99, 102, 241, 1), rgba(168, 85, 247, 1));
	box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
	transform: translateY(-2px);
}

/* ---------- テーマ4: ミニマル ---------- */
.cf7pp-theme-minimal {
	max-width: 580px;
	margin: 0 auto;
	padding: 2em 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.cf7pp-theme-minimal label {
	font-size: 0.8em;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: #64748b;
}

.cf7pp-theme-minimal input[type="text"],
.cf7pp-theme-minimal input[type="email"],
.cf7pp-theme-minimal input[type="tel"],
.cf7pp-theme-minimal input[type="url"],
.cf7pp-theme-minimal input[type="number"],
.cf7pp-theme-minimal input[type="date"],
.cf7pp-theme-minimal select,
.cf7pp-theme-minimal textarea {
	width: 100%;
	padding: 10px 0;
	border: none;
	border-bottom: 1px solid #e2e8f0;
	font-size: 1em;
	background: transparent;
	outline: none;
	transition: border-color 0.3s ease;
}

.cf7pp-theme-minimal input:focus,
.cf7pp-theme-minimal select:focus,
.cf7pp-theme-minimal textarea:focus {
	border-bottom-color: #0f172a;
}

.cf7pp-theme-minimal textarea {
	min-height: 100px;
	resize: vertical;
}

.cf7pp-theme-minimal input[type="submit"] {
	width: auto;
	padding: 12px 48px;
	background: #0f172a;
	color: #fff;
	border: none;
	border-radius: 0;
	font-size: 0.9em;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	cursor: pointer;
	transition: background 0.3s ease;
}

.cf7pp-theme-minimal input[type="submit"]:hover {
	background: #1e293b;
}

/* ---------- テーマ5: ラウンド ---------- */
.cf7pp-theme-rounded {
	max-width: 640px;
	margin: 0 auto;
	padding: 2.5em;
	background: #fefefe;
	border-radius: 24px;
	box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.cf7pp-theme-rounded input[type="text"],
.cf7pp-theme-rounded input[type="email"],
.cf7pp-theme-rounded input[type="tel"],
.cf7pp-theme-rounded input[type="url"],
.cf7pp-theme-rounded input[type="number"],
.cf7pp-theme-rounded input[type="date"],
.cf7pp-theme-rounded select,
.cf7pp-theme-rounded textarea {
	width: 100%;
	padding: 14px 20px;
	border: 2px solid #e5e7eb;
	border-radius: 50px;
	font-size: 1em;
	background: #f9fafb;
	outline: none;
	transition: all 0.3s ease;
}

.cf7pp-theme-rounded textarea {
	border-radius: 20px;
	min-height: 140px;
	resize: vertical;
}

.cf7pp-theme-rounded input:focus,
.cf7pp-theme-rounded select:focus,
.cf7pp-theme-rounded textarea:focus {
	border-color: #10b981;
	background: #fff;
	box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}

.cf7pp-theme-rounded input[type="submit"] {
	width: 100%;
	padding: 16px 32px;
	background: linear-gradient(135deg, #10b981 0%, #059669 100%);
	color: #fff;
	border: none;
	border-radius: 50px;
	font-size: 1.05em;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.3s ease;
}

.cf7pp-theme-rounded input[type="submit"]:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(16, 185, 129, 0.35);
}

/* ---------- バリデーションエラー ---------- */
[class*="cf7pp-theme-"] .wpcf7-not-valid {
	border-color: #ef4444 !important;
}

[class*="cf7pp-theme-"] .wpcf7-not-valid-tip {
	color: #ef4444;
	font-size: 0.85em;
	margin-top: 4px;
}

[class*="cf7pp-theme-"] .wpcf7-response-output {
	padding: 12px 20px;
	border-radius: 10px;
	font-size: 0.95em;
	margin: 1em 0 0;
}

[class*="cf7pp-theme-"] .wpcf7-mail-sent-ok {
	border-color: #10b981;
	background: #ecfdf5;
	color: #065f46;
}

/* ---------- 送信中スピナー ---------- */
[class*="cf7pp-theme-"] .wpcf7-spinner {
	display: inline-block;
	width: 24px;
	height: 24px;
	border: 3px solid rgba(255, 255, 255, 0.3);
	border-top-color: #fff;
	border-radius: 50%;
	animation: cf7pp-spin 0.6s linear infinite;
	vertical-align: middle;
	margin-left: 8px;
}

@keyframes cf7pp-spin {
	to { transform: rotate(360deg); }
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 600px) {
	[class*="cf7pp-theme-"] {
		padding: 1.5em;
		border-radius: 12px;
	}

	[class*="cf7pp-theme-"] input[type="submit"] {
		padding: 12px 24px;
	}
}
