/* ═══════════════════════════════════
   REFER A FRIEND — Styles
═══════════════════════════════════ */
.raf-wrapper {
    display: flex;
    gap: 60px;
    align-items: flex-start;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0px 0px 103px 0px;
    font-family: inherit;
}
form#raf-form {
	gap:0px !important;
}
.raf-submit-btn {
    width: auto;
    padding: 13.5px 63.2px 13.5px 31.5px !important;
    background-image: url('/wp-content/uploads/2026/05/Submit-Arrows.svg') !important;
    background-repeat: no-repeat !important;
    background-position: center right 31px !important;
}

/* Hide existing text arrow */
.raf-submit-btn .raf-arrow {
    display: none;
}
/* Left column */
.raf-left {
    flex: 0 0 260px;
    min-width: 220px;
}

.raf-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a2332;
    margin: 0 0 12px;
    line-height: 1.2;
    font-family: 'Roboto Serif', Georgia, serif;
}

.raf-desc {
    font-size: 14px;
    color: #6b7a8d;
    line-height: 1.65;
    margin: 0 0 24px;
}

.raf-social {
    display: flex;
    gap: 12px;
    align-items: center;
}

.raf-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #1b3a5c;
    color: #fff;
    text-decoration: none;
    transition: background 0.2s;
}

.raf-social a:hover { background: #0f2a45; }

/* Right column / form */
.raf-right { flex: 1; }

#raf-form .raf-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 23px;
    flex-wrap: wrap;
	width: 100%;
}

#raf-form .raf-form-group {
    flex: 1 1 calc(50% - 10px);
    display: flex;
    flex-direction: column;
}

#raf-form .raf-form-group.raf-full {
    flex: 1 1 100%;
}

#raf-form label {
    margin-bottom: 8px !important;
    display: inline-block;
    color: #3C5D82;
    font-family: "Open Sans";
    font-size: 16px;
    font-weight: 400;
    line-height: normal;
}
#raf-form .wpcf7 select {
    appearance: none;
    background: url("/wp-content/uploads/2026/05/Select-Arrow.svg");
    background-repeat: no-repeat;
    background-position: center right 20px;
    background-size: auto;
    cursor: pointer;
}
#raf-form input[type="text"],
#raf-form input[type="email"],
#raf-form select,
#raf-form textarea {
    padding: 16px;
    color: #8E8E8E;
    font-family: "Open Sans";
    font-size: 16px;
    font-weight: 400;
    border-radius: 30px;
    border: 1px solid #3C5D82;
    outline: none;
}

#raf-form 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='%231b3a5c' stroke-width='2'%3e%3cpolyline points='6 9 12 15 18 9'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    cursor: pointer;
}
#raf-form .wpcf7 input::placeholder, #raf-form .wpcf7 textarea::placeholder, #raf-form .wpcf7 select {
    color: #8E8E8E;
    font-family: "Open Sans";
    font-size: 16px;
    font-weight: 400;
    line-height: normal;
}
#raf-form input::placeholder,
#raf-form textarea::placeholder { color: #9aa7b5; }

#raf-form input:focus,
#raf-form select:focus,
#raf-form textarea:focus {
    outline: none;
    border-color: #1b6fc9;
    box-shadow: 0 0 0 3px rgba(27,111,201,0.12);
}

#raf-form textarea { resize: vertical; min-height: 160px; }

/* Validation states */
#raf-form input.raf-invalid,
#raf-form select.raf-invalid,
#raf-form textarea.raf-invalid { border: 2px solid #ef4444 !important; }

#raf-form input.raf-valid,
#raf-form select.raf-valid,
#raf-form textarea.raf-valid { border: 2px solid #10b981 !important; }

.raf-field-error {
    display: block;
    color: #ef4444;
    font-size: 12px;
    margin-top: 4px;
}

