/**
 * TestBank - Styles pour la page de préqualification AFRILAND FIRST BANK
 *
 * @package PIGI_Conseils
 * @since 1.0.0
 */

/* Variables de couleurs PIGI */
:root {
	--pigi-blue: #0a192f;
	--pigi-green: #2d8659;
	--pigi-gold: #d4af37;
	--pigi-light-bg: #f8f9fa;
	--gfc-color: #2d8659;
	--aob-color: #0a192f;
	--agi-color: #d4af37;
	--it-color: #3498db;
}

/* ===============================================
   HERO SECTION
   =============================================== */
.testbank-hero {
	background-size: cover;
	background-position: center;
	padding: 60px 0 30px;
	position: relative;
}

.testbank-hero::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(135deg, rgba(10, 25, 47, 0.9) 0%, rgba(45, 134, 89, 0.85) 100%);
	z-index: 1;
}

.testbank-hero .title-outer {
	position: relative;
	z-index: 2;
}

.testbank-hero .subtitle h4 {
	color: var(--pigi-gold);
	font-size: 24px;
	margin: 15px 0 10px;
}

.testbank-hero .subtitle p {
	font-size: 16px;
	line-height: 1.6;
}

/* ===============================================
   ALERTS
   =============================================== */
.testbank-alert {
	padding: 20px 0;
	margin-bottom: 0;
}

.testbank-alert-success {
	background-color: #d4edda;
	border-bottom: 3px solid #28a745;
}

.testbank-alert-error {
	background-color: #f8d7da;
	border-bottom: 3px solid #dc3545;
}

.testbank-alert .alert-content {
	display: flex;
	align-items: flex-start;
	gap: 20px;
}

.testbank-alert i {
	font-size: 32px;
	margin-top: 5px;
}

.testbank-alert-success i {
	color: #28a745;
}

.testbank-alert-error i {
	color: #dc3545;
}

.testbank-alert strong {
	display: block;
	font-size: 18px;
	margin-bottom: 5px;
}

.testbank-alert p {
	margin: 0;
	color: #333;
}

/* ===============================================
   ABOUT SECTION
   =============================================== */
.testbank-about .features-list {
	margin-top: 30px;
}

.testbank-about .feature-item {
	display: flex;
	align-items: center;
	gap: 15px;
	margin-bottom: 15px;
	padding: 12px 0;
	border-bottom: 1px solid #e9ecef;
}

.testbank-about .feature-item:last-child {
	border-bottom: none;
}

.testbank-about .feature-item i {
	color: var(--pigi-green);
	font-size: 20px;
	flex-shrink: 0;
}

.testbank-about .feature-item span {
	font-size: 15px;
	line-height: 1.6;
}

/* ===============================================
   PROCESS SECTION
   =============================================== */
.testbank-process .process-block {
	margin-bottom: 30px;
}

.testbank-process .process-block .inner-box {
	background: #fff;
	padding: 40px 30px;
	border-radius: 10px;
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
	text-align: center;
	transition: all 0.3s ease;
	height: 100%;
}

.testbank-process .process-block .inner-box:hover {
	transform: translateY(-10px);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.testbank-process .icon-box {
	position: relative;
	width: 100px;
	height: 100px;
	margin: 0 auto 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--pigi-blue) 0%, var(--pigi-green) 100%);
}

.testbank-process .icon-box .count {
	position: absolute;
	top: -10px;
	right: -10px;
	background: var(--pigi-gold);
	color: #fff;
	width: 35px;
	height: 35px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	font-weight: bold;
	font-size: 14px;
}

.testbank-process .icon-box i {
	font-size: 40px;
	color: #fff;
}

.testbank-process h4 {
	font-size: 20px;
	margin-bottom: 15px;
	color: var(--pigi-blue);
}

.testbank-process p {
	font-size: 14px;
	line-height: 1.6;
	color: #666;
	margin: 0;
}

/* ===============================================
   PROFILS CARDS
   =============================================== */
