/**
 * ATS Frontend Styles
 *
 * @package DD_ATS
 */

.ats-application-form-wrapper {
	max-width: 800px;
	margin: 40px auto;
	padding: 20px;
}

.ats-job-header {
	margin-bottom: 30px;
	padding-bottom: 20px;
	border-bottom: 2px solid #e5e5e5;
}

.ats-job-header h2 {
	margin: 0 0 15px 0;
	color: #333;
}

.ats-job-description {
	color: #666;
	line-height: 1.6;
}

.ats-application-form h3 {
	margin: 30px 0 20px 0;
	font-size: 20px;
	color: #333;
	border-bottom: 1px solid #e5e5e5;
	padding-bottom: 10px;
}

.ats-form-row {
	display: flex;
	gap: 20px;
	margin-bottom: 25px;
}

.ats-form-row .ats-form-group {
	margin-bottom: 0;
}

.ats-form-half {
	flex: 1;
}

.ats-form-group {
	margin-bottom: 25px;
}

.ats-form-group label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	color: #333;
	font-size: 15px;
}

.ats-form-group input[type="text"],
.ats-form-group input[type="email"],
.ats-form-group input[type="tel"],
.ats-form-group input[type="number"],
.ats-form-group textarea,
.ats-form-group select {
	width: 100%;
	padding: 12px 15px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 15px;
	font-family: inherit;
	transition: border-color 0.2s, box-shadow 0.2s;
	box-sizing: border-box;
}

.ats-form-group input[type="text"]:focus,
.ats-form-group input[type="email"]:focus,
.ats-form-group input[type="tel"]:focus,
.ats-form-group input[type="number"]:focus,
.ats-form-group textarea:focus,
.ats-form-group select:focus {
	outline: none;
	border-color: #2271b1;
	box-shadow: 0 0 0 1px #2271b1;
}

.ats-form-group textarea {
	min-height: 120px;
	resize: vertical;
}

.ats-form-group input[type="file"] {
	padding: 8px 0;
	font-size: 14px;
}

.ats-form-help {
	margin: 5px 0 0 0;
	font-size: 13px;
	color: #666;
	font-style: italic;
}

.ats-required {
	color: #d63638;
	font-weight: bold;
}

.ats-optional {
	color: #999;
	font-weight: normal;
	font-size: 13px;
}

.ats-screening-questions {
	margin-top: 40px;
	padding-top: 30px;
	border-top: 2px solid #e5e5e5;
}

.ats-screening-question {
	background: #f9f9f9;
	padding: 20px;
	border-radius: 4px;
	margin-bottom: 20px;
}

.ats-form-actions {
	margin-top: 30px;
	padding-top: 20px;
	text-align: center;
}

.ats-submit-button {
	background: #2271b1;
	color: #fff;
	padding: 14px 40px;
	border: none;
	border-radius: 4px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.3s, transform 0.1s;
}

.ats-submit-button:hover {
	background: #135e96;
	transform: translateY(-1px);
}

.ats-submit-button:active {
	transform: translateY(0);
}

.ats-submit-button:disabled {
	background: #ccc;
	cursor: not-allowed;
	transform: none;
}

.ats-loading {
	display: inline-block;
	margin-left: 15px;
	color: #666;
	font-style: italic;
}

#ats-message-container {
	margin-bottom: 20px;
}

.ats-message {
	padding: 15px 20px;
	margin: 20px 0;
	border-radius: 4px;
	font-size: 15px;
	line-height: 1.5;
}

.ats-message.success {
	background: #d7f8e0;
	border-left: 4px solid #00a32a;
	color: #00551a;
}

.ats-message.error {
	background: #ffd8d8;
	border-left: 4px solid #d63638;
	color: #8b0000;
}

.ats-error {
	color: #d63638;
	font-weight: 600;
	padding: 15px;
	background: #ffd8d8;
	border-left: 4px solid #d63638;
	border-radius: 4px;
}

/* Responsive */
@media (max-width: 768px) {
	.ats-application-form-wrapper {
		padding: 15px;
	}

	.ats-form-row {
		flex-direction: column;
		gap: 0;
	}

	.ats-form-row .ats-form-group {
		margin-bottom: 25px;
	}

	.ats-form-group input[type="text"],
	.ats-form-group input[type="email"],
	.ats-form-group input[type="tel"],
	.ats-form-group input[type="number"],
	.ats-form-group textarea,
	.ats-form-group select {
		font-size: 16px; /* Prevents zoom on mobile */
	}

	.ats-submit-button {
		width: 100%;
		padding: 16px 20px;
	}
}
