/* Procom Dealer Information Pack - CSS Styles */
/* Orange Gradient Theme: #E05B0F to #C24E0C — brand tokens from procom-ds.css */



:root {
  --dealer-brand: linear-gradient(135deg, var(--procom-orange), var(--orange-600));
  --dealer-brand-solid: var(--procom-orange);
  --dealer-accent: var(--orange-600);
  --dealer-muted: var(--ink-900);
  --dealer-bg: linear-gradient(135deg, var(--orange-50) 0%, var(--orange-50) 100%);
  --dealer-card: var(--white);
  --dealer-card-hover: var(--grey-50);
  --dealer-border: var(--grey-200);
  --dealer-shadow: 0 10px 25px -5px color-mix(in srgb, var(--true-black) 10%, transparent), 0 4px 6px -2px color-mix(in srgb, var(--true-black) 5%, transparent);
  --dealer-shadow-hover: 0 20px 40px -10px color-mix(in srgb, var(--true-black) 15%, transparent), 0 8px 16px -4px color-mix(in srgb, var(--true-black) 10%, transparent);
  --dealer-max-width: 1350px;
  font-family: 'ArialRounded', sans-serif;
}


/* Main Container */
.dealer-wrap {
  max-width: var(--dealer-max-width);
  margin: 0 auto;
  padding: 40px 24px;
}

/* Progress Bar */
.dealer-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--dealer-brand);
  z-index: 1000;
  transition: width 0.3s ease;
  width: 0;
}

/* Header Styles */
.dealer-header {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-bottom: 48px;
  position: relative;
}

.dealer-logo {
  width: 80px;
  height: 80px;
  background: var(--dealer-brand);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 24px;
  box-shadow: var(--dealer-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dealer-logo:hover {
  transform: translateY(-2px);
  box-shadow: var(--dealer-shadow-hover);
}

.dealer-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  /* FA-955: Boris Black Bloxx has one weight; a bold one is the browser's smear. */
  font-weight: var(--fw-regular);
  margin: 0;
  background: var(--dealer-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: var(--font-heading);
  letter-spacing: 1.5px;
}

.dealer-lead {
  color: var(--dealer-muted);
  margin-top: 8px;
  font-size: 1.1rem;
  max-width: 600px;
}

/* Grid Layout */
.dealer-grid {
  display: grid;
  grid-template-columns: 1fr 600px;
  gap: 32px;
  margin-top: 32px;
  /* FA-954: each card as tall as what it holds, never stretched to its neighbour. */
  align-items: start;
}

/* Card Styles */
.dealer-card {
  background: var(--dealer-card);
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--dealer-shadow);
  border: 1px solid var(--dealer-border);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.dealer-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--dealer-shadow-hover);
  /* background: var(--dealer-card-hover); */
}

.dealer-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--dealer-brand);
}

.dealer-card2{
    background: var(--dealer-card);
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--dealer-shadow);
  border: 1px solid var(--dealer-border);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.dealer-card2:hover {
  transform: translateY(-4px);
  box-shadow: var(--dealer-shadow-hover);
  /* background: var(--dealer-card-hover); */
}
.dealer-card2::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--dealer-brand);
}




.dealer-documents-card {
  margin-top: 20px;
  height: 19rem !important;
}

/* Section Styles */
.dealer-section2 + .dealer-section2 {
  margin-top: 28px;
}

.dealer-section2-title {
  margin: 0 0 16px 0;
  font-size: 1.25rem;
  /* FA-955: the house heading — the heading token at 400, in brand black. */
  font-weight: var(--fw-regular);
  color: var(--black);
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  letter-spacing: 1.5px;
}

.dealer-section2-title::before {
  content: '';
  width: 4px;
  height: 20px;
  background: var(--dealer-accent);
  border-radius: 2px;
}

/* Benefits List */
.dealer-benefits {
  padding-left: 0;
  list-style: none;
  margin: 0;
}

.dealer-benefits li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 12px;
  color: var(--black);
  transition: color 0.2s ease;
}

.dealer-benefits li:hover {
  color: var(--black);
}

