/* Samir Pharma – inner pages (about, products, reach, contact) */
.sp-pagehead {
  position: relative; overflow: hidden; padding: 90px 0 80px; color: #fff; text-align: center;
  background: linear-gradient(120deg, var(--sp-indigo) 0%, var(--sp-indigo-dark) 100%);
}
.sp-pagehead::before { content: ""; position: absolute; inset: 0; background: radial-gradient(500px 280px at 88% 10%, rgba(238,48,56,.28), transparent 70%), radial-gradient(rgba(255,255,255,.12) 1.4px, transparent 1.6px) 0 0/26px 26px; }
.sp-pagehead .container { position: relative; }
.sp-pagehead h1 { color: #fff; font-size: 52px; font-weight: 700; margin: 0 0 16px; }
.sp-crumbs { display: inline-flex; gap: 10px; list-style: none; padding: 8px 22px; margin: 0; border-radius: 40px; background: rgba(255,255,255,.12); font-size: 15px; }
.sp-crumbs a { color: #fff; opacity: .85; } .sp-crumbs a:hover { opacity: 1; }
.sp-crumbs li + li::before { content: "/"; margin-right: 10px; opacity: .6; }
@media (max-width: 767px) { .sp-pagehead { padding: 60px 0 50px; } .sp-pagehead h1 { font-size: 34px; } }
.sp-section { padding: 100px 0; }
.sp-section--tint { background: var(--sp-tint); }
@media (max-width: 767px) { .sp-section { padding: 64px 0; } }
.sp-center { text-align: center; max-width: 720px; margin: 0 auto 54px; }
.sp-center .sp-tagline::after { content: ""; width: 34px; height: 3px; border-radius: 3px; background: var(--sp-red); }

/* feature cards */
.sp-card {
  height: 100%; background: #fff; border-radius: 22px; padding: 38px 32px; border-bottom: 4px solid transparent;
  box-shadow: 0 18px 46px rgba(64,64,136,.1); transition: .35s;
}
.sp-card:hover { transform: translateY(-8px); border-bottom-color: var(--sp-red); }
.sp-card__icon { width: 68px; height: 68px; border-radius: 18px; display: grid; place-items: center; font-size: 28px; color: #fff; background: linear-gradient(135deg, #6D6DBE, var(--sp-indigo)); margin-bottom: 24px; }
.col-lg-4:nth-child(even) .sp-card__icon { background: linear-gradient(135deg, #FF6A70, var(--sp-red)); }
.sp-card h3 { font-size: 22px; color: var(--sp-indigo); margin: 0 0 12px; }
.sp-card p { margin: 0; color: #5d5d6f; line-height: 1.8; }

/* CTA band */
.sp-cta { padding: 70px 0; background: linear-gradient(120deg, var(--sp-red), #c4161e); color: #fff; }
.sp-cta .row { align-items: center; row-gap: 24px; }
.sp-cta h2 { color: #fff; font-size: 34px; margin: 0 0 8px; } .sp-cta p { margin: 0; opacity: .9; }
.sp-cta .sp-btn-white { display: inline-flex; gap: 10px; align-items: center; background: #fff; color: var(--sp-red); font-weight: 600; padding: 17px 36px; border-radius: 60px; transition: .3s; }
.sp-cta .sp-btn-white:hover { background: var(--sp-indigo); color: #fff; }
@media (max-width: 767px) { .sp-cta h2 { font-size: 26px; } }

/* products page */

/* reach page */

/* contact page */
.sp-info { display: flex; gap: 20px; align-items: flex-start; background: #fff; padding: 26px 28px; border-radius: 20px; box-shadow: 0 14px 38px rgba(64,64,136,.1); margin-bottom: 22px; }
.sp-info > i { flex: none; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--sp-indigo); color: #fff; font-size: 20px; }
.sp-info:nth-of-type(even) > i { background: var(--sp-red); }
.sp-info h3 { font-size: 20px; color: var(--sp-indigo); margin: 0 0 6px; }
.sp-info p, .sp-info a { margin: 0; color: #5d5d6f; line-height: 1.7; display: block; }
.sp-info a:hover { color: var(--sp-red); }
.sp-form { background: #fff; border-radius: 24px; padding: 44px; box-shadow: 0 24px 60px rgba(64,64,136,.14); border-top: 5px solid var(--sp-red); }
.sp-form h3 { font-size: 30px; color: var(--sp-indigo); margin: 0 0 24px; }
.sp-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.sp-form__grid .full { grid-column: 1 / -1; }
.sp-form input, .sp-form select, .sp-form textarea { width: 100%; padding: 16px 20px; border: 1.5px solid #dcdcec; border-radius: 12px; background: var(--sp-tint); color: #2a2a3e; font: inherit; font-size: 16px; transition: .25s; }
.sp-form textarea { min-height: 150px; resize: vertical; }
.sp-form input:focus, .sp-form select:focus, .sp-form textarea:focus { outline: 0; border-color: var(--sp-indigo); background: #fff; box-shadow: 0 0 0 4px rgba(64,64,136,.12); }
.sp-form label.error { color: var(--sp-red); font-size: 13px; margin-top: 4px; display: block; }
.sp-form .result .success { color: #1b8a4b; font-weight: 500; margin: 16px 0 0; } .sp-form .result .error { color: var(--sp-red); margin: 16px 0 0; }
.sp-map { border-radius: 24px; overflow: hidden; box-shadow: 0 24px 60px rgba(64,64,136,.14); line-height: 0; }
.sp-map iframe { width: 100%; height: 420px; border: 0; }
@media (max-width: 575px) { .sp-form { padding: 28px 22px; } .sp-form__grid { grid-template-columns: 1fr; } }

/* responsive */
@media (max-width: 767px) { .sp-info { padding: 20px; gap: 16px; } .sp-map iframe { height: 320px; } .sp-pagehead h1 { font-size: 30px; } }
@media (max-width: 991px) { .col-lg-4:nth-child(even) .sp-card__icon { background: linear-gradient(135deg, #FF6A70, var(--sp-red)); } }
.sp-info p br { display: inline; }

/* Form placeholders: one colour/weight everywhere (inputs, textarea, dropdown label) */
.sp-form { --sp-ph: #6b6b80; }
.sp-form input::placeholder, .sp-form textarea::placeholder { color: var(--sp-ph); opacity: 1; font-weight: 400; }
.sp-form input::-webkit-input-placeholder, .sp-form textarea::-webkit-input-placeholder { color: var(--sp-ph); opacity: 1; }
.sp-form .sp-select__btn { color: var(--sp-ph); font-weight: 400; }
.sp-form .sp-select.has-value .sp-select__btn { color: #2a2a3e; }
.sp-form input, .sp-form textarea, .sp-form select { font-weight: 400; }

/* ---------- Form validation + submit states ---------- */
.sp-field { position: relative; min-width: 0; }
.sp-field .sp-error {
  display: flex; align-items: center; gap: 6px; margin: 7px 2px 0; font-size: 13px; line-height: 1.35; color: #D3202B; font-weight: 500;
}
.sp-field .sp-error::before { content: "\f06a"; font-family: "Font Awesome 5 Free"; font-weight: 900; font-size: 12px; }
.sp-field.has-error input, .sp-field.has-error textarea { border-color: #E5484D; background: #FFF8F8; }
.sp-field.has-error input:focus, .sp-field.has-error textarea:focus { box-shadow: 0 0 0 4px rgba(238,48,56,.14); }
.sp-form input[aria-invalid="true"], .sp-form textarea[aria-invalid="true"] { border-color: #E5484D; }

.sp-alert { display: flex; align-items: flex-start; gap: 12px; padding: 14px 18px; margin: -6px 0 22px; border-radius: 12px; font-size: 15px; line-height: 1.5; }
.sp-alert[hidden] { display: none; }
.sp-alert > i { margin-top: 3px; font-size: 17px; }
.sp-alert a { color: inherit; font-weight: 600; text-decoration: underline; }
.sp-alert--error { background: #FEF1F1; color: #B4232C; border: 1px solid #F8CFD1; }
.sp-alert--success { background: #EDF8F1; color: #17693C; border: 1px solid #C5E8D2; }

#form-submit.is-busy { opacity: .85; cursor: progress; pointer-events: none; }
#form-submit.is-busy .sp-btn-label::after { content: ""; display: inline-block; width: 14px; height: 14px; margin-left: 10px; vertical-align: -2px; border: 2px solid rgba(255,255,255,.5); border-top-color: #fff; border-radius: 50%; animation: spSpin .7s linear infinite; }
@keyframes spSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { #form-submit.is-busy .sp-btn-label::after { animation-duration: 2s; } }

/* ---------- Products page: searchable product list ---------- */
.sp-psearch { position: relative; max-width: 620px; margin: 0 auto 14px; }
.sp-psearch > i { position: absolute; left: 22px; top: 50%; transform: translateY(-50%); color: var(--sp-indigo); font-size: 16px; pointer-events: none; }
.sp-psearch input { width: 100%; padding: 17px 22px 17px 54px; border: 1.5px solid #dcdcec; border-radius: 60px; background: #fff; font: inherit; font-size: 16px; font-weight: 400; color: #2a2a3e; box-shadow: 0 10px 30px rgba(64,64,136,.08); transition: border-color .2s, box-shadow .2s; }
.sp-psearch input::placeholder { color: #6b6b80; opacity: 1; }
.sp-psearch input:focus { outline: 0; border-color: var(--sp-indigo); box-shadow: 0 0 0 4px rgba(64,64,136,.12); }
.sp-pcount { text-align: center; color: #6b6b80; font-size: 14px; margin: 0 0 40px; }
.sp-cblock { scroll-margin-top: 110px; background: #fff; border-radius: 22px; padding: 34px 36px 26px; margin-bottom: 26px; box-shadow: 0 18px 46px rgba(64,64,136,.1); border-top: 4px solid var(--sp-indigo); }
.sp-cblock[hidden], .sp-pitem[hidden], .sp-pempty[hidden] { display: none !important; }
.sp-cblock:target { border-top-color: var(--sp-red); box-shadow: 0 0 0 3px rgba(238,48,56,.3), 0 18px 46px rgba(64,64,136,.14); }
.sp-cblock__head { display: flex; gap: 20px; align-items: center; margin-bottom: 22px; padding-bottom: 20px; border-bottom: 1px solid #ececf4; }
.sp-cblock__head .sp-cat__icon { flex: none; }
.sp-cblock__head h3 { font-size: 24px; color: var(--sp-indigo); margin: 0 0 4px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; }
.sp-cblock__n { font-size: 13px; font-weight: 500; color: #fff; background: var(--sp-red); border-radius: 30px; padding: 3px 12px; letter-spacing: .02em; }
.sp-cblock__head p { margin: 0; color: #6b6b80; font-size: 15px; }
.sp-plist { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 40px; }
.sp-pitem { display: flex; align-items: center; justify-content: space-between; gap: 14px; break-inside: avoid; padding: 11px 12px; margin: 0 -12px; border-radius: 12px; transition: background-color .2s; }
.sp-pitem:hover, .sp-pitem:focus-within { background: var(--sp-indigo-soft); }
.sp-pitem__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sp-pname { font-size: 14.5px; font-weight: 600; color: #1f1f3a; letter-spacing: .01em; overflow-wrap: anywhere; }
.sp-ptype { font-size: 13px; color: #6b6b80; line-height: 1.4; }
.sp-penq { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--sp-red); font-size: 12px; border: 1px solid #ececf4; transition: background-color .2s, color .2s, border-color .2s; }
.sp-pitem:hover .sp-penq, .sp-penq:focus-visible { background: var(--sp-red); color: #fff; border-color: var(--sp-red); }
.sp-pempty { text-align: center; color: #5d5d6f; padding: 30px 0; }
.sp-pempty a, .sp-pnote a { color: var(--sp-red); font-weight: 600; }
.sp-pnote { text-align: center; color: #6b6b80; margin: 34px 0 0; }
@media (max-width: 991px) { .sp-plist { columns: 1; } .sp-cblock { padding: 26px 22px 18px; } .sp-cblock__head h3 { font-size: 21px; } }
@media (max-width: 575px) { .sp-cblock__head { gap: 14px; } .sp-pitem { margin: 0 -8px; padding: 10px 8px; } .sp-psearch input { font-size: 15px; } }
