:root {
  --bg: #f5f8f6;
  --surface: #ffffff;
  --surface-soft: #eef6f1;
  --text: #1f2937;
  --muted: #5f6f66;
  --border: #d9e6dd;
  --accent: #2f7d5e;
  --accent-strong: #1f5a43;
  --shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background-color: var(--bg);
}

body,
body * {
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: var(--accent);
}

a:hover {
  color: var(--accent-strong);
}

.main_div {
  width: min(520px, calc(100% - 24px));
  margin: 48px auto;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: center;
}

.main_div h2 {
  margin: 0 0 16px;
}

.main_div form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.grouping {
  margin-bottom: 12px;
  text-align: center;
  width: min(340px, 100%);
}

.grouping label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--muted);
}

.grouping input[type="text"],
.grouping input[type="password"] {
  width: 100%;
}

.grouping .select_button {
  margin: 4px;
}

.select_button,
.box_2,
input[type="text"],
input[type="password"],
input[type="submit"],
input[type="reset"] {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  padding: 10px 12px;
  text-decoration: none;
}

.select_button,
input[type="submit"],
input[type="reset"],
.box_2 {
  cursor: pointer;
}

.select_button:hover,
.box_2:hover,
input[type="submit"]:hover,
input[type="reset"]:hover {
  border-color: #b9d4c3;
  background: var(--surface-soft);
}

.invalid_feedback,
.alert-danger {
  display: block;
  margin-top: 6px;
  color: #c62828;
  font-size: 14px;
}

.head_section {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 16px;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropbtn {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 190px;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
  z-index: 10;
}

.dropdown-content a {
  display: block;
  padding: 10px 12px;
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
}

.dropdown-content a:hover {
  background: var(--surface-soft);
  color: var(--text);
}

.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
  display: block;
}

.centr {
  width: min(1140px, calc(100% - 24px));
  margin: 0 auto;
}

h1 {
  margin: 8px 0 10px;
  font-size: clamp(28px, 2vw, 36px);
}

.devider,
.invisible_devider {
  border: 0;
  border-top: 1px solid var(--border);
}

.invisible_devider {
  visibility: hidden;
}

.main_row::after {
  content: "";
  display: block;
  clear: both;
}

.column {
  float: left;
  padding: 8px;
}

.left,
.right {
  width: 24%;
}

.middle {
  width: 52%;
}

.main_table {
  margin: 0 auto;
  border-collapse: collapse;
  width: 100%;
}

.main_table th,
.main_table td,
.data_fields,
.data_fields_left {
  border-bottom: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
  margin: 0;
}

.main_table th {
  background: var(--surface-soft);
  color: #456255;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.text {
  color: var(--text);
  text-decoration: none;
}

.waterland-btn,
.waterland-btn:link,
.waterland-btn:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid #d9e6dd;
  border-radius: 10px;
  background: #ffffff;
  color: #2f7d5e;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  text-decoration: none;
}

.waterland-btn:hover,
.waterland-btn:active {
  background: #eef6f1;
  border-color: #b9d4c3;
  color: #1f5a43;
}

.collapsible {
  width: min(1140px, calc(100% - 24px));
  margin: 10px auto 0;
  display: block;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  padding: 12px 14px;
  text-align: left;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.collapsible:hover,
.collapsible.active {
  background: var(--surface-soft);
}

.content {
  width: min(1140px, calc(100% - 24px));
  margin: 0 auto;
  border: 1px solid var(--border);
  border-top: 0;
  border-radius: 0 0 10px 10px;
  padding: 12px;
  display: none;
  overflow: auto;
  background: var(--surface);
}

.box,
.box_2 {
  border-color: var(--border);
}

.policy_wrap {
  width: min(1000px, calc(100% - 24px));
  margin: 24px auto 36px;
}

.policy_card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 20px;
}

.policy_card h1,
.policy_card h2,
.policy_card h3,
.policy_card h4 {
  margin-top: 20px;
}

.policy_card p,
.policy_card li {
  line-height: 1.6;
  color: #344054;
}

.profile_wrap {
  width: min(1120px, calc(100% - 24px));
  margin: 24px auto 36px;
}

.profile_grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.profile_card {
  grid-column: span 6;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 20px;
}

.profile_card h1,
.profile_card h2 {
  margin-top: 0;
}

.profile_table_wrap {
  overflow-x: auto;
}

.profile_table {
  width: 100%;
  border-collapse: collapse;
}

.profile_table th,
.profile_table td {
  border-bottom: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
}

.profile_table th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #4b5d53;
  background: var(--surface-soft);
}

.profile_note {
  color: var(--muted);
}

.profile_actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

@media (max-width: 960px) {
  .left,
  .middle,
  .right {
    width: 100%;
  }

  .profile_card {
    grid-column: span 12;
  }
}

@media (max-width: 700px) {
  .main_div {
    margin-top: 22px;
    padding: 16px;
  }

  .head_section {
    padding: 10px 8px;
  }

  .collapsible,
  .content,
  .centr,
  .policy_wrap,
  .profile_wrap {
    width: calc(100% - 16px);
  }
}
