:root {
  --bg: #061315;
  --bg-top: #061113;
  --panel: #0c2326;
  --panel-strong: #071012;
  --text: #f4fbfa;
  --muted: #a9c7c4;
  --accent: #26bcea;
  --accent-gradient: linear-gradient(
    135deg,
    rgba(38, 188, 234, 0.8),
    rgb(38, 188, 234) 50%,
    rgba(38, 188, 234, 0.8)
  );
  --line: rgba(38, 188, 234, 0.26);
  --danger: #ffb4a9;
  --success: #96f2c8;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg) 100%);
  overflow-x: hidden;
  overscroll-behavior: none;
}

body {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg) 100%);
  overflow-x: hidden;
  overscroll-behavior: none;
}

main {
  display: flex;
  justify-content: center;
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  display: flex;
  justify-content: center;
  width: min(960px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(0.65rem, 1.8dvh, 1.25rem) 0 clamp(0.55rem, 1.6dvh, 1.35rem);
}

.brand img {
  display: block;
  width: clamp(180px, 20dvh, 250px);
  height: auto;
}

.form-section {
  width: min(920px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(0.65rem, 1.9dvh, 1.7rem) 0 1.4rem;
}

.section-heading {
  margin: 0 auto 1rem;
  text-align: center;
}

h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.85rem, 4.5dvh, 2.8rem);
  font-weight: 900;
  line-height: 1.08;
  text-wrap: balance;
}

h1 span {
  white-space: nowrap;
}

.section-heading p {
  margin: clamp(0.15rem, 0.35dvh, 0.35rem) auto 0;
  color: var(--muted);
  font-size: clamp(0.78rem, 1.7dvh, 0.95rem);
  line-height: 1.35;
  max-width: 680px;
}

.request-form,
.property-list {
  display: grid;
  gap: 0.9rem;
}

.property-card {
  min-width: 0;
  margin: 0;
  padding: clamp(0.5rem, 1dvh, 0.9rem) 0.95rem clamp(0.85rem, 1.2dvh, 1.1rem);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(12, 35, 38, 0.92);
  box-shadow: 0 20px 40px rgba(3, 11, 12, 0.18);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.6rem;
}

.property-title {
  margin: 0;
  padding: 0 0.5rem 0 0;
  color: var(--accent);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.field-group {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
}

.submission-card .field-group {
  margin-bottom: 0;
}

.two-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

label {
  display: grid;
  gap: 0.35rem;
  color: var(--text);
  font-weight: 700;
}

label span {
  font-size: clamp(0.68rem, 1.45dvh, 0.8rem);
  line-height: 1.25;
}

input,
select,
textarea {
  width: 100%;
  min-height: clamp(40px, 4.4dvh, 46px);
  border: 1px solid rgba(244, 251, 250, 0.16);
  border-radius: 6px;
  padding: clamp(0.5rem, 0.8dvh, 0.7rem) 0.7rem;
  color: var(--text);
  background: rgba(2, 9, 10, 0.44);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: clamp(0.8rem, 1.7dvh, 0.92rem);
  font-weight: 500;
  line-height: 1.25;
  outline: none;
}

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

select {
  appearance: none;
  background-color: rgba(2, 9, 10, 0.44);
  background-image:
    linear-gradient(45deg, transparent 50%, var(--accent) 50%),
    linear-gradient(135deg, var(--accent) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 12px) 50%;
  background-repeat: no-repeat;
  background-size:
    6px 6px,
    6px 6px;
  padding-right: 2.3rem;
  cursor: pointer;
}

select option {
  color: #10191b;
  background: #f4fbfa;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(38, 188, 234, 0.16);
}

input::placeholder,
textarea::placeholder {
  color: rgba(169, 199, 196, 0.68);
}

.is-invalid {
  border-color: #ff8e7d;
  box-shadow: 0 0 0 4px rgba(255, 142, 125, 0.14);
}

.field-error {
  min-height: 1rem;
  margin: 0;
  color: var(--danger);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.25;
}

.field-format {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.form-actions {
  display: flex;
}

.add-button,
.remove-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-family: inherit;
  font-size: clamp(0.8rem, 1.7dvh, 0.92rem);
  font-weight: 700;
  cursor: pointer;
  transition: background 160ms ease, opacity 160ms ease, transform 160ms ease;
}

.add-button {
  width: 100%;
  border: 1px dashed var(--accent);
  background: rgba(38, 188, 234, 0.08);
  color: var(--accent);
  padding: 0.8rem 1rem;
}

.add-button:hover,
.remove-button:hover {
  background: rgba(38, 188, 234, 0.16);
}

.remove-button {
  border: 1px solid rgba(255, 180, 169, 0.3);
  background: rgba(255, 180, 169, 0.08);
  color: var(--danger);
  padding: 0.55rem 0.85rem;
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.25rem;
}

.status-message {
  min-height: 1.5rem;
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.status-message.is-error {
  color: var(--danger);
}

.status-message.is-success {
  color: var(--success);
}

.submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 240px;
  min-height: clamp(42px, 4.3dvh, 48px);
  border: 0;
  border-radius: 6px;
  padding: clamp(0.42rem, 0.8dvh, 0.75rem) 1.1rem;
  color: #061416;
  background: var(--accent-gradient);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: clamp(0.8rem, 1.7dvh, 0.92rem);
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.submit-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(38, 188, 234, 0.2);
}

.submit-button:disabled,
.add-button:disabled,
.remove-button:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: min(960px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0.9rem 0 1.15rem;
  color: rgba(169, 199, 196, 0.76);
  font-size: 0.82rem;
}

.site-footer img {
  width: 96px;
  height: auto;
  opacity: 0.9;
}

@media (max-width: 720px) {
  .two-columns,
  .form-footer,
  .card-header {
    grid-template-columns: 1fr;
    display: grid;
  }

  .card-header,
  .form-footer {
    justify-content: stretch;
  }

  .submit-button {
    width: 100%;
    min-width: 0;
  }

  .remove-button {
    width: 100%;
  }
}
