/* Client Brief form (lead page): part 1 quick start, part 2 optional brief by service. */
.brief-page { padding: 120px 0 80px; background: #f6f6f6; }
.bf-wrap { max-width: 860px; margin: 0 auto; text-align: start; color: #0C1D32; }
.bf-wrap[dir="rtl"] { font-family: 'Thmanyah Serif Display', 'Nexa', sans-serif; }
.bf-wrap[dir="rtl"] .bf-label, .bf-wrap[dir="rtl"] h1, .bf-wrap[dir="rtl"] h2, .bf-wrap[dir="rtl"] legend { font-family: 'Thmanyah Serif Display', sans-serif; letter-spacing: 0; }

.bf-top { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; justify-content: space-between; margin-bottom: 24px; }
.bf-top h1 { margin: 6px 0 0; font-size: 40px; line-height: 1.15; text-transform: none; letter-spacing: 0; color: #0C1D32; }
.bf-eyebrow { margin: 0; color: #007AAD; font-size: 12px; font-weight: 700; letter-spacing: 3px; }
.bf-wrap[dir="rtl"] .bf-eyebrow { letter-spacing: 0; font-size: 14px; }

.bf-lang { display: inline-flex; border: 1px solid #ddd; border-radius: 30px; overflow: hidden; background: #fff; }
.bf-lang button { border: 0; background: none; padding: 8px 16px; font-size: 14px; color: #555; cursor: pointer; transition: background-color .2s, color .2s; }
.bf-lang button[aria-pressed="true"] { background: #0C1D32; color: #fff; }
.bf-lang button[data-lang="ar"] { font-family: 'Thmanyah Serif Display', sans-serif; }

.bf-card { background: #fff; border-radius: 14px; padding: 36px; box-shadow: 0 10px 40px rgba(0, 0, 0, .06); border-top: 4px solid #007AAD; }
.bf-head h2, .bf-done h2, .bf-final h2 { margin: 6px 0 22px; font-size: 24px; line-height: 1.3; text-transform: none; letter-spacing: 0; color: #0C1D32; }

.bf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.bf-field { margin-bottom: 20px; }
.bf-label { display: block; margin-bottom: 8px; font-weight: 700; font-size: 15px; color: #0C1D32; text-transform: none; letter-spacing: 0; }
.bf-label b { color: #007AAD; }
.bf-hint { display: block; margin-top: 6px; color: #777; font-size: 13px; line-height: 1.5; }
.bf-wrap input[type="text"], .bf-wrap input[type="email"], .bf-wrap input[type="tel"], .bf-wrap input[type="url"],
.bf-wrap input[type="date"], .bf-wrap textarea {
	width: 100%; margin: 0; padding: 12px 14px; border: 1px solid #ddd; border-radius: 8px; background: #fff;
	font: inherit; font-size: 15px; color: #0C1D32; text-transform: none; letter-spacing: 0; height: auto;
	transition: border-color .2s, box-shadow .2s;
}
.bf-wrap textarea { min-height: 90px; resize: vertical; }
.bf-wrap input::placeholder, .bf-wrap textarea::placeholder { color: #aaa; font-family: inherit; text-transform: none; }
.bf-wrap input:focus, .bf-wrap textarea:focus { outline: 0; border-color: #007AAD; box-shadow: 0 0 0 3px rgba(0,122,173, .15); }
.bf-wrap .bf-invalid { border-color: #007AAD !important; background: #FFFBFC !important; }

/* Service cards */
.bf-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.bf-service { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 0; padding: 16px 8px;
	border: 1px solid #ddd; border-radius: 10px; cursor: pointer; text-align: center; font-weight: 400; font-size: 14px;
	transition: border-color .2s, background-color .2s, color .2s; }
.bf-service i { font-size: 30px; color: #999; transition: color .2s; }
.bf-service input, .bf-chip input { position: absolute; opacity: 0; pointer-events: none; }
.bf-service:hover { border-color: #007AAD; }
.bf-service:has(input:checked) { border-color: #007AAD; background: #D9E2E9; color: #00658F; font-weight: 700; }
.bf-service:has(input:checked) i { color: #007AAD; }
.bf-service:has(input:focus-visible), .bf-chip:has(input:focus-visible) { outline: 2px solid #007AAD; outline-offset: 2px; }
.bf-services.bf-invalid { border-radius: 10px; outline: 2px solid #007AAD; outline-offset: 4px; background: none !important; }

/* Chips */
.bf-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.bf-chip { position: relative; margin: 0; cursor: pointer; font-weight: 400; }
.bf-chip span { display: inline-block; padding: 8px 16px; border: 1px solid #ddd; border-radius: 30px; font-size: 14px; color: #444;
	transition: border-color .2s, background-color .2s, color .2s; }
.bf-chip:hover span { border-color: #007AAD; }
.bf-chip input:checked + span { background: #0C1D32; border-color: #0C1D32; color: #fff; }

/* Uploads */
.bf-drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; margin: 0;
	padding: 20px 12px; border: 2px dashed #ddd; border-radius: 10px; text-align: center; cursor: pointer; font-weight: 400; color: #555;
	transition: border-color .2s, background-color .2s; }
.bf-drop i { font-size: 30px; color: #007AAD; }
.bf-drop small { color: #999; font-size: 12px; }
.bf-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.bf-drop.is-over, .bf-drop:hover { border-color: #007AAD; background: #FFFBFC; }
.bf-files { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.bf-files li { display: flex; align-items: center; gap: 8px; max-width: 100%; padding: 4px 6px; border: 1px solid #eee; border-radius: 8px; font-size: 13px; }
.bf-files img { width: 36px; height: 36px; object-fit: contain; border-radius: 4px; background: #0C1D32; }
.bf-files span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 160px; }
.bf-files button { border: 0; background: none; color: #999; font-size: 18px; line-height: 1; cursor: pointer; }

/* Colors */
.bf-colors { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.bf-colors input[type="color"] { width: 44px; height: 44px; padding: 0; border: 2px solid #eee; border-radius: 50%; background: none; cursor: pointer; overflow: hidden; }
.bf-colors input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.bf-colors input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 50%; }
.bf-color-add { width: 44px; height: 44px; border: 2px dashed #ccc; border-radius: 50%; background: none; color: #999; font-size: 22px; cursor: pointer; }

/* Buttons */
.bf-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 8px; }
.bf-btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 28px; border: 0; border-radius: 6px; background: #007AAD;
	color: #fff !important; font-size: 14px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; cursor: pointer; text-decoration: none !important;
	transition: background-color .2s, transform .2s; }
.bf-wrap[dir="rtl"] .bf-btn { letter-spacing: 0; font-size: 16px; }
.bf-btn:hover { background: #00658F; transform: translateY(-1px); }
.bf-btn[disabled] { opacity: .6; cursor: wait; transform: none; }
.bf-btn i { font-size: 22px; line-height: 1; }
.bf-wrap[dir="rtl"] .bf-btn i { transform: scaleX(-1); }
.bf-ghost { background: none; color: #0C1D32 !important; border: 1px solid #ddd; }
.bf-ghost:hover { background: #f3f3f3; }
.bf-note { color: #888; font-size: 13px; }
.bf-error { margin: 0 0 12px; padding: 10px 14px; border-radius: 8px; background: #FDECEC; color: #B42318; font-size: 14px; }
.bf-link { border: 0; background: none; padding: 0; color: #888; text-decoration: underline; font-size: 14px; cursor: pointer; }
.bf-skip { margin: 16px 0 0; text-align: center; }

/* Part 2 */
.bf-done { display: flex; gap: 16px; align-items: flex-start; padding: 0 0 24px; margin-bottom: 24px; border-bottom: 1px solid #eee; outline: 0; }
.bf-done > i, .bf-final > i { font-size: 54px; line-height: 1; color: #27ae60; }
.bf-done h2 { margin: 0 0 6px; }
.bf-done p, .bf-final p { margin: 0; color: #555; font-size: 15px; line-height: 1.7; }
.bf-progress { height: 4px; border-radius: 4px; background: #eee; overflow: hidden; margin-bottom: 14px; }
.bf-progress span { display: block; height: 100%; width: 0; background: #007AAD; transition: width .3s cubic-bezier(.2, .8, .2, 1); }
.bf-step { border: 0; margin: 0; padding: 0; min-width: 0; }
.bf-step legend { border: 0; margin: 6px 0 20px; font-size: 24px; font-weight: 700; color: #0C1D32; width: auto; }
.bf-nav { justify-content: space-between; border-top: 1px solid #eee; padding-top: 20px; }
.bf-final { text-align: center; outline: 0; }
.bf-final h2 { margin-top: 10px; }
.bf-final .bf-btn { margin-top: 20px; }
.bf-step, .bf-card { animation: bfIn .3s cubic-bezier(.2, .8, .2, 1); }
@keyframes bfIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (max-width: 767px) {
	.brief-page { padding: 100px 0 60px; }
	.bf-top h1 { font-size: 30px; }
	.bf-card { padding: 24px 18px; }
	.bf-grid { grid-template-columns: 1fr; }
	.bf-services { grid-template-columns: repeat(2, 1fr); }
	.bf-nav .bf-btn { flex: 1; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .bf-step, .bf-card { animation: none; } }
.bf-wrap [hidden] { display: none !important; }

/* Phone + WhatsApp */
.bf-check { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; font-weight: 400; font-size: 14px; color: #555; cursor: pointer; }
.bf-check input { width: 18px; height: 18px; margin: 0; accent-color: #007AAD; }
.bf-chips.bf-invalid { padding: 6px; margin: -6px; border-radius: 12px; outline: 2px solid #007AAD; background: none !important; }

/* After "Send request": thank you + invitation to complete the brief */
.bf-done-icon { flex: none; display: inline-flex; width: 56px; height: 56px; border-radius: 50%; align-items: center; justify-content: center;
	background: #27ae60; color: #fff; font-size: 44px; animation: bfPop .5s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes bfPop { from { transform: scale(0); } to { transform: scale(1); } }
.bf-invite { position: relative; padding: 28px 24px 24px; border-radius: 14px; background: linear-gradient(135deg, #F0F6FA, #fff); border: 1px solid #D9E2E9; text-align: center; overflow: hidden; }
.bf-invite h3 { margin: 14px 0 6px; font-size: 22px; line-height: 1.35; text-transform: none; letter-spacing: 0; color: #0C1D32; }
.bf-wrap[dir="rtl"] .bf-invite h3 { font-family: 'Thmanyah Serif Display', sans-serif; }
.bf-invite > p { margin: 0 0 20px; color: #666; font-size: 15px; }
.bf-invite-icon { position: relative; display: inline-flex; width: 76px; height: 76px; border-radius: 50%; align-items: center; justify-content: center;
	background: #007AAD; color: #fff; font-size: 40px; animation: bfFloat 2.6s ease-in-out infinite; }
.bf-invite-icon::before, .bf-invite-icon::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #007AAD; animation: bfRing 2.6s ease-out infinite; }
.bf-invite-icon::after { animation-delay: 1.3s; }
.bf-pen { position: absolute; right: -6px; bottom: -4px; display: inline-flex; width: 34px; height: 34px; border-radius: 50%; align-items: center; justify-content: center;
	background: #0C1D32; color: #fff; font-size: 18px; animation: bfWrite 1.3s ease-in-out infinite; }
@keyframes bfFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes bfRing { from { transform: scale(1); opacity: .6; } to { transform: scale(1.7); opacity: 0; } }
@keyframes bfWrite { 0%, 100% { transform: rotate(0) translate(0, 0); } 25% { transform: rotate(-12deg) translate(-2px, 1px); } 75% { transform: rotate(10deg) translate(2px, -1px); } }
.bf-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; text-align: start; }
.bf-option { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; padding: 16px; border: 1px solid #ddd; border-radius: 12px;
	background: #fff; color: #0C1D32; cursor: pointer; text-align: inherit; transition: border-color .2s, box-shadow .2s, transform .2s; }
.bf-option i { grid-row: span 2; font-size: 34px; color: #007AAD; }
.bf-option b { font-size: 16px; }
.bf-option small { color: #777; font-size: 13px; line-height: 1.4; }
.bf-option:hover { border-color: #007AAD; box-shadow: 0 8px 24px rgba(0,122,173, .15); transform: translateY(-2px); }
.bf-option-main { border-color: #007AAD; background: #007AAD; color: #fff; }
.bf-option-main i, .bf-option-main small { color: #fff; }
.bf-option[disabled] { opacity: .6; cursor: wait; }
.bf-steps { margin-top: 4px; }
@media (max-width: 767px) { .bf-choice { grid-template-columns: 1fr; } .bf-invite h3 { font-size: 19px; } }
@media (prefers-reduced-motion: reduce) { .bf-invite-icon, .bf-invite-icon::before, .bf-invite-icon::after, .bf-pen, .bf-done-icon { animation: none; } }

/* Other service + competitor links */
.bf-other { margin-top: 12px; }
.bf-other .bf-field { margin-bottom: 0; }
.bf-comp-list { display: grid; gap: 8px; margin-top: 10px; }
.bf-comp-add { margin-top: 10px; text-decoration: none; color: #007AAD; font-weight: 700; }
.bf-services { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 767px) { .bf-services { grid-template-columns: repeat(2, 1fr); } }
.bf-wrap .bf-comp-list input { width: 100%; padding: 12px 14px; border: 1px solid #ddd; border-radius: 8px; font: inherit; font-size: 15px; }
/* Arabic: Thmanyah everywhere in the form (nexa.css sets the site font with !important) */
#brief[dir="rtl"], #brief[dir="rtl"] *:not([class*="ion-"]) { font-family: 'Thmanyah Serif Display', sans-serif !important; letter-spacing: 0 !important; }
#brief[dir="rtl"] ::placeholder { font-family: 'Thmanyah Serif Display', sans-serif !important; }
/* "With our team": pick the call time */
.bf-team-time { margin-top: 18px; padding-top: 18px; border-top: 1px dashed #D9E2E9; text-align: start; animation: bfIn .3s cubic-bezier(.2, .8, .2, 1); }
.bf-option.is-picked { border-color: #007AAD; box-shadow: 0 0 0 2px #007AAD inset; }
