/* Typography and Container */
body {
  font-family: 'Segoe UI', sans-serif;
}

.scanner-container {
  max-width: 1024px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Summary card at the top */
.summary-card {
  background: #f9fafb;
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  margin-bottom: 2.5rem;
  border: 1px solid #e5e7eb;
}

/* Status section */
.scan-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.scan-status-icon {
  font-size: 1.5rem;
  margin-right: 0.75rem;
}

.scan-status-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
}

.scan-status-sub {
  font-size: 0.875rem;
  color: #6b7280;
}

.button-download {
  background-color: #1d4ed8;
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.button-download:hover {
  background-color: #2563eb;
}

/* Score summary section */
.score-summary {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.score-box {
  background: #ffffff;
  flex: 1;
  border-radius: 1rem;
  border: 1px solid #e5e7eb;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}
button.scanner-submit-button {
    max-width: 350px;
    background: #386fb6 !important;
}

.score-box h4 {
  font-size: 1rem;
  color: #6b7280;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.score-number {
  font-size: 2.75rem;
  font-weight: 700;
  color: #2563eb;
}

.score-url {
  font-size: 0.85rem;
  color: #6b7280;
  margin-top: 0.5rem;
}

.out-of {
  font-size: 1rem;
  font-weight: 400;
  color: #6b7280;
}

.score-list {
  list-style: none;
  padding: 0;
  font-size: 0.875rem;
  color: #374151;
  line-height: 1.6;
}

/* Badge styles */
.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
}

.badge-fail {
  background-color: #fee2e2;
  color: #b91c1c;
}

.badge-pass {
  background-color: #dcfce7;
  color: #15803d;
}

/* Checklist section */
.checklist-block {
  margin-bottom: 2.5rem;
}

.checklist-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.checklist {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.checklist-item {
  padding: 1.25rem;
  border-radius: 1rem;
  border: 1px solid #e5e7eb;
  background-color: #ffffff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}

.checklist-item.failed {
  border-left: 5px solid #ef4444;
  background-color: #fef2f2;
}

.checklist-item.passed {
  border-left: 5px solid #10b981;
  background-color: #f0fdf4;
}

.item-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1rem;
  color: #1f2937;
}

.item-header .icon {
  font-size: 1.25rem;
}

.item-desc {
  font-size: 0.875rem;
  color: #4b5563;
  margin-top: 0.5rem;
}

/* Toggle details */
details summary {
  font-weight: 500;
  font-size: 0.85rem;
  margin-top: 0.75rem;
  cursor: pointer;
  color: #2563eb;
}

details ul {
  margin-top: 0.5rem;
  padding-left: 1.25rem;
  color: #374151;
  font-size: 0.85rem;
}

.chart-box {
  text-align: center;
}

.chart-ring {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 1rem auto;
  border-radius: 50%;
  background: conic-gradient(
    #ef4444 0 calc(var(--error) * 1deg),
    #f59e0b 0 calc((var(--error) + var(--incomplete)) * 1deg),
    #6b7280 0 calc((var(--error) + var(--incomplete) + var(--inapplicable)) * 1deg),
    #10b981 0 360deg
  );
}

.chart-ring::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 70%;
  height: 70%;
  background: #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.chart-legend {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
  font-size: 0.875rem;
  color: #374151;
  display: grid;
  gap: 0.25rem;
}

.chart-legend li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
}

.chart-legend .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.chart-legend .dot.error { background: #ef4444; }
.chart-legend .dot.incomplete { background: #f59e0b; }
.chart-legend .dot.inapplicable { background: #6b7280; }
.chart-legend .dot.passed { background: #10b981; }

/**
* Scanning search form
*/
.scanner-form-form {
    display: flex;
    align-items: center;
    background-color: #cddbee; /* Light blue background */
    border-radius: 2em;
    padding: 0.7em;
    gap: 0.5em;
    max-width: 700px;
    margin: 0 auto;
    box-sizing: border-box;
}

.scanner-input-wrapper {
    display: flex;
    align-items: center;
    flex: 1;
    background: transparent;
    /* padding-left: 1em; */
}

.scanner-icon {
    margin-top: 6px;
}

#site-url-input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    color: #333;
}

button.scanner-button {
    background: white !important;
    border: none !important;
    border-radius: 2em !important;
    padding: 0.7em 1.5em !important;
    font-size: 1em !important;
    cursor: pointer !important;
    color: #000 !important;
    transition: background 0.3s ease !important;
    padding-left: 3em !important;
    padding-right: 3em !important;
}

button.scanner-button:hover {
    background: #f0f0f0 !important;
}


.accessibility-scanner-form-g {
        margin: 0 auto;
        padding: 20px;
        font-family: "Raleway", Sans-serif;
    }

    .accessibility-scanner-form-g .form-title {
        color: #4a90e2;
        font-size: 18px;
        margin-bottom: 25px;
        font-weight: normal;
    }

    .accessibility-scanner-form-g .scanner-form-container {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .accessibility-scanner-form-g .form-group {
        display: flex;
        flex-direction: column;
    }

    .accessibility-scanner-form-g .form-label {
        font-size: 16px;
        font-weight: 500;
        color: #333;
        margin-bottom: 8px;
    }

    .accessibility-scanner-form-g .input-wrapper {
        position: relative;
    }

    .accessibility-scanner-form-g .url-input {
        display: flex;
        align-items: center;
        border: 1px solid #888;
        border-radius: 25px;
        background-color: white;
        overflow: hidden;
    }

    .accessibility-scanner-form-g .url-prefix {
        background-color: #f0f0f0;
        padding: 8px 15px;
        font-size: 14px;
        color: #666;
        border-right: 1px solid #ddd;
    }

    .accessibility-scanner-form-g .url-input input {
        flex: 1;
        border: none;
        outline: none;
        padding: 8px 15px;
        font-size: 14px;
    }

    .accessibility-scanner-form-g input[type="email"],
    .accessibility-scanner-form-g input[type="tel"] {
        width: 100%;
        padding: 8px 15px;
        border: 1px solid #888;
        border-radius: 25px;
        font-size: 14px;
        outline: none;
        transition: border-color 0.3s ease;
    }

    .accessibility-scanner-form-g input[type="email"]:focus,
    .accessibility-scanner-form-g input[type="tel"]:focus,
    .accessibility-scanner-form-g .url-input:focus-within {
        border-color: #4a90e2;
    }

    .accessibility-scanner-form-g .checkbox-group {
        margin-top: 10px;
    }

    .accessibility-scanner-form-g .checkbox-container {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        cursor: pointer;
        margin-bottom: 10px;
    }

    .accessibility-scanner-form-g .checkbox-container input[type="checkbox"],
    .accessibility-scanner-form-g .checkbox-container input[type="radio"] {
        /* display: none; */
        opacity: 0;
        position: absolute;
        left: -9999px;
        /* width: 0;
        height: 0; */
    }

    .accessibility-scanner-form-g .checkmark {
        width: 20px;
        height: 20px;
        border: 1px solid #888;
        border-radius: 3px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        margin-top: 2px;
    }

    .accessibility-scanner-form-g .checkmark {
        border-radius: 50%;
    }

    .accessibility-scanner-form-g .checkbox-container input:checked +  .checkmark {
        background-color: #4a90e2;
    }

    .accessibility-scanner-form-g .checkbox-container input:checked + .checkmark::after {
        content: '✓';
        color: #fff;
        font-size: 12px;
        font-weight: bold;
    }

    .accessibility-scanner-form-g .checkbox-container input[type="radio"]:checked +  .checkmark.radio::after {
        content:  '✓';
        font-size: 10px;
    }

    .accessibility-scanner-form-g .checkbox-text {
        color: #333;
        font-size: 14px;
        line-height: 1.4;
    }

    .accessibility-scanner-form-g .privacy-link {
        color: #4a90e2;
        text-decoration: none;
    }

    .accessibility-scanner-form-g .privacy-link:hover {
        text-decoration: underline;
    }

    .accessibility-scanner-form-g .consent-group {
        margin-top: 5px;
    }

    .accessibility-scanner-form-g .consent-options {
        display: flex;
        gap: 30px;
        margin-bottom: 8px;
    }

    .accessibility-scanner-form-g .consent-description {
        color: #666;
        font-size: 14px;
        margin: 0;
        margin-left: 30px;
    }

    .accessibility-scanner-form-g .scanner-submit-button {
        background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
        color: white;
        border: none;
        padding: 15px 30px;
        border-radius: 25px;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        margin-top: 20px;
        transition: all 0.3s ease;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

.accessibility-scanner-form-g label.form-label {
    font-weight: 600 !important;
}

.accessibility-scanner-form-g span.button-arrow {
    font-weight: 100 !important;
    font-size: 40px !important;
    line-height: 1px;
    position: relative;
    top: -2px;
}

    .accessibility-scanner-form-g .scanner-submit-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(74, 144, 226, 0.3);
    }

    .accessibility-scanner-form-g .button-arrow {
        font-size: 18px;
        font-weight: bold;
    }

    /* Responsive */
    @media (max-width: 768px) {
        .accessibility-scanner-form-g .accessibility-scanner-form-g {
            padding: 15px;
        }
        
        .accessibility-scanner-form-g .consent-options {
            flex-direction: column;
            gap: 10px;
        }
        
        .accessibility-scanner-form-g .consent-description {
            margin-left: 0;
        }
    }