.dealer-benefits li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  background: var(--dealer-brand);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}

.dealer-documents-list {
  font-size: 0.9rem;
}

/* Table Styles */
.dealer-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px color-mix(in srgb, var(--true-black) 10%, transparent);
}

.dealer-table th,
.dealer-table td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid var(--grey-100);
}

.dealer-table th {
  background: linear-gradient(135deg, var(--grey-50), var(--grey-100));
  font-weight: 600;
  color: var(--text-body);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dealer-table td {
  transition: background-color 0.2s ease;
}

.dealer-table tr:hover td {
  background-color: var(--grey-50);
}

/* Ordered List */
.dealer-ordered-list {
  color: var(--dealer-muted);
  padding-left: 20px;
  margin: 0;
}

.dealer-ordered-list li {
  margin-bottom: 8px;
    line-height: 24px;
}

.dealer-ordered-list li:last-child {
  margin-bottom: 0;
}

/* Highlight Box */
.dealer-highlight {
  /* background: linear-gradient(135deg, rgba(247,127,42,0.08), rgba(255,88,0,0.06)); */
  padding: 24px;
  border-radius: 12px;
  border: 2px solid var(--procom-orange);
  position: relative;
}

.dealer-highlight::before {
  content: '⭐';
  position: absolute;
  top: -10px;
  right: 20px;
  background: var(--dealer-brand);
  padding: 8px;
  border-radius: 50%;
  font-size: 16px;
}

.dealer-checklist {
      display: flex;
    flex-direction: column;
    gap: 0px;
}

.dealer-check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 8px;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

.dealer-check:hover {
  background-color: color-mix(in srgb, var(--white) 50%, transparent);
}

.dealer-check input[type="checkbox"] {
  width: 18px;
    height: 18px;
    accent-color: var(--procom-orange);
}

.dealer-criteria-note {
  margin-top: 16px;
  padding: 12px;
  background: color-mix(in srgb, var(--white) 70%, transparent);
  border-radius: 8px;
}

/* Form Styles */
.dealer-form {
  margin: 0;
}

.dealer-fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

.dealer-form-intro {
  margin-bottom: 24px;
}

.dealer-form-row {
  display: flex;
    justify-content: center;
    align-items: end;
    gap: 16px;
    margin-bottom: 16px;
}

.dealer-commitment-grid {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.dealer-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 14px;
  margin-bottom: 8px;
  color: var(--black);
}

.dealer-textarea-label {
  margin-top: 20px;
}

.dealer-input,
.dealer-select,
.dealer-textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 2px solid var(--grey-200);
  background: var(--white);
  font-size: 0.95rem;
  transition: all 0.2s ease;
  font-family: inherit;
  margin-top: 3px;
}

.dealer-input:focus,
.dealer-select:focus,
.dealer-textarea:focus {
  outline: none;
  border-color: var(--dealer-brand-solid);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--orange-400) 10%, transparent);
  transform: translateY(-1px);
}

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

/* Form Field States */
.dealer-field-focused {
  transform: translateY(-2px);
  transition: transform 0.2s ease;
}

.dealer-field-valid {
  border-color: var(--success);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--success) 10%, transparent);
}

.dealer-error {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 10%, transparent);
}

/* Form Section Titles */
.dealer-form-section-title {
  margin: 24px 0 16px 0;
  color: var(--dealer-brand-solid);
  font-size: 1.1rem;
  font-family: var(--font-heading);
  font-weight: var(--fw-regular);
}

/* Checkbox Group */
.dealer-checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 8px 0 16px 0;
}

.dealer-checkbox-label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 0.9rem;
  cursor: pointer;
}

/* Button Styles */
.dealer-btn {
  background: var(--dealer-brand);
  color: white;
  padding: 14px 28px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: var(--dealer-shadow);
  font-family: inherit;
}

.dealer-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--dealer-shadow-hover);
}

.dealer-btn:active {
  transform: translateY(0);
}

.dealer-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.dealer-btn-loading {
  background: linear-gradient(135deg, var(--success), var(--success-text));
}

.dealer-btn-success {
  background: linear-gradient(135deg, var(--success), var(--success-text));
}

