  /* ──────────────────────────────────────────────── */
  /*               (same styles as before)            */
  /* ──────────────────────────────────────────────── */
  #resultState {
    font-family: system-ui, -apple-system, sans-serif;
    max-width: 920px;
    margin: 0 auto;
    padding: 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.18);
  }
  @media (max-width: 640px) {
  #resultState {
    font-size: 1rem;
    padding: 1rem;
    box-shadow: none;
    overflow: hidden;
    }
}
  #loadingState {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    min-height: 220px;
    padding: 2rem;
    text-align: center;
    color: #4b5563;
  }
  .hidden {
    display: inline-block;
    background-color: darkgrey;       /* aqua / bright cyan-blue */
    color: white;
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 400;
    vertical-align: middle;
  }
  h2 { color: #1e40af; border-bottom: 2px solid #e0f2fe; padding-bottom: 0.8rem; margin-top: 0; }

  .status-section { text-align: center; margin: 1.8rem 0; }
  .status-badge {
    padding: 0.6rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1.1rem;
  }
  .success { background: #ecfdf5; color: #065f46; }

  .timestamp { color: #64748b; margin-top: 0.6rem; font-size: 0.95rem; }


  /* Option C: Truly fluid min (modern & elegant – 2025+) */
  .grid-container {
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100% - 2rem), 1fr));
    /* 320px or full available width minus some breathing room */
  }
  .card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
  }
  .card.full-width { grid-column: 1 / -1; }

  .card h3 {
    margin: 0 0 1rem;
    color: #334155;
    font-size: 1.25rem;
  }

  table { width: 100%; border-collapse: collapse; }
  th, td { padding: 0.8rem 0; border-bottom: 1px solid #f1f5f9; }
  th {
    width: 36%;
    text-align: left;
    color: #475569;
    font-weight: 600;
  }
  .success-text { color: #059669; font-weight: 600; }
  .danger-text  { color: #dc2626; font-weight: 600; }

  .reference-info {
    margin-top: 2.5rem;
    padding-top: 1.2rem;
    border-top: 1px solid #e2e8f0;
    color: #64748b;
    text-align: center;
    font-size: 0.95rem;
  }

  a { color: #2563eb; text-decoration: none; }
  a:hover { text-decoration: underline; }

.form-container {
width: 100%;
max-width: 400px; /* Looks good */
margin: 20px auto;
margin-left: 10px !important;
padding: 20px;
border: 2px solid #1DBEAD;
border-radius: 8px;
background: #f9f9f9;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.signup-form {
display: flex;
flex-direction: column; /* Make inputs stack vertically */
gap: 15px; /* A bit more space between elements */
}

.input-group {
display: flex;
gap: 10px;
}

.input-group input[type="tel"] {
flex: 1;
padding-bottom: 10px;
padding-top: 10px;
font-size: 16px;
border: 1px solid #aaa;
border-radius: 4px;
outline: none;
}

.input-group input[type="tel"]:focus {
border-color: #007BFF;
padding-bottom: 10px;
padding-top: 10px;
}

.signup-form input[type="email"] {
padding: 10px;
font-size: 16px;
border: 1px solid #aaa;
border-radius: 4px;
outline: none;
width: 68%;
}

.signup-form input[type="email"]:focus {
border-color: #007BFF;
}

.signup-form .btn {
padding: 10px 20px;
font-size: 16px;
background-color: #5464C1;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
white-space: nowrap;
transition: background-color 0.3s;
}

.signup-form .btn:hover {
background-color: #1DBEAD;
}

.form-label {
display: block;
font-size: 16px;
font-weight: 600;
margin-bottom: 5px;
color: #333;
text-align: left;
}
/* Overlay / Backdrop */
.modal {
display: none;                    /* hidden by default */
position: fixed;                  /* ← fixed instead of relative */
inset: 0;                         /* shorthand for top/right/bottom/left: 0 */
z-index: 9999;
align-items: center;              /* vertical center */
justify-content: center;          /* horizontal center */
background-color: rgba(0, 0, 0, 0.65);
backdrop-filter: blur(4px);       /* nice modern touch – supported everywhere 2025+ */
-webkit-backdrop-filter: blur(4px);
}

/* Modal container */
.modal.show {
display: flex;                    /* ← use flex for perfect centering */
align-items: center;
justify-content: center;
}

/* Inner content area */
.modal-content {
background-color: #ffffff;
border-radius: 12px;
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
width: 90%;
max-width: 920px;
max-height: 90vh;                 /* ← prevents it from being too tall on small screens */
overflow-y: auto;                 /* scroll if content is long */
padding: 2rem;
position: relative;
animation: fadeInScale 0.4s ease-out;
}

/* Optional: smaller padding on mobile */
@media (max-width: 640px) {
.modal-content {
width: 94%;
padding: 1.5rem;
border-radius: 10px;
}
}

/* Close button (highly recommended) */
.modal-close {
position: absolute;
top: 1rem;
right: 1.25rem;
background: none;
border: none;
font-size: 2rem;
line-height: 1;
color: #6b7280;
cursor: pointer;
transition: color 0.2s;
}

.modal-close:hover,
.modal-close:focus {
color: #1f2937;
outline: none;
}

/* Fade-in + slight scale animation */
@keyframes fadeInScale {
from {
opacity: 0;
transform: scale(0.94);
}
to {
opacity: 1;
transform: scale(1);
}
}

/* Optional: prevent body scroll when modal is open */
body.modal-open {
overflow: hidden;
}

.searching-gif {
width: 120px;
height: auto;
margin-bottom: 20px;
}

.modal-content p {
margin-top: 10px;
font-size: 16px;
color: #333;
}

.modal-content h2 {
margin-bottom: 10px;
color: #1DBEAD;
}

.download-btn {
display: inline-block;
margin-top: 20px;
background-color: #5464C1;
color: #fff;
padding: 12px 24px;
border-radius: 5px;
text-decoration: none;
font-size: 16px;
transition: background-color 0.3s;
}

.download-btn:hover {
background-color: #1DBEAD;
}

/* Animation */
@keyframes fadeIn {
from {opacity: 0;}
to {opacity: 1;}
}
@media (max-width: 768px) {
.form-container {
max-width: 100% !important;
overflow: hidden;
margin-left: auto;
margin-right: auto;
box-sizing: border-box;
padding-left: 16px;
padding-right: 16px;
}
.signup-form .btn {
    padding: 10px 10px;
}
.input-group input[type="tel"] {
width: 210px;
margin:auto;
}
}
/* Button container - centers and adds spacing */
.button-container {
text-align: center;
margin: 1.5rem 0;
}

.button-container.top {
margin-top: 0;
margin-bottom: 2rem;
padding-top: 0.5rem;
}

.button-container.bottom {
margin-top: 2.5rem;
margin-bottom: 1rem;
border-top: 1px solid #e5e7eb;
padding-top: 1.5rem;
}

/* Main button style */
.live-location-btn {
display: inline-flex;
align-items: center;
gap: 0.6rem;
background-color: #2563eb;           /* blue - modern & trustworthy */
color: white;
font-weight: 600;
font-size: 1.05rem;
padding: 0.9rem 1.8rem;
border: none;
border-radius: 50px;                 /* pill shape looks great in 2026 */
cursor: pointer;
transition: all 0.2s ease;
box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.live-location-btn:hover {
background-color: #1d4ed8;
transform: translateY(-2px);
box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
}

.live-location-btn:active {
transform: translateY(0);
box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

.live-location-btn:disabled {
background-color: #9ca3af;
cursor: not-allowed;
transform: none;
box-shadow: none;
}

.btn-icon {
font-size: 1.3rem;
}

/* Optional: smaller on mobile */
@media (max-width: 640px) {
.live-location-btn {
font-size: 1rem;
padding: 0.8rem 1.6rem;
}
}
