body {
    font-family: "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #333;
    background-color: #f9f9f9;
    line-height: 1.4em;
    margin: 0;
    padding: 20px;
    text-align: left;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-title {
    margin-bottom: 1.5rem;
    font-size: 2rem;
    text-align: center;
    color: #222;
}

#agreement-container {
    margin-bottom: 2rem;
}

.card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    padding: 24px 20px 18px 20px;
    margin-bottom: 1.5rem;
}

.card-header {
    font-size: 1.2rem;
    font-weight: bold;
    color: #555;
    margin-bottom: 12px;
    border-bottom: 1px solid #ececec;
    padding-bottom: 4px;
}

.card p {
    margin: 0.5em 0;
    font-size: 1.05em;
}

strong {
    color: #007BFF;
}

#agreement-checkboxes {
    margin: 2rem 0 1rem;
    padding: 1.5rem 1rem;
    background: #fafbfd;
    border-radius: 8px;
    border: 1px solid #ececec;
}

#agreement-checkboxes label {
    display: block;
    position: relative;
    padding-left: 1.8em;
    margin-bottom: 1.25rem;
    line-height: 1.4;
    cursor: pointer;
    font-size: 1rem;
}

/* Draw the empty box */
#agreement-checkboxes label::before {
    content: "";
    position: absolute;
    top: 0.2em;
    left: 0;
    width: 1.2em;
    height: 1.2em;
    border: 1px solid #ccc;
    border-radius: 3px;
    background: #fff;
}

/* Hide the native checkbox but keep it clickable */
#agreement-checkboxes input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    position: absolute;
    top: 0.2em;
    left: 0;
    width: 1.2em;
    height: 1.2em;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

#agreement-checkboxes label.checked::before {
  background: #007BFF;
  border-color: #007BFF;
}

#agreement-checkboxes label.checked::after {
  content: "✓";
  position: absolute;
  top: 0.16em;
  left: 0.16em;
  font-size: 1.1em;
  line-height: 1;
  color: #fff;
}

/* #agreement-checkboxes label.checked::after { */
/*   content: "✓"; */
/*   position: absolute; */
/*   top: 0.1em; */
/*   left: 0.15em; */
/*   font-size: 1.1em; */
/*   line-height: 1; */
/*   color: #007BFF; */
/* } */

#agreement-checkboxes a {
    white-space: nowrap;
    margin: 0 0.25em;
    color: #007BFF;
    text-decoration: underline;
}

#agreement-checkboxes span {
    white-space: nowrap;
    margin: 0 0.125em;
    color: #555;
}

#agreement-checkboxes a {
    text-decoration: underline;
}

button#submit-agreement {
    display: block;
    width: 100%;
    padding: 0.9em;
    margin-top: 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1.15rem;
    font-weight: 600;
    background: #28a745;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(40,167,69,0.05);
    transition: background .18s;
}

button#submit-agreement:disabled {
    background: #b5c1b8;
    color: #eee;
    cursor: not-allowed;
}

button#submit-agreement:not(:disabled):hover {
    background: #218838;
}

#submit-success, #submit-error {
    font-size: 1.15rem;
    font-weight: 500;
    text-align: center;
    padding: 1em;
    border-radius: 8px;
}

#submit-success {
    background: #eafbe7;
    border: 1px solid #b7ebc7;
    color: #177d42;
}

#submit-error {
    background: #fdeaea;
    border: 1px solid #ebbbbb;
    color: #c00;
}

@media (max-width: 600px) {
    .page-title {
        font-size: 1.5rem;
    }
    .card {
        padding: 16px 8px 12px 8px;
    }
    #agreement-checkboxes {
        padding: 1rem 0.5rem;
    }
    button#submit-agreement {
        font-size: 1rem;
        padding: 0.85em;
    }
}