.dealer-submit-section {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Success Message */
.dealer-success-message {
  background: linear-gradient(135deg, color-mix(in srgb, var(--success) 10%, transparent), color-mix(in srgb, var(--success) 5%, transparent));
  border: 2px solid var(--success);
  border-radius: 12px;
  padding: 20px;
  margin-top: 16px;
  text-align: center;
}

.dealer-success-title {
  color: var(--success-text);
  margin: 0 0 8px 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.dealer-success-text {
  margin: 0;
  color: var(--text-body);
}

/* Text Styles */
.dealer-small {
  font-size: 16px;
  color: var(--dealer-muted);
  line-height: 1.4;
}

.dealer-muted-text {
      color: var(--dealer-muted);
    font-size: 16PX;
    line-height: 24px;
  
}

.dealer-document-note {
  margin-top: 16px;
  padding: 12px;
  background: var(--grey-50);
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--dealer-muted);
}

/* Footer Styles */
.dealer-footer {
  margin-top: 48px;
  text-align: center;
  color: var(--dealer-muted);
  font-size: 0.9rem;
  padding: 24px;
  background: color-mix(in srgb, var(--white) 60%, transparent);
  border-radius: 12px;
  border: 1px solid var(--dealer-border);
}

.dealer-footer-brand {
  margin-bottom: 8px;
}

.dealer-footer-contact {
  margin-bottom: 4px;
}

.dealer-footer-tagline {
  font-size: 0.8rem;
}

.dealer-footer a {
  color: var(--dealer-brand-solid);
  text-decoration: none;
  font-weight: 500;
}

.dealer-footer a:hover {
  text-decoration: underline;
}

/* Animations */
@keyframes dealerFadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dealer-card {
  animation: dealerFadeInUp 0.6s ease-out;
}

.dealer-card:nth-child(2) {
  animation-delay: 0.1s;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .dealer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .dealer-wrap {
    padding: 24px 16px;
  }
  
  .dealer-header {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  
  /* FA-954: no fixed heights — at 390 px they left 2 700 px of blank card before the form. */
  .dealer-card {
    padding: 24px;
  }
  
  .dealer-title {
    font-size: 1.8rem;
  }
  
}

@media (max-width: 560px) {
  .dealer-form-row {
    grid-template-columns: 1fr;
  }
  
  .dealer-checkbox-group {
    flex-direction: column;
    gap: 8px;
  }
  
  .dealer-logo {
    width: 60px;
    height: 60px;
    font-size: 20px;
  }
  .dealer-card:nth-child(2) {
    animation-delay: 0.1s;
}
}
/* PUBLIC-LINKS-AUDIT §1.5 (22 Oct 2026): what the server refused, above the form. */
.dealer-errors {
  border: var(--bw-hair) solid var(--danger);
  border-radius: 8px;
  padding: 12px 16px;
  margin: 0 0 16px 0;
  color: var(--danger-text);
}

.dealer-errors p { margin: 0 0 4px 0; font-weight: 600; }

.dealer-errors ul { margin: 0; padding-left: 20px; }

/* Honeypot: off-screen rather than display:none, which some bots skip. */
.dealer-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* FA-944: the lasting thank-you in the form's place, and each refusal under its box. */
.dealer-sent { border-left: 3px solid var(--success); background: var(--surface-sunken); border-radius: var(--radius-sm); padding: var(--space-5); }
.dealer-sent-title { font-family: var(--font-heading); font-weight: var(--fw-regular); font-size: 22px; color: var(--text-strong); margin: 0 0 var(--space-2); }
.dealer-sent-text { font-size: var(--fs-body); line-height: var(--lh-relaxed); color: var(--text-body); margin: 0; }
.dealer-field-error { display: block; margin-top: var(--space-1); font-size: 13px; font-weight: var(--fw-regular); color: var(--danger-text); }

/* FA-954: the way to the form from the top of the information pack. */
.dealer-apply-link { display: inline-block; margin-top: var(--space-3); font-weight: var(--fw-bold); color: var(--text-accent); text-decoration: underline; }
