
/* ==========================================
   APPOINTMENT FORM - PREMIUM AUTOMOTIVE UI
========================================== */

.appointment-request-form div.form-group-custom div.form-group-custom {
  --appointment-primary: #c61f26;
  --appointment-primary-dark: #e99a12;
  --appointment-dark: #20242b;
  --appointment-muted: #777f8a;
  --appointment-border: #e4e7ec;
  --appointment-input: #f5f6f8;

  max-width: 100%;
  margin: 30px auto;
  padding: 30px;
  background: #fff;
  border: 1px solid var(--appointment-border);
  border-radius: 18px;
  box-shadow: 0 12px 45px rgba(20, 30, 45, .07);
  color: var(--appointment-dark);
  font-family: inherit;
}

/* Heading */

.appointment-request-form div.form-group-custom div.form-group-custom .appointment-heading {
  font-size: 25px;
  font-weight: 750;
  letter-spacing: -.5px;
  margin-bottom: 10px;
  color: var(--appointment-dark);
}

.appointment-request-form div.form-group-custom .required-note {
  font-size: 12px;
  color: var(--appointment-muted);
  margin-bottom: 25px;
}

.appointment-request-form div.form-group-custom .required-note span {
  color: #e33b35;
}

/* Sections */

.appointment-request-form div.form-group-custom fieldset {
  margin: 0 0 25px;
  padding: 22px;
  border: 1px solid var(--appointment-border);
  border-radius: 13px;
  background: #fff;
  transition: border-color .25s ease;
}

.appointment-request-form div.form-group-custom fieldset:hover {
  border-color: #d5d9df;
}

.appointment-request-form div.form-group-custom legend {
  padding: 0 10px;
  font-size: 16px;
  font-weight: 750;
  color: var(--appointment-dark);
}

/* Field layout */

.appointment-request-form div.form-group-custom .fieldset-wrapper {
  /*display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  */  
  column-gap: 18px;
  row-gap: 5px;
}

.appointment-request-form div.form-group-custom .form-item {
  min-width: 0;
  margin-bottom: 14px;
}

.appointment-request-form div.form-group-custom label {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 700;
/*  color: #303640;*/
}

/* Input fields */

.appointment-request-form div.form-group-custom input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.appointment-request-form div.form-group-custom select,
.appointment-request-form div.form-group-custom textarea {
  width: 100%;
  min-height: 45px;
  padding: 11px 14px;
  border: 1px solid #dfe3e8;
  border-radius: 8px;
  background: var(--appointment-input);
  color: #252a32;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: all .25s ease;
}

.appointment-request-form div.form-group-custom input:focus,
.appointment-request-form div.form-group-custom select:focus,
.appointment-request-form div.form-group-custom textarea:focus {
  background: #fff;
  border-color: var(--appointment-primary);
  box-shadow: 0 0 0 3px rgba(255,181,46,.15);
}

.appointment-request-form div.form-group-custom textarea {
  min-height: 110px;
  resize: vertical;
}

.appointment-request-form div.form-group-custom input::placeholder,
.appointment-request-form div.form-group-custom textarea::placeholder {
  color: #9aa0a9;
}

/* Help text */

.appointment-request-form div.form-group-custom .description {
  margin-top: 6px;
  color: #858b95;
  font-size: 11px;
  line-height: 1.5;
}

/* Contact and checkbox selections */

.appointment-request-form div.form-group-custom .form-radios,
.appointment-request-form div.form-group-custom .form-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.appointment-request-form div.form-group-custom .form-type-radio,
.appointment-request-form div.form-group-custom .form-type-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid #dfe3e8;
  border-radius: 7px;
  background: #f6f7f9;
  transition: all .2s ease;
}

.appointment-request-form div.form-group-custom .form-type-radio:hover,
.appointment-request-form div.form-group-custom .form-type-checkbox:hover {
  border-color: var(--appointment-primary);
  background: #fff9ed;
}

.appointment-request-form div.form-group-custom .form-type-radio input,
.appointment-request-form div.form-group-custom .form-type-checkbox input {
  accent-color: #cd2027;
  cursor: pointer;
}

