/* modal.css */

.hidden {
  display: none !important;
}

#call, #estimate {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.64);
  z-index: 1050;
}

.modal-dialog {
  width: 100%;
  max-width: 720px;
  margin: 0;
}

.modal-content {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: #29282D;
  color: #F6F6F6;
  border: 0;
  border-radius: 0px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0,0,0,0.65);
}

.modal-content > div:first-child {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 18px;
  background: transparent;
}

.modal-content > div:first-child svg {
  width: 26px;
  height: 26px;
  cursor: pointer;
  opacity: .95;
  transition: transform .14s ease, opacity .12s ease;
}

.modal-content > div:first-child svg:hover {
  transform: rotate(20deg) scale(1.02);
  opacity: 1;
}

.modal-body {
  padding: 28px;
  background: transparent;
  color: #F6F6F6;
  font-family: 'Roboto Flex';
}

.modal-body p:first-child {
  margin: 0 0 8px 0;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: .4px;
  text-transform: uppercase;
}

.modal-body p:nth-child(2) {
  margin: 0 0 18px 0;
  font-size: 0.875rem;
  color: #CFCFCF;
  font-weight: 300;
}

.field-label {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: #CFCFCF;
  font-weight: 500;
}

input[type="text"], input[type="tel"], input[type="email"], input[type="number"] {
  display: block;
  width: 100%;
  padding: 12px 14px;
  margin-top: 0.5rem;
  border: 0;
  border-radius: 2px;
  background: #FFFFFF;
  color: #222;
  font-size: 0.9375rem;
  outline: none;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.95);
}

input[type="text"]:focus, input[type="tel"]:focus, input[type="email"]:focus, input[type="number"]:focus {
  box-shadow: 0 0 0 3px rgba(75,57,255,0.12);
}

.invalid {
  border: 2px solid #FF6B6B !important;
}

.field-error {
  display: none;
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: #FF6B6B;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 0.75rem;
  user-select: none;
}

.form-check-input {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  margin: 0;
  border: 2px solid #BFBFBF;
  border-radius: 2px;
  background: transparent;
  position: relative;
  cursor: pointer;
  flex: 0 0 18px;
}

.form-check-input:checked {
  background: #fff;
  border-color: #fff;
}

.form-check-input:checked::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 7px;
  height: 10px;
  border: solid #29282D;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.form-check-label {
  color: #CFCFCF;
  font-size: 0.875rem;
  line-height: 1.2;
  cursor: pointer;
}

.form-check-label a {
  color: #CFCFCF;
  text-decoration: underline;
}

.modal-content > div:last-child {
  padding: 18px 28px;
  display: flex;
  justify-content: flex-start;
  background: transparent;
}

:focus {
  outline: none;
}

button:focus, input:focus, a:focus {
  box-shadow: 0 0 0 3px rgba(75,57,255,0.12);
}

@media (max-width: 560px) {
  .modal-body {
    padding: 20px;
  }
}

@media (max-width: 560px) {
  .modal-content > div:last-child {
    padding: 14px 18px;
  }
}

@media (max-width: 560px) {
  .modal-body p:first-child {
    font-size: 1.25rem;
  }
}

