/* ==========================================================================
   Get Acknowledgment & Digital Card Search Component Styles
   4th Elite Marathon 2026 - Rotary Club of Dharmapuri Elite
   ========================================================================== */

/* Trigger Button Container */
.ack-btn-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1.25rem 0 0.5rem 0;
}

/* Trigger Button (Hero & Overview) */
.btn-ack-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #ffaa17 0%, #ff8c00 100%);
  color: #0b1a30;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 13px 28px;
  border-radius: 50px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 24px rgba(255, 170, 23, 0.35);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  text-decoration: none;
}

.btn-ack-trigger:hover,
.btn-ack-trigger:focus {
  background: linear-gradient(135deg, #ffbb33 0%, #ffa500 100%);
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(255, 170, 23, 0.5);
  outline: none;
}

.btn-ack-trigger:active {
  transform: translateY(0);
}

/* Banner Hero Ack Button (beside REGISTER NOW) */
.btn-banner-ack {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #ffffff;
  background: rgba(11, 26, 48, 0.85);
  border: 2px solid #ffaa17;
  border-radius: 50px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
}

.btn-banner-ack:hover {
  background: #ffaa17;
  color: #0b1a30;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(255, 170, 23, 0.45);
}

.hero-cta-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
  margin-top: 14px;
}

/* Acknowledgment Card Modal/Box Container */
.venue-actions {
  width: 100%;
  position: relative;
  z-index: 20;
}

.ack-card-box {
  max-width: 520px;
  margin: 1.5rem auto 0 auto;
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  border-top: 5px solid #005daa;
  box-shadow: 0 20px 45px rgba(11, 26, 48, 0.14), 0 6px 16px rgba(11, 26, 48, 0.08);
  padding: 24px;
  transition: all 0.3s ease;
  text-align: left;
  animation: ackFadeInDown 0.35s ease-out;
}

@keyframes ackFadeInDown {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ack-card-header {
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.ack-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: #0b1a30;
  font-size: 1.15rem;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-close-ack {
  background: transparent;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: #94a3b8;
  cursor: pointer;
  padding: 0 6px;
  border-radius: 6px;
  transition: color 0.2s, background-color 0.2s;
}

.btn-close-ack:hover {
  color: #0f172a;
  background-color: #f1f5f9;
}

/* Form Styles */
.ack-form-group {
  margin-bottom: 16px;
}

.ack-form-label {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  color: #334155;
  margin-bottom: 8px;
  font-size: 0.92rem;
}

.ack-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.ack-input-icon {
  position: absolute;
  left: 14px;
  color: #94a3b8;
  font-size: 16px;
  pointer-events: none;
}

.ack-mobile-input {
  width: 100%;
  padding: 12px 14px 12px 42px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1rem;
  letter-spacing: 1px;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  background: #f8fafc;
  color: #0f172a;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  box-sizing: border-box;
}

.ack-mobile-input:focus {
  background: #ffffff;
  border-color: #005daa;
  box-shadow: 0 0 0 4px rgba(0, 93, 170, 0.15);
}

/* Action Buttons in Form */
.btn-row {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.btn-search {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #005daa 0%, #0077d8 100%);
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
  padding: 12px 20px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(0, 93, 170, 0.25);
}

.btn-search:hover:not(:disabled) {
  background: linear-gradient(135deg, #004b8a 0%, #005daa 100%);
  box-shadow: 0 6px 18px rgba(0, 93, 170, 0.35);
  transform: translateY(-1px);
}

.btn-search:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-refresh {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 0 16px;
  font-size: 18px;
  cursor: pointer;
  color: #475569;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-refresh:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* Result Container */
#ackResult {
  margin-top: 18px;
  font-size: 14px;
  max-height: 520px;
  overflow-y: auto;
  border-radius: 12px;
  padding-right: 4px;
}

#ackResult::-webkit-scrollbar {
  width: 6px;
}
#ackResult::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

/* Status / Alert Messages */
.ack-alert {
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 13.5px;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.ack-alert-info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
}

.ack-alert-success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.ack-alert-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

/* Single & Multiple Registration Cards */
.registration-card-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-left: 5px solid #10b981;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s, box-shadow 0.2s;
}

.registration-card-box:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.registration-card-box.cat-10k {
  border-left-color: #c2410c;
}

.reg-card-head {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px dashed #e2e8f0;
}

.reg-card-title-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  width: 100%;
}

.reg-card-head .runner-name {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #0b1a30;
  margin: 0;
}

.reg-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.badge-paid {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.badge-pending {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

.badge-5k {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.badge-10k {
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fed7aa;
}

/* Detail Grid */
.reg-details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.reg-meta-item {
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 8px;
  padding: 8px 12px;
}

.reg-meta-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748b;
  font-weight: 600;
  margin-bottom: 2px;
}

.reg-meta-value {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
}

/* View Digital Card Button */
.btn-view-card {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #005daa 0%, #0077d8 100%);
  color: #ffffff !important;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.4px;
  padding: 11px 16px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 93, 170, 0.22);
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-view-card:hover {
  background: linear-gradient(135deg, #004b8a 0%, #005daa 100%);
  box-shadow: 0 6px 18px rgba(0, 93, 170, 0.35);
  transform: translateY(-1px);
}

.btn-qr-preview-toggle {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #f8fafc;
  color: #334155;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 12.5px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  cursor: pointer;
  margin-top: 8px;
  transition: all 0.2s;
}

.btn-qr-preview-toggle:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #94a3b8;
}

/* Inline QR Code Box */
.inline-qr-wrap {
  display: none;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  margin-top: 10px;
  text-align: center;
}

.inline-qr-wrap.show {
  display: block;
  animation: ackFadeInDown 0.25s ease-out;
}

.inline-qr-code-el {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #ffffff;
  padding: 12px;
  border-radius: 10px;
  border: 2px solid #e2e8f0;
  width: max-content;
  margin: 0 auto 10px auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.inline-qr-code-el canvas,
.inline-qr-code-el img {
  max-width: 140px;
  height: auto;
}

.inline-qr-note {
  font-size: 11.5px;
  color: #64748b;
  margin-bottom: 8px;
}

/* Multiple Registrations Group Header */
.multi-reg-header {
  background: linear-gradient(135deg, #eff6ff 0%, #e0f2fe 100%);
  border: 1.5px solid #bfdbfe;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 14px;
}

.multi-reg-count {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  color: #0369a1;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.multi-reg-subtitle {
  font-size: 12.5px;
  color: #475569;
}

/* Loading Spinner */
.ack-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: ackSpin 0.8s linear infinite;
}

@keyframes ackSpin {
  to {
    transform: rotate(360deg);
  }
}

/* Responsive */
@media (max-width: 600px) {
  .ack-card-box {
    margin: 1rem 8px 0 8px;
    padding: 16px 12px;
    max-width: calc(100% - 16px);
  }

  .reg-details-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .reg-meta-item {
    padding: 8px 10px;
  }

  .reg-meta-label {
    font-size: 10.5px;
  }

  .reg-meta-value {
    font-size: 13px;
  }

  .btn-view-card {
    font-size: 13px;
    padding: 11px 14px;
  }

  .btn-ack-trigger {
    padding: 11px 22px;
    font-size: 14px;
    width: 100%;
    max-width: 320px;
  }
}
