/**
 * Authyo SureForms — Support Tab Styles
 *
 * Card chrome (.authyo-settings-card / .authyo-card-header / .authyo-card-body)
 * is shared with the rest of the settings page (assets/css/admin.css); this
 * file only styles what is unique to the Support tab.
 *
 * File location: includes/support/support.css
 */

@keyframes authyo-support-spin {
	from { transform: rotate(0deg); }
	to   { transform: rotate(360deg); }
}

.authyo-support-container {
	display: flex;
	flex-direction: column;
	gap: 0;
	max-width: 680px;
}

.authyo-support-container .authyo-settings-card {
	margin: 0 0 24px;
}

.authyo-support-email-row {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 18px 24px;
	background: linear-gradient(135deg, #f0f6fc 0%, #e8f0fe 100%);
	border-radius: 4px;
}

.authyo-support-email-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	font-size: 20px;
	color: #fff;
	background: #2271b1;
	border-radius: 50%;
	flex-shrink: 0;
}

.authyo-support-email-icon.dashicons::before {
	line-height: 40px;
}

.authyo-support-email-address {
	font-size: 17px;
	font-weight: 600;
	color: #1d2327;
	letter-spacing: 0.2px;
	user-select: all;
}

.authyo-support-copy-btn {
	display: inline-flex !important;
	align-items: center;
	gap: 5px;
	margin-left: auto;
	padding: 6px 16px !important;
	font-size: 13px !important;
	font-weight: 500 !important;
	white-space: nowrap;
	border-radius: 4px !important;
	transition: all 0.2s ease;
}

.authyo-support-copy-btn .dashicons {
	font-size: 15px;
	width: 15px;
	height: 15px;
	line-height: 15px;
}

.authyo-support-copy-btn.authyo-copied {
	color: #00a32a !important;
	border-color: #00a32a !important;
	background: #edfaef !important;
}

.authyo-support-form {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.authyo-support-row-2col {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

.authyo-support-field {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.authyo-support-field .authyo-field-label {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 600;
	color: #1d2327;
	margin-bottom: 2px;
}

.authyo-support-field .authyo-field-label .dashicons {
	font-size: 15px;
	width: 15px;
	height: 15px;
	color: #2271b1;
}

.authyo-support-field select.authyo-field-input,
.authyo-support-field input.authyo-field-input,
.authyo-support-field textarea.authyo-field-input {
	display: block;
	width: 100%;
	max-width: 100%;
	padding: 10px 14px;
	font-size: 14px;
	line-height: 1.5;
	border: 1px solid #c3c4c7;
	border-radius: 6px;
	background: #fff;
	color: #1d2327;
	box-sizing: border-box;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.authyo-support-field select.authyo-field-input:focus,
.authyo-support-field input.authyo-field-input:focus,
.authyo-support-field textarea.authyo-field-input:focus {
	border-color: #2271b1;
	box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.15);
	outline: none;
}

.authyo-support-field textarea.authyo-field-input {
	resize: vertical;
	min-height: 120px;
}

.authyo-support-disclosure {
	padding: 10px 14px;
	background: #f6f7f7;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	font-size: 12px;
	color: #50575e;
	line-height: 1.5;
}

.authyo-support-disclosure .dashicons {
	font-size: 14px;
	width: 14px;
	height: 14px;
	color: #2271b1;
	vertical-align: text-bottom;
	margin-right: 4px;
}

.authyo-support-submit-row {
	padding-top: 6px;
}

.authyo-support-submit-btn {
	display: inline-flex !important;
	align-items: center;
	gap: 7px;
	padding: 10px 28px !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	border-radius: 6px !important;
	transition: all 0.15s ease;
}

.authyo-support-submit-btn .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
	line-height: 16px;
}

.authyo-support-submit-btn .dashicons.authyo-spin {
	animation: authyo-support-spin 1s linear infinite;
}

.authyo-support-submit-btn:disabled {
	opacity: 0.65;
	cursor: not-allowed;
}

.authyo-support-status {
	padding: 14px 18px;
	border-radius: 6px;
	font-size: 13px;
	line-height: 1.5;
	font-weight: 500;
}

.authyo-support-status.authyo-support-success {
	background: #edfaef;
	border-left: 4px solid #00a32a;
	color: #1e4620;
}

.authyo-support-status.authyo-support-error {
	background: #fcf0f1;
	border-left: 4px solid #d63638;
	color: #8a1f22;
}

.authyo-support-status.authyo-support-warning {
	background: #fff8e1;
	border-left: 4px solid #ffb300;
	color: #664d03;
}

@media screen and (max-width: 782px) {
	.authyo-support-container {
		max-width: 100%;
	}
	.authyo-support-row-2col {
		grid-template-columns: 1fr;
	}
	.authyo-support-email-row {
		flex-wrap: wrap;
		gap: 10px;
	}
	.authyo-support-copy-btn {
		margin-left: 0;
		width: 100%;
		justify-content: center;
	}
}