.appointment-request-form div.form-group-custom .form-type-radio label,
.appointment-request-form div.form-group-custom .form-type-checkbox label {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

/* VIN decode */

.appointment-request-form div.form-group-custom .decode-vin-button {
  padding: 10px 19px;
  color: #a86600;
  background: #fffaf0;
  border: 1px solid var(--appointment-primary);
  border-radius: 30px;
  font-weight: 700;
  cursor: pointer;
  transition: all .25s ease;
}

.appointment-request-form div.form-group-custom .decode-vin-button:hover {
  color: #fff;
  background: var(--appointment-primary-dark);
  transform: translateY(-2px);
}

.appointment-request-form div.form-group-custom .vin-status {
  color: #777;
  font-size: 12px;
}

/* Vehicle damage section */

.appointment-request-form div.form-group-custom .damage-section {
  background: #fafbfc;
}

.appointment-request-form div.form-group-custom .damage-visual {
  padding: 22px;
  background: #f0f2f5;
  border: 1px solid #e0e3e8;
  border-radius: 13px;
  overflow: hidden;
}

.appointment-request-form div.form-group-custom .damage-view-label {
  margin: 10px 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #858b95;
  text-align: center;
}

.appointment-request-form div.form-group-custom .vehicle-svg {
  width: 100%;
  max-height: 230px;
  display: block;
  overflow: visible;
}

.appointment-request-form div.form-group-custom .vehicle-body {
  fill: #fff;
  stroke: #aeb5bf;
  stroke-width: 2;
}

.appointment-request-form div.form-group-custom .vehicle-window {
  fill: #e1e7ed;
  stroke: #b5bdc8;
}

.appointment-request-form div.form-group-custom .wheel {
  fill: #dfe3e8;
  stroke: #aeb5bf;
}

.appointment-request-form div.form-group-custom .damage-hotspot {
  fill: rgb(244 161 190 / 15%);
  stroke: #cfb6bd;
  stroke-width: 1.5;
  cursor: pointer;
  transition: all .2s ease;
}

.appointment-request-form div.form-group-custom .damage-hotspot:hover {
  fill: rgb(185 128 146 / 50%);
  stroke: #cfb6bd;
}

.appointment-request-form div.form-group-custom .damage-hotspot.is-selected {
  fill: rgba(225, 45, 45, .45);
  stroke: #cfb6bd;
  stroke-width: 2.5;
}

.appointment-request-form div.form-group-custom .damage-side-views {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 10px;
}

.appointment-request-form div.form-group-custom .damage-instructions {
  color: #7b818b;
  font-size: 12px;
  text-align: center;
}

/* Scheduling cards */

.appointment-request-form div.form-group-custom .schedule-mode-options .form-radios {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.appointment-request-form div.form-group-custom .schedule-mode-options .form-type-radio {
  position: relative;
  display: flex;
  min-height: 75px;
  align-items: center;
  padding: 16px;
  border: 1px solid #dce0e5;
  border-radius: 10px;
  background: #f3f4f6;
  cursor: pointer;
  transition: all .25s ease;
}

.appointment-request-form div.form-group-custom .schedule-mode-options .form-type-radio:has(input:checked) {
  background: #cd1e25;
  border: 1px solid var(--appointment-primary);
  box-shadow: 0 4px 15px rgba(255,181,46,.12);
  color:#fff;
}

.appointment-request-form div.form-group-custom .schedule-mode-options .form-type-radio:hover {
  transform: translateY(-2px);
}

.appointment-request-form div.form-group-custom .schedule-mode-options label {
  font-size: 13px;
  font-weight: 750;
}

/* Date and time */

.appointment-request-form div.form-group-custom .appointment-date,
.appointment-request-form div.form-group-custom .appointment-time {
  min-height: 48px;
}

.appointment-request-form div.form-group-custom .timezone-note {
  font-size: 11px;
  color: #9298a1;
  letter-spacing: .7px;
  font-weight: 700;
}

/* Photo upload */

.appointment-request-form div.form-group-custom .appointment-photos {
  padding: 18px;
  background: #fafbfc;
  border: 1px dashed #c8cdd5;
  border-radius: 12px;
  transition: all .2s ease;
}

.appointment-request-form div.form-group-custom .appointment-photos:hover {
  border-color: var(--appointment-primary);
  background: #fffaf0;
}

/* Submit button */

.appointment-request-form div.form-group-custom .appointment-submit {
  width: 100%;
  min-height: 52px;
  padding: 14px 25px;
  margin-top: 12px;
  color: #1d2025;
  background: linear-gradient(135deg, #ffc44d, #ffad21);
  border: none;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .2px;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(255,181,46,.22);
  transition: all .25s ease;
}

.appointment-request-form div.form-group-custom .appointment-submit:hover {
  background: linear-gradient(135deg, #f5ad2b, #e9950d);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255,181,46,.3);
}

/* Validation messages */

.appointment-request-form div.form-group-custom .form-item--error-message,
.appointment-request-form div.form-group-custom .messages--error {
  color: #d93025;
  font-size: 12px;
}

.appointment-request-form div.form-group-custom input.error,
.appointment-request-form div.form-group-custom select.error,
.appointment-request-form div.form-group-custom textarea.error {
  border-color: #e34c4c;
  background: #fffafa;
}

/* Responsive */

@media (max-width: 768px) {
  .appointment-request-form div.form-group-custom {
    padding: 18px;
    border-radius: 12px;
  }

  .appointment-request-form div.form-group-custom .fieldset-wrapper {
    grid-template-columns: 1fr;
  }

  .appointment-request-form div.form-group-custom .damage-side-views {
    grid-template-columns: 1fr;
  }

  .appointment-request-form div.form-group-custom .schedule-mode-options .form-radios {
    grid-template-columns: 1fr;
  }

  .appointment-request-form div.form-group-custom .vehicle-svg {
    max-height: 180px;
  }
}

@media (max-width: 480px) {
  .appointment-request-form div.form-group-custom {
    padding: 12px;
  }

  .appointment-request-form div.form-group-custom fieldset {
    padding: 14px;
  }

  .appointment-request-form div.form-group-custom .appointment-heading {
    font-size: 21px;
  }

  .appointment-request-form div.form-group-custom .damage-visual {
    padding: 10px;
  }
}

/* =================================
   BUSINESS REQUEST INFORMATION CARD
================================= */


.business-request-card {
  max-width: 600px;
  margin: 0 auto 20px;
  padding: 26px 30px;
  background: #fff;
  border: 1px solid #dedfe2;
  border-radius: 22px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, .025);
  color: #191b20;
}

/* Company heading */

.business-card-title {
  margin: 0 0 20px;
  color: #17191e;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.8px;
}

/* Business information */

.business-info-row {
  display: flex;
  align-items: center;
  gap: 18px;
 /* margin-bottom: 25px;
  font-size: 23px;
  font-weight: 400;
  line-height: 1.5;*/
}

.business-info-row a {
  color: #191b20;
  text-decoration: none;
  transition: color .2s ease;
}

.business-info-row a:hover {
  color: #e99a12;
}

.business-icon {
  flex: 0 0 20px;
  color: #cd2027;
  font-size: 20px;
  font-weight: 700;
  text-align: center;
}

/* Divider */

.business-divider {
  margin: 10px 0 10px;
  border: 0;
  border-top: 1px solid #dedfe2;
}

/* Link headings */

.share-link-label {
  margin: 0 0 8px;
  color: #737373;
  font-size: 14px;
  font-weight: 750;
/*  line-height: 1.4;*/
}

/* Share URL boxes */

.share-link-box {
  width: 100%;
  margin-bottom: 20px;
  padding: 12px 10px;
  overflow-wrap: anywhere;
  word-break: break-word;
  background: #fff;
  border: 1.5px solid #dedfe2;
  border-radius: 16px;
  color: #202229;
  font-family: monospace;
  font-size: 15px;
  line-height: 1.55;
  transition: border-color .2s ease,
              box-shadow .2s ease;
}

.share-link-box:hover {
  border-color: #f5ad25;
  box-shadow: 0 3px 12px rgba(245, 173, 37, .08);
}

/* Description */

.share-link-description {
  margin: 0;
  color: #777;
  font-size: 12px;
/*  line-height: 1.65;*/
}

/* Responsive */

@media (max-width: 768px) {
  .business-request-card {
    padding: 30px 25px;
    border-radius: 16px;
  }

  .business-card-title {
    font-size: 27px;
  }

  .business-info-row {
    font-size: 19px;
    gap: 14px;
  }

  .share-link-label {
    font-size: 12px;
  }

  .share-link-box {
    padding: 14px;
    font-size: 15px;
  }

  .share-link-description {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .business-request-card {
    padding: 24px 18px;
  }

  .business-card-title {
    font-size: 23px;
  }

  .business-info-row {
    font-size: 17px;
  }
}


.appointment-section {
  display: flex;
  flex-direction: column;
}

/* Ensure the fieldset legend (title) spans full width and sits on top */
.appointment-section > legend {
  display: block;
  width: 100%;
  float: none;
  margin-bottom: 1rem;
}

.appointment-request-form div.form-group-custom{
  padding: 48px 60px;
  background: #fff;
  border: 1px solid #dedfe2;
  border-radius: 22px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, .025);
  color: #191b20;
}
/* Sticky Business Information Card */
.business-request-card {
    position: sticky;
    position: -webkit-sticky;
    top: 25px;
    align-self: start;
    z-index: 10;
}

/* Mobile: disable sticky */
@media (max-width: 768px) {
    .business-request-card {
        position: relative;
        top: auto;
    }
}

#appointment-form-request .vehicle-diagram-container {
    width: 100%;
    text-align: center;
    margin: 15px 0;
}

#appointment-form-request .vehicle-type-image {
    display: block;
    width: 100%;
    max-width: 900px;
    height: auto;
    margin: auto;
    object-fit: contain;
    transition: opacity .2s ease;
}
