*,
*::before,
*::after {
  box-sizing: border-box;
}


body { font-family: Arial, sans-serif; margin: 1em; background: #f7f7f7; }
form {
  max-width: 480px;
  margin: auto;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
label { display: block; margin-top: 12px; font-weight: bold; }
input[type="text"],
input[type="email"],
input[type="tel"] {
  width: 100%; padding: 10px; margin-top: 4px;
  border: 1px solid #ccc; border-radius: 4px;
}
.radio-group { margin-top: 12px; }
.radio-group label { font-weight: normal; }
button {
  margin-top: 20px;
  width: 100%;
  padding: 12px;
  background: #007BFF;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
}
button:hover { background: #0056b3; }

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background: white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
th, td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #ddd;
  font-size: 14px;
}
th a {
  text-decoration: none;
  color: #333;
}
/* Ensure rows stay styled correctly after sorting */
tr {
  display: table-row;
}

tr:hover { background-color: #f1f1f1; }
tr.pending { background-color: #fff3cd; }
tr.expired { background-color: #ffcc80; }
th::after {
  display: inline-block;
  width: 1ch;                /* Reserve space for arrow */
  content: " ";              /* Use a non-breaking space for consistent width */
  font-size: inherit;
  vertical-align: middle;
  font-weight: inherit;
  color: inherit;
  margin-left: 4px;
}

.sort-asc::after {
  content: "▲";
}

.sort-desc::after {
  content: "▼";
}

input::placeholder {
  color: #bbb;
}
.verification-form input[type="submit"] {
  margin-top: 10px;
  padding: 10px 20px;
  font-size: 1rem;
}
@media (max-width: 768px) {
  table, thead, tbody, th, td, tr {
    display: block;
  }
  tr {
    margin-bottom: 1rem;
    border-bottom: 2px solid #ccc;
  }
  td {
    padding-left: 50%;
    position: relative;
  }
  td::before {
    content: attr(data-label);
    position: absolute;
    left: 0;
    width: 45%;
    padding-left: 15px;
    font-weight: bold;
    white-space: nowrap;
  }
  th { display: none; }
}

th {
  background: #eee;
  cursor: pointer;
}
tr.pending {
  background-color: #ffffcc;
}


.form-container {
  max-width: 600px;
  margin: 40px auto;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.form-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #ccc;
  margin-bottom: 20px;
  padding-bottom: 10px;
}
.form-header .header-text {
  flex-grow: 1;
}
.form-header h1 {
  margin: 0;
  font-size: 26px;
}
.form-header p {
  margin: 4px 0 0;
  font-size: 18px;
}
.form-header .header-logo {
  width: 80px;
  height: auto;
  margin-left: 20px;
}
.form-field{
    margin-top: 12px;
}
.form-wrapper {
    max-width: 480px;
    margin: 30px auto;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.form-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #d0e2f0;
    padding: 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.form-header .header-text {
    flex: 1;
    font-family: Arial, sans-serif;
}

.form-header .header-text h1 {
    font-size: 26px;
    margin: 0 0 6px;
}

.form-header .header-text p {
    margin: 4px 0;
    font-size: 18px;
}

.form-header img {
    max-height: 100px;
    margin-left: 20px;
}

#fdata13div, #fdata62div {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    z-index: -1;
}

@media (max-width: 600px) {
    .form-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .form-header img {
        margin: 12px 0 0;
        align-self: center;
    }
}

