/* complaints/report_css/report.css */

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #132743; /* deep blue background */
  color: #111;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 20px;
}

/* Center form wrapper */
.form-wrapper {
  position: relative;
  background-color: #ffffff;
  border-radius: 10px; /* squarer look */
  padding: 2rem;
  max-width: 600px;
  width: 100%;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  text-align: center;
}

/* Form styling (desktop first) */
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
  text-align: left;
}

label {
  font-weight: 600;
  color: #132743;
  display: block;
  margin-bottom: 0.35rem;
}

/* Inputs, selects, textareas: flat + square */
input,
select,
textarea {
  width: 100%;
  padding: 12px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px; /* ✅ square corners */
  background-color: #f9fafb; /* ✅ flat gray background */
  color: #111;
  transition: border-color 0.2s ease, background 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #132743;
  outline: none;
  background-color: #fff;
}

select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 8L0 0h12L6 8z' fill='%23132743'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px 8px;
  padding-right: 36px;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

/* Primary button */
.btn-submit {
  background-color: #132743;
  color: #fff;
  padding: 12px 20px;
  border: none;
  border-radius: 4px; /* ✅ square */
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 1rem;
  transition: background 0.3s ease;
}

.btn-submit:hover {
  background-color: #0f1d33;
}

/* Secondary (go back) button */
.btn-back {
  display: inline-block;
  background-color: #999;
  color: #fff;
  padding: 10px 18px;
  border-radius: 4px; /* ✅ square */
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  margin-top: 0.75rem;
  text-align: center;
  transition: background 0.3s ease;
}

.btn-back:hover {
  background-color: #777;
}

/* Address row layout */
.row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
}
.char-count{
  font-size:12px;
  color:#94a3b8;
  text-align:right;
  margin-top:-12px;
  margin-bottom:14px;
  font-variant-numeric:tabular-nums;
}
.char-count.is-near{color:#c2410c}

.privacy-note{
  display:flex;
  align-items:flex-start;
  gap:7px;
  margin-top:-8px;
  font-size:11.5px;
  line-height:1.5;
  color:#94a3b8;
}
.privacy-note svg{
  width:13px;
  height:13px;
  flex-shrink:0;
  
}

.overlay{
  display:none;
  position:fixed;
  inset:0;
  z-index:9999;
  background:rgba(10,20,40,.45);
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
  align-items:center;
  justify-content:center;
  padding:20px;
}
.overlay.is-open{display:flex}

.overlay-box{
  background:#fff;
  border-radius:16px;
  padding:36px 34px;
  width:100%;
  max-width:360px;
  text-align:center;
  box-shadow:0 20px 50px rgba(8,20,60,.3);
}
.overlay-box h3{
  font-size:19px;
  margin:0 0 8px;
  color:#0f172a;
}
.overlay-box p{
  font-size:14px;
  color:#64748b;
  margin:0;
  line-height:1.5;
}

.spinner{
  width:44px;height:44px;
  margin:0 auto 18px;
  border:3px solid #e2e8f0;
  border-top-color:#1d4ed8;
  border-radius:50%;
  animation:ov-spin .8s linear infinite;
}
@keyframes ov-spin{to{transform:rotate(360deg)}}

.ov-check{
  width:46px;height:46px;
  margin:0 auto 14px;
  display:block;
  color:#16a34a;
}
.ov-success{color:#15803d !important}
.ov-error{color:#b91c1c !important}

.ov-btn{
  display:inline-block;
  margin-top:18px;
  padding:11px 22px;
  font-size:14px;
  font-weight:600;
  font-family:inherit;
  color:#fff;
  background:#1d4ed8;
  border:none;
  border-radius:8px;
  text-decoration:none;
  cursor:pointer;
}
.ov-btn:hover{background:#1a43c0}

@media(prefers-reduced-motion:reduce){
  .spinner{animation-duration:2s}
}
