* {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  --page-bg: #f7f0e7;
  --card-bg: #0b0d11;
  --input-bg: #191e28;
  --input-border: #343c4d;
  --text-main: #f7f8fb;
  --text-muted: #aeb7ca;
  --accent: #ff5722;
}

.sell_sec {
    background: var(--ink);
    color: #fff;
    border-radius: 20px;
    /* padding: 38px 42px; */
    /* margin-top: 40px; */
    display: inline-block;
    width: 100%;
    margin-bottom: 25px;
}
.footer-bottom {
    margin-top: 0 !important;
}
.form-card {
    width: 94%;
    max-width: 82.5% !important;
    margin-top: 59px !important;
    margin: 0 auto;
    padding: 30px !important;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 20px;
    background: linear-gradient(145deg, #101216 0%, var(--card-bg) 58%, #111318 100%);
    box-shadow: 0 24px 55px rgba(0,0,0,.16);
}

.form-header {
    margin-bottom: 0 !important;
    padding-bottom: 0;
    padding-left: 42px;
    padding-top: 40px;
    border-radius: 20px;
}

.form-header h1 {
    margin: 0 0 14px;
    font-size: 22px;
    line-height: 1.12;
    letter-spacing: -0.04em;
    font-weight: 700;
}

.form-header p {
  max-width: 650px;
  margin: 0;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.35;
  letter-spacing: -0.025em;
}

.field {
  margin-bottom: 23px;
}

.field label {
  display: block;
  margin: 0 0 9px;
  color: #b8c0d2;
  font-size:11px;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: .045em;
  font-weight: 750;
}

.field input, .field select, .field textarea {
    display: block;
    width: 100%;
    border: 2px solid var(--input-border);
    border-radius: 16px;
    outline: none;
    padding: 14px 14px;
    background: var(--input-bg);
    color: var(--text-main);
    font: inherit;
    font-size: 14px;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
form#deviceForm {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    gap: 12px;
}
.field select {
  appearance: none;
  padding-right: 54px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%23f7f8fb' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 22px center;
}

.field select:invalid {
  color: var(--text-muted);
}

.field input::placeholder,
.field textarea::placeholder {
  color: #b0b8c8;
  opacity: 1;
}

.field textarea {
    min-height: 51px;
    resize: vertical;
    height: 51px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255,87,34,.17);
}

.field small {
  display: block;
  margin: 8px 2px 0;
  color: var(--text-muted);
  font-size: .98rem;
  line-height: 1.45;
}

.submit-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: 100%;
    position: relative;
    min-height: 52px;
    top: -22px;
    height: 52px;
    margin-top: 0;
    padding: 16px 20px;
    border: 0;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(100deg, #ff6428 0%, #ff4d1c 100%);
    font: inherit;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}

.submit-button span {
    font-size: 16px;
    line-height: 1;
}

.submit-button:hover {
  filter: brightness(1.07);
  box-shadow: 0 10px 28px rgba(255,87,34,.2);
}

.submit-button:active {
  transform: translateY(1px) scale(.995);
}

.submit-button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

.disclaimer {
  margin: 17px 0 0;
  color: var(--text-muted);
  text-align: center;
  font-size: 1rem;
  line-height: 1.5;
}

.form-message {
  display: none;
  margin: 16px 0 0;
  color: #ffd0bd;
  text-align: center;
  line-height: 1.5;
}

.form-message.visible {
  display: block;
}

@media (min-width: 1100px) {
  .page {
    padding-top: 18px;
  }

  .form-card {
    padding: 58px 46px 30px;
  }
}


@media (max-width: 600px) {
  .page {
    padding: 12px 12px 28px;
  }

  .form-card {
    padding: 30px 20px 23px;
    border-radius: 25px;
  }

  .form-header {
    margin-bottom: 24px;
  }


  .field {
    margin-bottom: 19px;
  }



  .field select {
    padding-right: 42px;
    background-position: right 14px center;
  }

  .field textarea {
    min-height: 100px;
  }

  .field small {
    font-size: .82rem;
  }



  .disclaimer {
    font-size: .9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
@media only screen and (max-width: 1024px) {


form#deviceForm {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 12px;
}
}


@media only screen and (max-width: 767px) {

.form-card {
    width: 94%;
    max-width: 92.5% !important;
   
}
form#deviceForm {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.quote-panel .btn-primary {
    top: 0px !important;
}

.form-header p {
    font-size: 14px;
}
.form-header {
    margin-bottom: 0 !important;
    padding-bottom: 0;
    padding: 22px 22px 0px 22px;
       border-radius: 20px;
}
form#deviceForm {
    margin-top: 0;
}

}



@media only screen and (max-width: 580px) {

.form-card {
    width: 94%;
    max-width: 92.5% !important;
   
}
a.btn.btn-primary {
    width: 95%;
}
form#deviceForm {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}
}