/* reCAPTCHA */
.raf-recaptcha-group { display: block; }
.raf-recaptcha-error { display: block; color: #ef4444; font-size: 12px; margin-top: 6px; }

/* Submit row */
.raf-submit-row {
    align-items: center;
    justify-content: flex-end;
}

.raf-required { color: #ef4444; }

.raf-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #1b3a5c;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 30px;
    padding: 13px 30px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    font-family: inherit;
    margin-left: auto;
}

.raf-submit-btn:hover { background: #14304d; }
.raf-submit-btn:disabled { opacity: 0.65; cursor: not-allowed; }
.raf-submit-btn .raf-arrow { font-size: 16px; }

/* Form message */
.raf-form-message { font-size: 14px; padding: 8px 0; display: none; width: 100%; }
.raf-form-message.show { display: block; }
.raf-form-message.success { color: #1d7a3e; }
.raf-form-message.error   { color: #c0392b; }

/* Responsive */
@media (max-width: 1599px) {
.raf-wrapper {
    padding: 0px 0px 90px 0px;
 
}
	#raf-form textarea {
       min-height: 140px;
}
}
@media (max-width: 1366px) {
	.raf-wrapper {
		padding: 0px 0px 70px 0px;

	}
		#raf-form textarea {
       min-height: 120px;
	}
}
@media (max-width: 1024px) {
	#raf-form input[type="text"], #raf-form input[type="email"], #raf-form select, #raf-form textarea, body .raf-dd-btn {
		padding: 12px !important;
	}
		#raf-form textarea {
       min-height: 100px;
	}
}
@media (max-width: 768px) {
	.raf-left {
		flex: none; 
	}
	#raf-form .raf-form-group {
		flex: 1 1 100%; 
	}
	.raf-submit-btn {
		justify-content: center;
	}
	#raf-form input[type="text"], #raf-form input[type="email"], #raf-form select, #raf-form textarea, body .raf-dd-btn {
		padding: 12px !important;
		font-size: 14px !important;
	}
	.raf-wrapper {
		padding: 0px 0px 50px 0px;
	}
}
@media (max-width:520px) {
	.form-last{
		flex-direction:column;
	}
	.raf-submit-row{
		width:fit-content !important;
	}
}
/* ── Custom Sector Dropdown ── */
.raf-dd-wrap {
	position: relative;
	width: 100%;
}


.raf-dd-btn {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	width: 100%;
	padding: 16px !important;
	background: #fff !important;
	border: 1px solid #3C5D82 !important;
	font-size: 16px !important;
	color: #9aa7b5 !important;
	cursor: pointer;
	transition: border-color 0.2s, box-shadow 0.2s;

	font-family: "Open Sans" !important;
    font-weight: 400 !important;
}

.raf-dd-btn.fja-dd-active {
	color: #333 !important;
}
.form-last{
	display:flex;
	justify-content:space-between;
	    margin-top: 8px;
}
.raf-dd-btn.open, .raf-dd-btn:focus {
	border: 1px solid #3C5D82;
	outline: none !important;
	border-radius: 30px !important;
	padding: 16px !important;
}

.raf-dd-btn .fja-dd-chevron {
	width: 12px !important;
	height: 8px !important;
	flex-shrink: 0;
	margin-left: 8px;
	transition: transform 0.2s;
}

.raf-dd-btn.open .fja-dd-chevron {
	transform: rotate(180deg);
}

/* Panel — hidden by default */
.raf-dd-wrap .fja-dd-panel {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #cfd8e3;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    z-index: 99999;
    max-height: 220px;
    overflow-y: auto;
    padding: 6px 0;
}

.raf-dd-wrap .fja-dd-panel.open {
    display: block;
}

.fja-dd-item {
    padding: 10px 16px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: background 0.15s;
}

.fja-dd-item:hover {
    background: #f0f4f8;
}

.fja-dd-item.active {
    background: #eef4ff;
    color: #1b6fc9;
    font-weight: 600;
}

/* Prevent form-group from clipping the panel */
#raf-form .raf-form-group.raf-full {
    overflow: visible !important;
    position: relative;
}
/* ── Clean custom scrollbar for sector dropdown ── */
.raf-dd-wrap .fja-dd-panel::-webkit-scrollbar {
    width: 6px;
}

.raf-dd-wrap .fja-dd-panel::-webkit-scrollbar-track {
    background: transparent;
}

.raf-dd-wrap .fja-dd-panel::-webkit-scrollbar-thumb {
    background: #cfd8e3;
    border-radius: 10px;
}

.raf-dd-wrap .fja-dd-panel::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

/* Firefox */
.raf-dd-wrap .fja-dd-panel {
    scrollbar-width: thin;
    scrollbar-color: #cfd8e3 transparent;
}