/* ===========================================================
   Sampada Social — Physical Shares Search & Offer Modal
   Styling for Popup Dialog & Embedded Section
=========================================================== */

/* --- Modal Overlay & Container --- */
.ss-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(1, 35, 49, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.35s ease;
}

.ss-modal-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.ss-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 640px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: #FFFFFF;
  border-radius: var(--radius-sm, 4px);
  border: 1.5px solid var(--line, #E1E4DE);
  box-shadow: 0 24px 60px rgba(1, 52, 72, 0.45);
  transform: translateY(24px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.ss-modal-overlay.is-active .ss-modal-dialog {
  transform: translateY(0) scale(1);
}

/* Modal Inner Certificate Guilloche border accent */
.ss-modal-dialog::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  bottom: 8px;
  border: 1px solid rgba(253, 199, 31, 0.35);
  border-radius: 2px;
  pointer-events: none;
}

.ss-modal-header {
  position: relative;
  padding: 28px 32px 18px;
  background: linear-gradient(180deg, #FDFBF7 0%, #FFFFFF 100%);
  border-bottom: 1px solid var(--line-soft, #EDEFEA);
}

.ss-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line, #E1E4DE);
  background: #FFFFFF;
  color: var(--navy-deep, #013448);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
}

.ss-modal-close:hover {
  background: var(--navy-deep, #013448);
  color: #FFFFFF;
  border-color: var(--navy-deep, #013448);
  transform: rotate(90deg);
}

.ss-badge-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold, #FDC71F);
  background: rgba(1, 52, 72, 0.06);
  padding: 4px 10px;
  border-radius: 2px;
  margin-bottom: 12px;
  font-weight: 600;
}

.ss-badge-kicker svg {
  width: 14px;
  height: 14px;
  fill: var(--gold, #FDC71F);
}

.ss-modal-title {
  font-family: "Spectral", serif;
  font-size: clamp(1.4rem, 2.8vw, 1.85rem);
  color: var(--navy-deep, #013448);
  margin: 0 0 8px;
  line-height: 1.2;
}

.ss-modal-desc {
  font-size: 0.92rem;
  color: var(--body, #4A5568);
  margin: 0;
  line-height: 1.5;
}

.ss-modal-body {
  padding: 24px 32px 32px;
}

/* --- Form Fields & Styling --- */
.ss-form-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ss-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ss-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--navy-deep, #013448);
}

.ss-req-tag {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.66rem;
  color: #CC3A21;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 500;
}

.ss-input,
.ss-textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: "Inter", sans-serif;
  font-size: 0.92rem;
  color: var(--ink, #16202B);
  background: #FDFBF7;
  border: 1.5px solid var(--line, #E1E4DE);
  border-radius: var(--radius-xs, 2px);
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.ss-input:focus,
.ss-textarea:focus {
  outline: none;
  background: #FFFFFF;
  border-color: var(--gold, #FDC71F);
  box-shadow: 0 0 0 3px rgba(253, 199, 31, 0.2);
}

.ss-textarea {
  min-height: 80px;
  resize: vertical;
  line-height: 1.45;
}

.ss-hint {
  font-size: 0.74rem;
  color: var(--body, #4A5568);
  margin-top: 2px;
}

/* Submit row */
.ss-btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 24px;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--navy-deep, #013448);
  background: linear-gradient(135deg, #FED862 0%, #FDC71F 100%);
  border: 1.5px solid var(--gold, #FDC71F);
  border-radius: var(--radius-xs, 2px);
  cursor: pointer;
  box-shadow: 0 4px 0 rgba(1, 52, 72, 0.2);
  transition: all 0.2s ease;
  margin-top: 6px;
}

.ss-btn-submit:hover {
  background: linear-gradient(135deg, #FEE69A 0%, #FED862 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 0 rgba(1, 52, 72, 0.2);
}

.ss-btn-submit svg {
  width: 18px;
  height: 18px;
  stroke: var(--navy-deep, #013448);
}

/* Security strip under button */
.ss-trust-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px dashed var(--line, #E1E4DE);
  margin-top: 16px;
}

.ss-trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  color: var(--body, #4A5568);
  font-family: "IBM Plex Mono", monospace;
}

.ss-trust-item svg {
  width: 14px;
  height: 14px;
  stroke: var(--green, #0F6E50);
  flex-shrink: 0;
}

/* --- Instant Success Card --- */
.ss-success-card {
  display: none;
  text-align: center;
  padding: 16px 8px 8px;
  animation: ssFadeIn 0.35s ease;
}

@keyframes ssFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.ss-success-seal {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(15, 110, 80, 0.1);
  border: 2px solid var(--green, #0F6E50);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ss-success-seal svg {
  width: 32px;
  height: 32px;
  stroke: var(--green, #0F6E50);
  stroke-width: 2.5;
  fill: none;
}

.ss-success-title {
  font-family: "Spectral", serif;
  font-size: 1.6rem;
  color: var(--navy-deep, #013448);
  margin-bottom: 8px;
}

.ss-success-desc {
  font-size: 0.95rem;
  color: var(--body, #4A5568);
  max-width: 480px;
  margin: 0 auto 20px;
  line-height: 1.55;
}

.ss-timeline-box {
  background: #F8FAFC;
  border: 1px solid var(--line, #E1E4DE);
  border-radius: var(--radius-xs, 2px);
  padding: 18px 20px;
  text-align: left;
  max-width: 480px;
  margin: 0 auto 24px;
}

.ss-timeline-heading {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--green-deep, #0A4834);
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.ss-timeline-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--ink, #16202B);
}

.ss-timeline-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.ss-timeline-list li span.step-num {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 700;
  color: var(--navy, #015778);
}

.ss-success-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===========================================================
   Embedded Search Section Styling (for index.html & contact.html)
=========================================================== */
.ss-embedded-section {
  position: relative;
}

.ss-cockpit-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 900px) {
  .ss-cockpit-grid {
    grid-template-columns: 1fr;
  }
}

.ss-info-panel {
  background: linear-gradient(160deg, #FDFBF7 0%, #FFFFFF 100%);
  border: 1.5px solid var(--line, #E1E4DE);
  border-radius: var(--radius-sm, 4px);
  padding: 32px 30px;
  position: relative;
}

.ss-info-panel::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
  bottom: 6px;
  border: 1px solid rgba(253, 199, 31, 0.3);
  pointer-events: none;
}

.ss-info-panel h3 {
  font-size: 1.35rem;
  color: var(--navy-deep, #013448);
  margin-bottom: 12px;
}

.ss-info-panel p {
  font-size: 0.94rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.ss-feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ss-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.ss-feature-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(15, 110, 80, 0.1);
  border: 1px solid var(--green, #0F6E50);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.ss-feature-icon svg {
  width: 14px;
  height: 14px;
  stroke: var(--green, #0F6E50);
}

.ss-feature-text strong {
  display: block;
  font-size: 0.92rem;
  color: var(--navy-deep, #013448);
  margin-bottom: 2px;
}

.ss-feature-text span {
  font-size: 0.84rem;
  color: var(--body, #4A5568);
  line-height: 1.4;
}

.ss-form-card {
  background: #FFFFFF;
  border: 1.5px solid var(--line, #E1E4DE);
  border-radius: var(--radius-sm, 4px);
  padding: 32px;
  box-shadow: 0 10px 30px rgba(1, 52, 72, 0.08);
  position: relative;
}