.profil-card {
	background: #fff;
	border-radius: 12px;
	padding: 35px 30px;
	box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
	transition: all 0.3s ease;
	height: 100%;
	border-top: 5px solid var(--pigi-blue);
}

.profil-card:hover {
	transform: translateY(-10px);
	box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.profil-card .profil-header {
	display: flex;
	align-items: center;
	gap: 15px;
	margin-bottom: 20px;
}

.profil-card .profil-header i {
	font-size: 40px;
	color: var(--pigi-blue);
}

.profil-card .profil-header h3 {
	font-size: 32px;
	font-weight: 800;
	margin: 0;
	color: var(--pigi-blue);
}

.profil-card h4 {
	font-size: 20px;
	font-weight: 600;
	margin-bottom: 15px;
	color: #333;
}

.profil-card p {
	font-size: 15px;
	line-height: 1.6;
	color: #666;
	margin-bottom: 20px;
}

.profil-card .profil-features {
	list-style: none;
	padding: 0;
	margin: 0;
}

.profil-card .profil-features li {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 0;
	border-top: 1px solid #e9ecef;
	font-size: 14px;
}

.profil-card .profil-features li:first-child {
	border-top: none;
}

.profil-card .profil-features i {
	color: var(--pigi-green);
	font-size: 16px;
	flex-shrink: 0;
}

/* Couleurs spécifiques par profil */
.profil-gfc {
	border-top-color: var(--gfc-color);
}

.profil-gfc .profil-header i,
.profil-gfc .profil-header h3 {
	color: var(--gfc-color);
}

.profil-aob {
	border-top-color: var(--aob-color);
}

.profil-aob .profil-header i,
.profil-aob .profil-header h3 {
	color: var(--aob-color);
}

.profil-agi {
	border-top-color: var(--agi-color);
}

.profil-agi .profil-header i,
.profil-agi .profil-header h3 {
	color: var(--agi-color);
}

.profil-it {
	border-top-color: var(--it-color);
}

.profil-it .profil-header i,
.profil-it .profil-header h3 {
	color: var(--it-color);
}

/* ===============================================
   FORM SECTION
   =============================================== */
.testbank-form-section {
	background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.form-container {
	background: #fff;
	border-radius: 15px;
	padding: 50px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

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

.form-group label {
	font-weight: 600;
	color: var(--pigi-blue);
	margin-bottom: 10px;
	display: block;
	font-size: 15px;
}

.form-group .required {
	color: #dc3545;
}

.input-with-icon {
	position: relative;
}

.input-with-icon i {
	position: absolute;
	left: 15px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--pigi-green);
	font-size: 18px;
	z-index: 2;
}

.input-with-icon .form-control {
	padding-left: 45px;
}

.form-control {
	height: 50px;
	border: 2px solid #e9ecef;
	border-radius: 8px;
	padding: 12px 20px;
	font-size: 15px;
	transition: all 0.3s ease;
}

.form-control:focus {
	border-color: var(--pigi-green);
	box-shadow: 0 0 0 0.2rem rgba(45, 134, 89, 0.15);
}

select.form-control {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%232d8659' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 15px center;
	background-size: 16px 12px;
	appearance: none;
}

/* ===============================================
   PROFIL SELECTOR (Radio Buttons)
   =============================================== */
.profil-selector {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 15px;
	margin-top: 10px;
}

.profil-option {
	cursor: pointer;
	margin: 0;
}

.profil-option input[type="radio"] {
	display: none;
}

.profil-card-mini {
	background: #f8f9fa;
	border: 3px solid #e9ecef;
	border-radius: 10px;
	padding: 20px 15px;
	text-align: center;
	transition: all 0.3s ease;
}

.profil-card-mini strong {
	display: block;
	font-size: 24px;
	font-weight: 800;
	margin-bottom: 5px;
}

.profil-card-mini span {
	display: block;
	font-size: 13px;
	color: #666;
	line-height: 1.4;
}

.profil-option input[type="radio"]:checked + .profil-card-mini {
	background: #fff;
	transform: scale(1.05);
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.profil-option input[type="radio"]:checked + .profil-card-mini.profil-gfc {
	border-color: var(--gfc-color);
}

.profil-option input[type="radio"]:checked + .profil-card-mini.profil-gfc strong {
	color: var(--gfc-color);
}

.profil-option input[type="radio"]:checked + .profil-card-mini.profil-aob {
	border-color: var(--aob-color);
}

.profil-option input[type="radio"]:checked + .profil-card-mini.profil-aob strong {
	color: var(--aob-color);
}

.profil-option input[type="radio"]:checked + .profil-card-mini.profil-agi {
	border-color: var(--agi-color);
}

.profil-option input[type="radio"]:checked + .profil-card-mini.profil-agi strong {
	color: var(--agi-color);
}

.profil-option input[type="radio"]:checked + .profil-card-mini.profil-it {
	border-color: var(--it-color);
}

.profil-option input[type="radio"]:checked + .profil-card-mini.profil-it strong {
	color: var(--it-color);
}

/* ===============================================
   FILE UPLOAD
   =============================================== */
.file-upload-wrapper {
	position: relative;
}

.file-upload-wrapper input[type="file"] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.file-upload-label {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 40px 30px;
	border: 3px dashed #e9ecef;
	border-radius: 10px;
	background: #f8f9fa;
	cursor: pointer;
	transition: all 0.3s ease;
	margin: 0;
}

.file-upload-label:hover {
	border-color: var(--pigi-green);
	background: #fff;
}

.file-upload-label i {
	font-size: 48px;
	color: var(--pigi-green);
	margin-bottom: 15px;
}

.file-upload-text {
	font-size: 15px;
	color: #666;
	text-align: center;
}

.file-upload-name {
	display: none;
	margin-top: 15px;
	font-weight: 600;
	color: var(--pigi-green);
}

.file-upload-wrapper.has-file .file-upload-label {
	border-color: var(--pigi-green);
	background: #e8f5e9;
}

.file-upload-wrapper.has-file .file-upload-name {
	display: block;
}

/* ===============================================
   SUBMIT BUTTON
   =============================================== */
.theme-btn.btn-style-one {
	background: linear-gradient(135deg, var(--pigi-green) 0%, #236b47 100%);
	color: #fff;
	padding: 15px 40px;
	border: none;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 5px 15px rgba(45, 134, 89, 0.3);
}

.theme-btn.btn-style-one:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 25px rgba(45, 134, 89, 0.4);
}

.theme-btn.btn-style-two {
	background: var(--pigi-blue);
	color: #fff;
	padding: 12px 30px;
	border: none;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	display: inline-block;
	text-decoration: none;
}

.theme-btn.btn-style-two:hover {
	background: #0d2340;
	color: #fff;
	text-decoration: none;
}

/* ===============================================
   CONTACT SECTION
   =============================================== */
.testbank-contact h3 {
	font-size: 24px;
	color: var(--pigi-blue);
	margin-bottom: 10px;
}

.testbank-contact p {
	color: #666;
	margin-bottom: 0;
}

/* ===============================================
   RESPONSIVE
   =============================================== */
@media (max-width: 991px) {
	.testbank-hero {
		padding: 80px 0 60px;
	}

	.form-container {
		padding: 35px 25px;
	}

	.profil-selector {
		grid-template-columns: 1fr;
	}

	.testbank-contact .text-right {
		text-align: left !important;
		margin-top: 20px;
	}
}

@media (max-width: 767px) {
	.testbank-hero .subtitle h4 {
		font-size: 20px;
	}

	.testbank-hero .subtitle p {
		font-size: 14px;
	}

	.profil-card {
		margin-bottom: 20px;
	}

	.testbank-alert .alert-content {
		flex-direction: column;
		text-align: center;
	}

	.testbank-alert i {
		font-size: 40px;
	}
}
