.hidden {
    opacity: 0;
    pointer-events: none;
    display: none;
}

/* The scan page's results sections stay hidden until a scan finishes. */
.scan-results-found,
.scan-results-not-found {
    display: none;
}

/* Fade for the scan form before the results show. The updated scan.js no longer fades it;
   remove this once that version is live on the scan page. */
#prescan {
    transition: opacity 0.5s ease-in-out;
}

.form-row { display: flex; width: 100%; }
.form-field { flex: 1; min-width: 0; position: relative; }
.form-row .form-field + .form-field { margin-left: 10px; }

.form-label {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 500;
  color: #333;
  font-family: 'Poppins', sans-serif;
  text-transform: uppercase;
  text-align: left;
}

.form-control {
    height: 52px;
    padding: 8px 12px;
    border: 1px solid #C5C7CE;
    font-size: 12px;
    font-weight: 400;
    line-height: 150%;
    letter-spacing: 0.24px;
    font-family: 'Poppins', sans-serif;
    width: 100%;
    background-color: #F9FAFB;
    color: #464953;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 8px;
    border-radius: 8px;
}

.form-control:focus {
    outline: none !important;
    box-shadow: none !important;
    border-color: #C5C7CE !important;
}

.form-control:disabled {
    background-color: #eeeeee;
    color: #999999;
    cursor: not-allowed;
    border-color: #cccccc;
    opacity: 1;
}

.error-message {
    color: #D8000C;
    padding: 0;
    font-size: 16px;
    margin: 5px 0 10px 0;
    display: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    line-height: 160%;
    text-align: left;
}
input.invalid {
    border-color: #D8000C !important;
    background-color: #fff7f7;
}
input.invalid:focus {
    border-color: #D8000C !important;
    box-shadow: 0 0 0 2px rgba(216, 0, 12, 0.3);
}
.pac-container { z-index: 1050 !important; border-radius: 8px; box-shadow: 0 4px 8px rgba(0,0,0,0.1); }
.pac-item { padding: 8px 12px; font-size: 15px; cursor: pointer; font-family: 'Poppins', sans-serif; }
.pac-item:hover { background-color: #f0f0f0; }
.pac-item-query { font-size: 15px; font-family: 'Poppins', sans-serif; }

.button.button-alt {
    max-width: 95%;
    margin: 20px auto 0 auto;
    padding: 15px 20px;
    font-weight: 600;
    line-height: normal;
    border: none;
    border-radius: 71px;
    box-shadow: none;
    background-color: #273FD8;
    background-image: none;
    display: block;
    width: 100%;
    box-sizing: border-box;
    overflow: visible;
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.button.button-alt:not(:disabled):hover {
    background-color: #4a5ede;
    box-shadow: none;
}

.button.button-alt:not(:disabled):active {
    background-color: #162378;
    box-shadow: none;
}

.button.button-alt:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    box-shadow: none;
}

.progress-container {
    max-width: 600px;
    height: 35px;
    background: #ffffff;
    border-radius: 40px;
    overflow: hidden;
    border: 1px solid #dcdcdc;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
    box-sizing: border-box;
    margin-top: 10px;
    margin-bottom: 15px;
}

/* A blue, full-width copy of the track that scan.js reveals from the left (clip-path), so the bar can
   fill the whole track. Its white number sits exactly over the dark one, so the number turns white
   wherever the bar covers it. */
.progress-bar {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: #273fd8;
    transition: clip-path 0.1s linear;
}

.progress-percentage {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    font-family: 'Poppins', sans-serif;
    font-size: 1em;
    color: #333;
    white-space: nowrap;
}

.progress-bar .progress-percentage {
    color: #ffffff;
}

@keyframes pulseFade {
    0% { opacity: 1; }
    50% { opacity: 0.4; }
    100% { opacity: 1; }
}

.scan-status-text {
    margin-top: 10px;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-size: 1em;
    color: #555;
    animation: pulseFade 3s ease-in-out infinite;
}

.custom-results-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 30px;
    font-family: 'Poppins', sans-serif;
}

.scan-result-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding: 32px;
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #ededed;
    transition: box-shadow 0.3s ease;
    min-width: 0;
    flex-shrink: 0;
}

.scan-result-item:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.site-name {
    color: #070A22;
    font-family: Poppins, sans-serif;
    font-size: 28px;
    font-style: normal;
    font-weight: 700;
    line-height: 130%;
    margin: 0;
    word-break: break-word;
}

.pii-details-container {
    margin-top: 0;
    border-top: 1px solid #eeeeee;
    padding-top: 24px;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 20px;
}

.pii-label {
    color: #828797;
    font-feature-settings: 'liga' off, 'clig' off;
    font-family: Poppins, sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    letter-spacing: 0.08px;
    margin-bottom: 4px;
    text-align: left;
}

.pii-blurred-text {
    color: #828797;
    font-feature-settings: 'liga' off, 'clig' off;
    font-family: Poppins, sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    letter-spacing: 0.08px;
    filter: blur(5px);
    user-select: none;
    background: rgba(255, 255, 255, 0.01);
    padding: 1px 0;
}


@media (max-width: 768px) {
    .form-row { flex-direction: column; margin-bottom: 0; }
    .form-row .form-field + .form-field { margin-left: 0; }
    .form-field { width: 100%; }

    .button.button-alt {
        max-width: 100%;
        margin: 20px 0 0 0;
    }

    .form-label {
      font-size: 11px;
    }

    .custom-results-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .scan-result-item {
        padding: 24px;
        gap: 16px;
    }

    .site-name {
        font-size: 22px;
    }

     .pii-details-container {
        padding-top: 16px;
        grid-template-columns: 1fr;
        gap: 10px;
    }
}
