/**
 * Authyo NF — Support Tab Styles
 *
 * @since 1.0.5
 */

/* ========================================================================
   0. SPINNER ANIMATION
   ======================================================================== */

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

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

/* ========================================================================
   1. CONTAINER LAYOUT
   ======================================================================== */

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

/* ========================================================================
   2. CONTACT CARD — email display
   ======================================================================== */

.authyo-support-contact-card .authyo-support-email-row {
	padding: 0;
}

.authyo-support-email-row {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 18px 0 10px;
	margin: 0;
}

.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;
	-webkit-user-select: all;
	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;
	line-height: 1.5 !important;
	white-space: nowrap;
	border-radius: 4px !important;
	-webkit-transition: all 0.2s ease;
	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;
}

/* ========================================================================
   3. FORM CARD — help request form
   ======================================================================== */

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

/* Two-column row for category + email */
.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;
}

/* --- Form inputs --- */

.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;
	-webkit-transition: border-color 0.15s ease, box-shadow 0.15s ease;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.authyo-support-field select.authyo-field-input {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2350575e' d='M6 8.825L1.175 4 2.238 2.938 6 6.7l3.763-3.763L10.825 4z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 12px;
	padding-right: 36px;
	cursor: pointer;
}

.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;
}

/* ========================================================================
   4. DISCLOSURE NOTICE
   ======================================================================== */

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

/* ========================================================================
   5. SUBMIT ROW
   ======================================================================== */

.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;
	line-height: 1.4 !important;
	border-radius: 6px !important;
	-webkit-transition: all 0.15s ease;
	transition: all 0.15s ease;
}

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

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

/* Spinner used on the submit button during sending */
.authyo-support-submit-btn .dashicons-update {
	-webkit-animation: authyo-nf-spin 1s linear infinite;
	animation: authyo-nf-spin 1s linear infinite;
}

/* ========================================================================
   6. STATUS MESSAGE
   ======================================================================== */

.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;
}

/* ========================================================================
   7. RESPONSIVE
   ======================================================================== */

@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;
		padding: 14px 0 10px;
	}

	.authyo-support-email-address {
		font-size: 15px;
	}

	.authyo-support-copy-btn {
		margin-left: 0;
		width: 100%;
		justify-content: center;
	}
}

@media screen and (max-width: 480px) {
	.authyo-support-email-icon {
		width: 34px;
		height: 34px;
		font-size: 17px;
	}

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

	.authyo-support-submit-btn {
		width: 100%;
		justify-content: center;
	}
}
