/* assets/css/insights.css */

/* Insights Section */
.insights-section {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 1rem;
  margin-top: 2rem;
  scroll-margin-top: 6rem;
}

/* Section Header */
.section-header {
  display: flex;
  align-items: center;
  justify-content: center;
  /* margin-bottom: 1.5rem; */
  /* border: 1px solid black; */
}

.line-text-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 400px;
  /* margin: 0 auto 1.5rem; */
}

.line-text-container hr {
  flex: 1;
  border: none;
  border-top: 2px solid;
  opacity: 0.8;
}

.line-text-container h2 {
  white-space: nowrap;
  font-weight: 400;
  letter-spacing: 0.05em;
  font-size: 1.25rem;
}

/* Insights Container */
.insights-container {
  max-width: 90%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: 1rem;
  border: 2px solid #1f2937;
  padding: 1.5rem 0.5rem;
  margin-top: -1.5rem;
  border: 1px solid black;
}

/* Transactions Wrapper */
.transactions-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-bottom: 15px;
}

/* Transaction Article */
.transaction-article {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  margin-bottom: 2.5rem;
}

.transactions-wrapper .transaction-article:first-child {
  margin-right: 8px;
}

.transaction-card {
  width: 100%;
  border: 2px solid;
  border-radius: 0.75rem;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.transaction-title {
  white-space: nowrap;
  position: absolute;
  top: -1rem;
  left: 50%;
  transform: translateX(-50%);
  border: 1px solid;
  border-radius: 0.375rem;
  padding: 0.125rem 0.75rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: white;
  z-index: 20;
}

/* Transaction Image Container */
.transaction-image-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 0.75rem;
  min-height: 250px;
  max-height: 250px;
}

.transaction-image-desktop,
.transaction-image-mobile {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.transaction-image-desktop {
  display: none;
}

.transaction-image-mobile {
  display: block;
}

.transaction-image-container img {
  border-radius: 0.75rem;
  object-fit: cover;
  width: 100%;
  height: 100%;
  user-select: none;
  -webkit-user-drag: none;
}

.image-blur-overlay {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 10;
}

/* Unlock Button */
.unlock-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid;
  border-radius: 1rem;
  width: 200px;
  height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 1rem;
  cursor: pointer;
  user-select: none;
  z-index: 20;
  transition: opacity 0.2s;
}

.unlock-button:hover {
  opacity: 0.9;
}

.unlock-button img {
  display: block;
  margin-bottom: 0.25rem;
}

/* Transaction Details */
.transaction-details {
  text-align: center;
  font-size: 1.125rem;
  font-weight: 600;
  padding: 0 0 1.25rem 0;
  border-bottom: 1px solid #6b7280;
}

.transaction-details p {
  margin: 0;
}

.details-label {
  font-weight: 700;
}

.details-value {
  font-weight: 400;
}

/* WhatsApp Alerts Section */
.whatsapp-alerts-section {
  border: 2px solid;
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  gap: 1rem;
  width: 100%;
}

.whatsapp-alerts-section h2 {
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  width: 100%;
}

/* Alerts Form */
.alerts-form {
  display: flex;
  width: 100%;
  max-width: 28rem;
}

.form-inner-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.form-input-row {
  display: flex;
  width: 100%;
  max-width: 28rem;
  position: relative;
}

/* Country Code Select */
.country-code-select {
  appearance: none;
  border-radius: 0.5rem 0 0 0.5rem;
  color: #1a1a1a !important;
  font-weight: 600;
  border: 2px solid;
  font-size: 0.9375rem;
  outline: none;
  cursor: pointer;
  background-color: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231a1a1a' d='M6 9L1 4h10z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  padding-right: 1.5rem !important;
}

/* Phone Input Container */
.phone-input-container {
  position: relative;
  flex-grow: 1;
}

.phone-input {
  appearance: none;
  width: 100%;
  /* padding: 0.5rem 0.75rem; */
  font-size: 1rem;
  color: white;
  border-top: 2px solid;
  border-right: 2px solid;
  border-bottom: 2px solid;
  border-left: none;
  border-radius: 0 0.5rem 0.5rem 0;
  outline: none;
}

