/*
 * T-Permit Finance Enquiry Frontend Style
 */

.t-fe-form-wrapper {
	font-family: 'Poppins', sans-serif;
	max-width: 850px;
	margin: 0 auto;
	padding: 15px;
	color: #0F172A;
}

.t-fe-form-wrapper * {
	box-sizing: border-box;
}

/* Premium Card Styles */
.t-fe-card {
	background: #FFFFFF;
	border: 1px solid #E2E8F0;
	border-radius: 16px;
	box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
	margin-bottom: 25px;
	overflow: hidden;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.t-fe-card:hover {
	box-shadow: 0 6px 30px rgba(15, 23, 42, 0.05);
}

.t-fe-card-header {
	background: #0F172A;
	color: #FFFFFF;
	padding: 20px 25px;
	display: flex;
	align-items: center;
	border-bottom: 4px solid #FFC107;
}

.t-fe-step-num {
	background: #FFC107;
	color: #0F172A;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 14px;
	margin-right: 15px;
}

.t-fe-card-header h3 {
	margin: 0;
	font-size: 18px;
	font-weight: 600;
	color: #FFFFFF;
	letter-spacing: -0.01em;
}

.t-fe-card-body {
	padding: 30px;
}

/* Responsive Grid */
.t-fe-grid {
	display: flex;
	flex-wrap: wrap;
	margin-right: -12px;
	margin-left: -12px;
}

.t-fe-col-6, .t-fe-col-12 {
	position: relative;
	width: 100%;
	padding-right: 12px;
	padding-left: 12px;
	margin-bottom: 18px;
}

@media(min-width: 768px) {
	.t-fe-col-6 {
		flex: 0 0 50%;
		max-width: 50%;
	}
}

.t-fe-col-12 {
	flex: 0 0 100%;
	max-width: 100%;
}

/* Form Inputs styling */
.t-fe-card-body label {
	display: block;
	font-size: 13.5px;
	font-weight: 500;
	margin-bottom: 6px;
	color: #334155;
}

.t-fe-required {
	color: #EF4444;
	margin-left: 2px;
}

.t-fe-card-body input[type="text"],
.t-fe-card-body input[type="email"],
.t-fe-card-body input[type="tel"],
.t-fe-card-body select,
.t-fe-card-body textarea {
	width: 100%;
	padding: 12px 18px;
	font-size: 14px;
	font-family: 'Poppins', sans-serif;
	color: #0F172A;
	background-color: #F8FAFC;
	border: 1px solid #CBD5E1;
	border-radius: 10px;
	outline: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.t-fe-card-body input:focus,
.t-fe-card-body select:focus,
.t-fe-card-body textarea:focus {
	border-color: #0F172A;
	background-color: #FFFFFF;
	box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.08);
}

.t-fe-card-body select {
	appearance: none;
	background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23334155' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
	background-repeat: no-repeat;
	background-position: right 18px center;
	background-size: 16px;
	padding-right: 45px;
}

.t-fe-card-body textarea {
	resize: vertical;
}

.t-fe-help-text {
	font-size: 12px;
	color: #64748B;
	margin-top: -10px;
	margin-bottom: 20px;
}

/* File Upload styling */
.t-fe-file-upload {
	margin-bottom: 5px;
}

.t-fe-file-dropzone {
	position: relative;
	border: 2px dashed #CBD5E1;
	border-radius: 12px;
	padding: 15px;
	background: #F8FAFC;
	text-align: center;
	cursor: pointer;
	transition: border-color 0.2s, background-color 0.2s;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.t-fe-file-dropzone:hover, .t-fe-file-dropzone.dragover {
	border-color: #0F172A;
	background-color: #F1F5F9;
}

.t-fe-file-dropzone input[type="file"] {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: pointer;
}

.t-fe-file-btn {
	background: #E2E8F0;
	color: #334155;
	padding: 6px 12px;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 500;
	pointer-events: none;
}

.t-fe-file-name {
	font-size: 12px;
	color: #64748B;
	text-overflow: ellipsis;
	overflow: hidden;
	white-space: nowrap;
	max-width: 60%;
	pointer-events: none;
}

/* Custom Checkbox */
.t-fe-confirm-box {
	background: #F1F5F9;
	padding: 15px 20px;
	border-radius: 12px;
	display: inline-block;
}

.t-fe-checkbox-container {
	display: flex;
	align-items: flex-start;
	position: relative;
	padding-left: 30px;
	cursor: pointer;
	user-select: none;
}

.t-fe-checkbox-container input {
	position: absolute;
	opacity: 0;
	cursor: pointer;
	height: 0;
	width: 0;
}

.t-fe-checkmark {
	position: absolute;
	top: 3px;
	left: 0;
	height: 20px;
	width: 20px;
	background-color: #FFFFFF;
	border: 1.5px solid #CBD5E1;
	border-radius: 6px;
	transition: background-color 0.15s, border-color 0.15s;
}

.t-fe-checkbox-container:hover input ~ .t-fe-checkmark {
	border-color: #0F172A;
}

.t-fe-checkbox-container input:checked ~ .t-fe-checkmark {
	background-color: #0F172A;
	border-color: #0F172A;
}

.t-fe-checkmark:after {
	content: "";
	position: absolute;
	display: none;
}

.t-fe-checkbox-container input:checked ~ .t-fe-checkmark:after {
	display: block;
}

.t-fe-checkbox-container .t-fe-checkmark:after {
	left: 6px;
	top: 2px;
	width: 5px;
	height: 10px;
	border: solid #FFC107;
	border-width: 0 2.5px 2.5px 0;
	transform: rotate(45deg);
}

.t-fe-checkbox-text {
	font-size: 13.5px;
	color: #334155;
	line-height: 1.5;
	text-align: left;
}

/* Submit Button */
.t-fe-submit-container {
	margin-top: 25px;
}

.t-fe-btn-submit {
	background-color: #0F172A;
	color: #FFFFFF;
	border: 2px solid #0F172A;
	padding: 14px 35px;
	font-size: 16px;
	font-weight: 600;
	font-family: 'Poppins', sans-serif;
	border-radius: 30px;
	cursor: pointer;
	box-shadow: 0 4px 15px rgba(15, 23, 42, 0.15);
	transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.1s;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
}

.t-fe-btn-submit:hover {
	background-color: #FFC107;
	border-color: #FFC107;
	color: #0F172A;
}

.t-fe-btn-submit:active {
	transform: scale(0.98);
}

.t-fe-btn-submit:disabled {
	opacity: 0.7;
	cursor: not-allowed;
	pointer-events: none;
}

/* Loading Spinner */
.t-fe-btn-spinner {
	width: 20px;
	height: 20px;
	border: 3px solid rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	border-top-color: #FFFFFF;
	animation: t-fe-spin 0.8s linear infinite;
}

.t-fe-btn-submit:hover .t-fe-btn-spinner {
	border-color: rgba(15, 23, 42, 0.3);
	border-top-color: #0F172A;
}

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

/* Success View */
.t-fe-success-view {
	text-align: center;
	padding: 50px 20px;
}

.t-fe-success-card {
	background: #FFFFFF;
	border: 1px solid #E2E8F0;
	border-radius: 20px;
	max-width: 550px;
	margin: 0 auto;
	padding: 40px;
	box-shadow: 0 10px 40px rgba(15, 23, 42, 0.08);
}

.t-fe-success-icon-wrap {
	width: 80px;
	height: 80px;
	background: #DCFCE7;
	color: #15803D;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 25px auto;
}

.t-fe-success-svg {
	stroke: #16A34A;
}

.t-fe-success-card h2 {
	margin-top: 0;
	margin-bottom: 12px;
	font-size: 24px;
	font-weight: 700;
	color: #0F172A;
}

.t-fe-success-msg-text {
	font-size: 15px;
	color: #475569;
	margin-bottom: 15px;
	line-height: 1.6;
}

.t-fe-success-ref {
	font-size: 14px;
	color: #0F172A;
	background: #F1F5F9;
	padding: 8px 15px;
	border-radius: 30px;
	display: inline-block;
	margin-bottom: 30px;
}

.t-fe-success-actions {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

@media(min-width: 576px) {
	.t-fe-success-actions {
		flex-direction: row;
		justify-content: center;
	}
}

.t-fe-btn {
	padding: 12px 25px;
	font-size: 14px;
	font-weight: 600;
	border-radius: 30px;
	text-decoration: none !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	transition: all 0.2s;
	border: 2px solid transparent;
}

.t-fe-btn-whatsapp {
	background-color: #25D366;
	color: #FFFFFF;
}

.t-fe-btn-whatsapp:hover {
	background-color: #128C7E;
	transform: translateY(-2px);
}

.t-fe-btn-back {
	background-color: #FFFFFF;
	color: #0F172A;
	border-color: #E2E8F0;
}

.t-fe-btn-back:hover {
	background-color: #F8FAFC;
	border-color: #0F172A;
	transform: translateY(-2px);
}

/* Error View Alert */
.t-fe-error-view {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(15, 23, 42, 0.4);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 99999;
}

.t-fe-error-alert {
	background: #FFFFFF;
	border-left: 6px solid #EF4444;
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
	max-width: 500px;
	width: 90%;
	padding: 20px 25px;
	position: relative;
	animation: t-fe-slide-in 0.3s ease;
}

@keyframes t-fe-slide-in {
	from { transform: translateY(-30px); opacity: 0; }
	to { transform: translateY(0); opacity: 1; }
}

.t-fe-error-content {
	padding-right: 20px;
}

.t-fe-error-content p {
	margin: 0;
	font-size: 14px;
	font-weight: 500;
	color: #0F172A;
	line-height: 1.5;
}

.t-fe-error-close {
	position: absolute;
	top: 15px;
	right: 20px;
	font-size: 24px;
	color: #94A3B8;
	cursor: pointer;
	line-height: 1;
	transition: color 0.2s;
}

.t-fe-error-close:hover {
	color: #0F172A;
}
