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

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #f0f4f8;
  color: #222;
  font-size: 15px;
}

.site-header {
  background: #28a3d9;
  color: #fff;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.site-header .logo-text {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .5px;
  line-height: 1.2;
}
.site-header .sub {
  font-size: 13px;
  font-weight: 400;
  opacity: .9;
}
.site-header .contact-info {
  margin-left: auto;
  text-align: right;
  font-size: 13px;
  line-height: 1.7;
  opacity: .95;
}

.page {
  max-width: 960px;
  margin: 36px auto 60px;
  padding: 0 16px;
}

.card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 16px rgba(0,0,0,.10);
  overflow: hidden;
  margin-bottom: 28px;
}
.card-header {
  background: #28a3d9;
  color: #fff;
  padding: 16px 28px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .3px;
}
.card-body { padding: 24px 28px; }

.notice {
  background: #eaf6fd;
  border-left: 4px solid #28a3d9;
  padding: 12px 18px;
  border-radius: 0 6px 6px 0;
  font-size: 13.5px;
  line-height: 1.6;
  margin-bottom: 24px;
  color: #1a5f7a;
}

.alert-success {
  background: #e6f9ee;
  border-left: 4px solid #22a06b;
  color: #1a5c3a;
  padding: 14px 18px;
  border-radius: 0 6px 6px 0;
  margin-bottom: 24px;
}

.alert-error {
  background: #fdeaea;
  border-left: 4px solid #e53;
  color: #8a1f1f;
  padding: 14px 18px;
  border-radius: 0 6px 6px 0;
  margin-bottom: 24px;
}

.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: 1fr 1fr; }
.g3 { grid-template-columns: 1fr 1fr 1fr; }
.g4 { grid-template-columns: 1fr 1fr 1fr 1fr; }
.g32 { grid-template-columns: 3fr 2fr; }
.g23 { grid-template-columns: 2fr 3fr; }
.span2 { grid-column: span 2; }
.span3 { grid-column: span 3; }
.span4 { grid-column: span 4; }

.field { display: flex; flex-direction: column; gap: 5px; }
label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: #555;
}
input[type="text"],
input[type="email"],
input[type="date"],
input[type="tel"],
select,
textarea {
  border: 1.5px solid #d0dae3;
  border-radius: 6px;
  padding: 9px 12px;
  font-size: 14px;
  color: #222;
  background: #fafcfe;
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #28a3d9;
  box-shadow: 0 0 0 3px rgba(40,163,217,.15);
  background: #fff;
}

.radio-group {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 9px 12px;
  background: #fafcfe;
  border: 1.5px solid #d0dae3;
  border-radius: 6px;
}
.radio-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  color: #333;
  cursor: pointer;
}
.radio-group input[type="radio"] { accent-color: #28a3d9; width: 16px; height: 16px; }

.check-list { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.check-list label {
  display: flex;
  align-items: center;
  gap: 7px;
  text-transform: none;
  letter-spacing: 0;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  cursor: pointer;
}
.check-list input[type="checkbox"] { accent-color: #28a3d9; width: 16px; height: 16px; }

.section-title {
  font-size: 13px;
  font-weight: 700;
  color: #28a3d9;
  text-transform: uppercase;
  letter-spacing: .6px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e6f4fb;
  margin-bottom: 18px;
}

.req-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.req-block {
  background: #f7fbfe;
  border: 1.5px solid #c9e8f5;
  border-radius: 8px;
  padding: 16px 18px;
}
.req-block .req-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: #28a3d9;
  margin-bottom: 12px;
}

.cost-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.cost-table th {
  background: #28a3d9;
  color: #fff;
  padding: 9px 14px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
}
.cost-table td { padding: 8px 14px; border-bottom: 1px solid #e8eef3; vertical-align: middle; }
.cost-table tr:last-child td { border-bottom: none; }
.cost-table tr:nth-child(even) td { background: #f7fbfe; }
.cost-table .price { font-weight: 700; color: #1a7daa; white-space: nowrap; }
.cost-table input[type="checkbox"] { accent-color: #28a3d9; width: 16px; height: 16px; cursor: pointer; }

.total-bar {
  background: #eaf6fd;
  border: 1.5px solid #28a3d9;
  border-radius: 8px;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  margin-top: 14px;
}
.total-bar .amount { font-size: 22px; color: #28a3d9; }

.policy-box {
  background: #f7fbfe;
  border: 1.5px solid #d0e8f3;
  border-radius: 8px;
  padding: 16px 20px;
  font-size: 13px;
  line-height: 1.7;
  max-height: 240px;
  overflow-y: auto;
  color: #444;
}
.policy-box p { margin-bottom: 10px; }
.policy-box h4 { color: #28a3d9; margin: 14px 0 6px; font-size: 13px; }

.sig-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  align-items: end;
}
.sig-line {
  border: none;
  border-bottom: 2px solid #28a3d9;
  border-radius: 0;
  background: transparent;
  font-size: 15px;
  font-style: italic;
  color: #333;
  padding: 6px 4px;
}
.sig-line:focus {
  box-shadow: none;
  border-bottom-color: #1a7daa;
}

.btn-submit {
  display: block;
  width: 100%;
  padding: 15px;
  background: #28a3d9;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  letter-spacing: .5px;
  transition: background .2s, transform .1s;
  margin-top: 8px;
}
.btn-submit:hover { background: #1a85b8; }
.btn-submit:active { transform: scale(.99); }
.btn-submit:disabled { opacity: .65; cursor: not-allowed; }

.form-footer {
  text-align: center;
  font-size: 12.5px;
  color: #888;
  margin-top: 10px;
  line-height: 1.8;
}

@media (max-width: 680px) {
  .g2, .g3, .g4, .g32, .g23, .req-grid, .sig-row { grid-template-columns: 1fr; }
  .span2, .span3, .span4 { grid-column: span 1; }
  .card-body { padding: 18px 16px; }
  .site-header { flex-wrap: wrap; }
  .site-header .contact-info { margin-left: 0; text-align: left; }
}