.phone-input::placeholder {
  color: rgba(42, 74, 63, 0.5) !important;
}

/* Remove number input arrows */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button,
input[type="tel"]::-webkit-inner-spin-button,
input[type="tel"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"],
input[type="tel"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

/* Submit Buttons */
.submit-button-desktop,
.submit-button-mobile {
  cursor: pointer;
  font-weight: 500;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  transition: all 0.2s;
  border: none;
}

.submit-button-desktop {
  display: none;
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  font-size: 0.9375rem;
  padding: 0.7rem 1.25rem !important;
}

.submit-button-mobile {
  margin-top: 0.75rem;
  display: flex;
  justify-content: center;
  width: 100%;
  font-size: 0.9375rem;
  padding: 0.75rem 1.25rem;
}

.submit-button-desktop:hover,
.submit-button-mobile:hover {
  opacity: 0.9;
}

.submit-button-desktop i,
.submit-button-mobile i {
  width: 20px;
  height: 20px;
  stroke-width: 2.5;
}

/* Responsive Styles */
@media (min-width: 640px) {
  .whatsapp-alerts-section h2 {
    font-size: 1.25rem;
  }

  .country-code-select,
  .phone-input {
    padding: 0.75rem;
  }

  .submit-button-desktop,
  .submit-button-mobile {
    padding: 0.875rem 1.25rem;
  }
}

@media (min-width: 768px) {
  .insights-container {
    padding: 1.5rem;
  }

  .transaction-image-desktop {
    display: block;
  }

  .transaction-image-mobile {
    display: none;
  }

  .phone-input {
    padding-right: 8rem;
  }

  .submit-button-desktop {
    display: flex;
  }

  .submit-button-mobile {
    display: none;
  }
}

@media (min-width: 1024px) {
  .transactions-wrapper {
    flex-direction: row;
  }

  .transaction-article {
    width: 50%;
    margin-bottom: 0;
  }

  .transaction-details {
    padding-bottom: 0;
    border-bottom: none;
  }

  .whatsapp-alerts-section {
    flex-direction: row;
    padding: 0.5rem 1.5rem;
  }

  .whatsapp-alerts-section h2 {
    text-align: left;
    width: auto;
  }
}

/* ========================
   INSIGHTS BROCHURE FORM FIXES
   ======================== */

/* Force transparent background + dark text for country select */
.whatsapp-alerts-section .country-code-select {
  background-color: transparent !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231a1a1a' d='M6 9L1 4h10z'/%3E%3C/svg%3E") !important;
  color: #1a1a1a !important;
  padding: 0.5rem;
}

/* Force placeholder color in phone input */
.whatsapp-alerts-section .phone-input::placeholder {
  color: rgba(31, 75, 67, 0.6) !important;
  opacity: 1 !important;
}

/* Browser-specific placeholder overrides */
.whatsapp-alerts-section .phone-input::-webkit-input-placeholder {
  color: rgba(31, 75, 67, 0.6) !important;
}
.whatsapp-alerts-section .phone-input::-moz-placeholder {
  color: rgba(31, 75, 67, 0.6) !important;
  opacity: 1 !important;
}
.whatsapp-alerts-section .phone-input:-ms-input-placeholder {
  color: rgba(31, 75, 67, 0.6) !important;
}

/* Ensure entered text is dark */
.whatsapp-alerts-section .phone-input {
  color: #1a1a1a !important;
}

/* ========================
   INSIGHTS – FULL BLUR COVERAGE FIX
   ======================== */

/* Make blur overlay match rounded corners exactly */
.transaction-image-container .image-blur-overlay {
  border-radius: 0.75rem !important; /* Same as parent */
}

/* Ensure images also match rounding (safety) */
.transaction-image-container img {
  border-radius: 0.75rem !important;
}

/* Optional: Slightly larger blur for better coverage */
.transaction-image-container .image-blur-overlay {
  backdrop-filter: blur(6px); /* Stronger blur */
  -webkit-backdrop-filter: blur(6px);
}
