
/* ==========================================================
   VIJAY ENTERPRISES
   CONTACT & PROJECT ENQUIRY SECTION

   Website:
   https://vijayenterprises1986.in/

   Dependencies:
   - sections/contact.html
   - js/contact.js
   - css/style.css

   Existing design preserved:
   - Royal-blue section background
   - Two-column desktop layout
   - Left-side contact information
   - Right-side white enquiry form
   - Navy-blue form controls
   - Gold accent details

   Improvements:
   - Responsive contact details
   - Better phone-number wrapping
   - Accessible form controls
   - Clear validation messages
   - Improved mobile readability
   - Minimum 44px interaction targets
   - Reduced-motion support

   IMPORTANT:
   CSS does not submit enquiries.

   The existing mailto workflow remains
   active until a verified backend endpoint
   is integrated.
========================================================== */


/* ==========================================================
   01. SECTION VARIABLES
========================================================== */

.ve-contact {
  --contact-blue: #203f83;
  --contact-dark: #112b48;
  --contact-gold: #e6c28d;
  --contact-white: #ffffff;

  --contact-muted: #e2e9f6;
  --contact-border: #dae2ee;

  --contact-error: #b42318;
  --contact-focus: #203f83;

  position: relative;

  width: 100%;

  padding: 62px 0 67px;

  color: var(--contact-white);
  background: var(--contact-blue);

  font-family: "Inter", sans-serif;

  scroll-margin-top: 95px;
}

.ve-contact,
.ve-contact *,
.ve-contact *::before,
.ve-contact *::after {
  box-sizing: border-box;
}


/* ==========================================================
   02. SECTION CONTAINER
========================================================== */

.ve-contact .ve-contact-container {
  width: 100%;
  max-width: 1320px;

  margin-inline: auto;
  padding-inline: 24px;
}


/* ==========================================================
   03. MAIN TWO-COLUMN LAYOUT
========================================================== */

.ve-contact-layout {
  display: grid;

  grid-template-columns:
    minmax(0, 0.85fr)
    minmax(0, 1.15fr);

  align-items: center;

  gap: clamp(30px, 4vw, 58px);

  width: 100%;
}


/* ==========================================================
   04. LEFT CONTACT COLUMN
========================================================== */

.ve-contact-information {
  min-width: 0;
}

.ve-contact-header {
  max-width: 540px;

  margin: 0 0 28px;
}


/* ==========================================================
   05. SECTION EYEBROW
========================================================== */

.ve-contact-eyebrow {
  display: inline-flex;
  align-items: center;

  gap: 11px;

  margin-bottom: 16px;

  color: var(--contact-gold);

  font-size: 11px;
  font-weight: 750;

  line-height: 1.5;
  letter-spacing: 1.5px;
}

.ve-contact-eyebrow-line {
  display: block;

  flex: 0 0 29px;

  width: 29px;
  height: 2px;

  background: var(--contact-gold);
}


/* ==========================================================
   06. SECTION HEADING
========================================================== */

.ve-contact-header h2 {
  margin: 0 0 19px;

  color: #ffffff;

  font-family:
    "Plus Jakarta Sans", sans-serif;

  font-size: clamp(35px, 3.5vw, 49px);
  font-weight: 800;

  line-height: 1.18;
  letter-spacing: -1.9px;

  overflow-wrap: break-word;
}

.ve-contact-header h2 span {
  display: block;

  color: var(--contact-gold);
}


/* ==========================================================
   07. SECTION DESCRIPTION
========================================================== */

.ve-contact-header > p {
  max-width: 510px;

  margin: 0;

  color: var(--contact-muted);

  font-size: 15px;
  font-weight: 400;

  line-height: 1.85;
}


/* ==========================================================
   08. CONTACT DETAILS CONTAINER
========================================================== */

.ve-contact-details {
  display: flex;
  flex-direction: column;

  gap: 0;

  margin: 0;

  font-style: normal;

  border-top:
    1px solid rgba(255, 255, 255, 0.22);
}


/* ==========================================================
   09. CONTACT DETAIL ITEM
========================================================== */

.ve-contact-detail {
  display: grid;

  grid-template-columns:
    42px minmax(0, 1fr);

  align-items: center;

  gap: 14px;

  min-width: 0;

  padding: 17px 0;

  border-bottom:
    1px solid rgba(255, 255, 255, 0.22);
}


/* ==========================================================
   10. CONTACT ICON CONTAINER
========================================================== */

.ve-contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 42px;
  height: 42px;

  color: #ffffff;

  background:
    rgba(255, 255, 255, 0.11);

  border:
    1px solid rgba(255, 255, 255, 0.22);

  border-radius: 9px;
}

.ve-contact-icon svg {
  display: block;

  width: 20px;
  height: 20px;

  stroke-width: 1.75;
}


/* ==========================================================
   11. DETAIL LABEL AND VALUE
========================================================== */

.ve-contact-detail-body {
  display: grid;

  grid-template-columns:
    100px minmax(0, 1fr);

  align-items: center;

  gap: 10px;

  min-width: 0;
}

.ve-contact-detail-body h3 {
  margin: 0;

  color: #ffffff;

  font-family:
    "Plus Jakarta Sans", sans-serif;

  font-size: 13px;
  font-weight: 750;

  line-height: 1.5;
}

.ve-contact-value {
  min-width: 0;
}


/* ==========================================================
   12. CONTACT LINKS
========================================================== */

.ve-contact-value > a:not(.ve-contact-map-link) {
  display: inline-block;

  max-width: 100%;
  min-height: 35px;

  padding: 6px 0;

  color: #ffffff;

  font-size: 13px;
  font-weight: 600;

  line-height: 1.7;

  text-decoration: none;

  overflow-wrap: anywhere;

  transition:
    color 180ms ease;
}

.ve-contact-value > a:hover,
.ve-contact-value > a:focus-visible {
  color: var(--contact-gold);
}


/* ==========================================================
   13. PHONE NUMBER LIST

   Allow phone numbers to wrap gracefully.

   Important:
   Both numbers must remain completely readable
   without horizontal overflow.
========================================================== */

.ve-contact-phone-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;

  gap: 3px 9px;

  min-width: 0;

  white-space: normal;
}

.ve-contact-phone-list > a:not(.ve-contact-map-link) {
  display: inline-flex;
  align-items: center;

  flex: 0 0 auto;

  min-height: 39px;

  padding: 7px 0;

  font-size: 12.5px;
  font-weight: 650;

  line-height: 1.5;

  white-space: nowrap;
  overflow-wrap: normal;
}

.ve-contact-phone-separator {
  flex: 0 0 auto;

  color: var(--contact-gold);

  font-size: 14px;
  font-weight: 500;

  line-height: 1;
}


/* ==========================================================
   14. OFFICE ADDRESS
========================================================== */

.ve-contact-value p {
  max-width: 440px;

  margin: 0 0 7px;

  color: var(--contact-muted);

  font-size: 13px;
  font-weight: 400;

  line-height: 1.75;

  overflow-wrap: break-word;
}


/* ==========================================================
   15. DIRECTIONS LINK
========================================================== */

.ve-contact-map-link {
  display: inline-flex;
  align-items: center;

  gap: 7px;

  min-height: 35px;

  padding: 5px 0;

  color: var(--contact-gold);

  font-size: 13px;
  font-weight: 700;

  line-height: 1.5;

  text-decoration: none;

  border-bottom:
    1px solid rgba(230, 194, 141, 0.7);

  transition:
    color 180ms ease,
    border-color 180ms ease;
}

.ve-contact-map-link:hover {
  color: #ffffff;
  border-color: #ffffff;
}

.ve-contact-map-link svg {
  display: block;

  width: 16px;
  height: 16px;

  stroke-width: 1.8;
}


/* ==========================================================
   16. RIGHT FORM PANEL
========================================================== */

.ve-contact-form-panel {
  min-width: 0;

  padding: 30px;

  color: var(--contact-dark);
  background: #ffffff;

  border-radius: 12px;

  box-shadow:
    0 12px 35px rgba(9, 27, 60, 0.08);
}


/* ==========================================================
   17. FORM HEADING
========================================================== */

.ve-contact-form-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 16px;

  margin-bottom: 25px;
}

.ve-contact-form-eyebrow {
  display: block;

  margin-bottom: 7px;

  color: var(--contact-blue);

  font-size: 10px;
  font-weight: 750;

  line-height: 1.5;
  letter-spacing: 1.5px;
}

.ve-contact-form-heading h3 {
  margin: 0;

  color: var(--contact-dark);

  font-family:
    "Plus Jakarta Sans", sans-serif;

  font-size: 23px;
  font-weight: 750;

  line-height: 1.35;
  letter-spacing: -0.7px;
}


/* ==========================================================
   18. FORM HEADING ICON
========================================================== */

.ve-contact-form-symbol {
  display: grid;
  place-items: center;

  flex: 0 0 42px;

  width: 42px;
  height: 42px;

  color: var(--contact-blue);
  background: #edf2fb;

  border-radius: 9px;
}

.ve-contact-form-symbol svg {
  width: 19px;
  height: 19px;

  stroke-width: 1.7;
}


/* ==========================================================
   19. FORM ELEMENT
========================================================== */

.ve-enquiry-form {
  width: 100%;
  min-width: 0;
}


/* ==========================================================
   20. FORM GRID
========================================================== */

.ve-form-grid {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  column-gap: 17px;
  row-gap: 17px;
}

.ve-form-field {
  display: flex;
  flex-direction: column;

  min-width: 0;
}

.ve-form-field-full {
  grid-column: 1 / -1;
}


/* ==========================================================
   21. FORM LABELS
========================================================== */

.ve-form-field label {
  display: block;

  margin-bottom: 7px;

  color: var(--contact-dark);

  font-size: 13px;
  font-weight: 650;

  line-height: 1.55;
}

.ve-form-field label span {
  color: var(--contact-error);
}

.ve-form-field label small {
  color: #69778a;

  font-size: 11px;
  font-weight: 400;
}


/* ==========================================================
   22. SHARED INPUT STYLES
========================================================== */

.ve-form-field input,
.ve-form-field select,
.ve-form-field textarea {
  display: block;

  width: 100%;
  min-width: 0;
  min-height: 46px;

  margin: 0;
  padding: 11px 13px;

  color: var(--contact-dark);
  background: #ffffff;

  border: 1px solid #cad4e2;
  border-radius: 6px;

  outline: none;

  font-family: "Inter", sans-serif;

  font-size: 14px;
  font-weight: 400;

  line-height: 1.5;

  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}


/* ==========================================================
   23. INPUT PLACEHOLDERS
========================================================== */

.ve-form-field input::placeholder,
.ve-form-field textarea::placeholder {
  color: #77869a;

  opacity: 1;
}


/* ==========================================================
   24. SELECT ELEMENT
========================================================== */

.ve-form-field select {
  padding-right: 32px;

  cursor: pointer;
}

.ve-form-field select:required:invalid {
  color: #64748b;
}

.ve-form-field select option {
  color: var(--contact-dark);
  background: #ffffff;
}


/* ==========================================================
   25. TEXTAREA
========================================================== */

.ve-form-field textarea {
  min-height: 90px;
  height: 90px;
  max-height: 260px;

  resize: vertical;

  line-height: 1.6;
}


/* ==========================================================
   26. INPUT FOCUS STATES
========================================================== */

.ve-form-field input:focus,
.ve-form-field select:focus,
.ve-form-field textarea:focus {
  border-color: var(--contact-focus);

  box-shadow:
    0 0 0 3px rgba(32, 63, 131, 0.13);
}


/* ==========================================================
   27. FIELD VALIDATION STATES

   Compatible with current contact.js:
   - .is-invalid
   - aria-invalid
   - associated .ve-field-error spans
========================================================== */

.ve-form-field .is-invalid,
.ve-form-field [aria-invalid="true"] {
  border-color: var(--contact-error);
}

.ve-form-field .is-invalid:focus,
.ve-form-field [aria-invalid="true"]:focus {
  box-shadow:
    0 0 0 3px rgba(180, 35, 24, 0.13);
}


/* ==========================================================
   28. VALIDATION ERROR TEXT
========================================================== */

.ve-field-error {
  display: block;

  color: var(--contact-error);

  font-size: 12px;
  font-weight: 500;

  line-height: 1.55;

  overflow-wrap: break-word;
}

.ve-field-error:empty {
  display: none;
}

.ve-field-error:not(:empty) {
  margin-top: 6px;
}


/* ==========================================================
   29. PRIVACY NOTICE
========================================================== */

.ve-form-privacy {
  margin: 19px 0 0;

  color: #536278;

  font-size: 12px;

  line-height: 1.75;
}

.ve-form-privacy a {
  color: var(--contact-blue);

  font-weight: 700;

  text-decoration: underline;
  text-underline-offset: 3px;
}

.ve-form-privacy a:hover {
  color: var(--contact-dark);
}


/* ==========================================================
   30. FORM FOOTER
========================================================== */

.ve-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 17px;

  margin-top: 21px;
  padding-top: 17px;

  border-top: 1px solid #e2e9f2;
}


/* ==========================================================
   31. FORM DELIVERY NOTE
========================================================== */

.ve-form-footer p {
  display: flex;
  align-items: flex-start;

  gap: 8px;

  max-width: 250px;

  margin: 0;

  color: #58687d;

  font-size: 12px;

  line-height: 1.7;
}

.ve-form-footer p svg {
  flex: 0 0 16px;

  width: 16px;
  height: 16px;

  margin-top: 2px;

  color: var(--contact-blue);

  stroke-width: 1.8;
}


/* ==========================================================
   32. SUBMIT BUTTON
========================================================== */

.ve-form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;

  gap: 17px;

  flex-shrink: 0;

  min-height: 48px;

  margin: 0;
  padding: 12px 18px;

  color: #ffffff;
  background: var(--contact-blue);

  border: 1px solid var(--contact-blue);
  border-radius: 6px;

  font-family: "Inter", sans-serif;

  font-size: 13px;
  font-weight: 700;

  line-height: 1.5;

  text-decoration: none;
  text-align: center;

  cursor: pointer;

  transition:
    background-color 200ms ease,
    border-color 200ms ease;
}

.ve-form-submit svg {
  display: block;

  width: 17px;
  height: 17px;

  flex-shrink: 0;

  stroke-width: 1.8;
}

.ve-form-submit:hover:not(:disabled) {
  color: #ffffff;

  background: #152f69;
  border-color: #152f69;
}

.ve-form-submit:active:not(:disabled) {
  background: #112753;
  border-color: #112753;
}

.ve-form-submit:disabled {
  opacity: 0.65;

  cursor: not-allowed;
}


/* ==========================================================
   33. FORM STATUS MESSAGE
========================================================== */

.ve-form-status {
  margin: 15px 0 0;

  color: var(--contact-blue);

  font-size: 12px;
  font-weight: 550;

  line-height: 1.7;

  overflow-wrap: break-word;
}

.ve-form-status:empty {
  display: none;
}

.ve-form-status.is-error {
  color: var(--contact-error);
}

.ve-form-status.is-success {
  color: #166534;
}


/* ==========================================================
   34. ANTI-SPAM HONEYPOT

   Preserve original non-visible layout.

   This is not a replacement for server-side
   anti-spam protection.
========================================================== */

.ve-form-honeypot {
  position: absolute;

  width: 1px;
  height: 1px;

  padding: 0;
  margin: -1px;

  overflow: hidden;

  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);

  white-space: nowrap;

  border: 0;
}


/* ==========================================================
   35. KEYBOARD FOCUS — CONTACT LINKS
========================================================== */

.ve-contact a:focus-visible {
  outline: 3px solid var(--contact-gold);

  outline-offset: 4px;

  border-radius: 2px;
}


/* ==========================================================
   36. KEYBOARD FOCUS — FORM
========================================================== */

.ve-contact-form-panel a:focus-visible,
.ve-contact-form-panel button:focus-visible {
  outline: 3px solid var(--contact-focus);

  outline-offset: 3px;
}

.ve-form-field input:focus-visible,
.ve-form-field select:focus-visible,
.ve-form-field textarea:focus-visible {
  outline: 2px solid var(--contact-focus);

  outline-offset: 2px;
}


/* ==========================================================
   37. LAPTOP
========================================================== */

@media (max-width: 1199.98px) {

  .ve-contact {
    padding: 55px 0 60px;
  }

  .ve-contact .ve-contact-container {
    padding-inline: 20px;
  }

  .ve-contact-layout {
    grid-template-columns:
      minmax(0, 0.9fr)
      minmax(0, 1.1fr);

    gap: 25px;
  }

  .ve-contact-header h2 {
    font-size: 39px;
  }

  .ve-contact-detail-body {
    grid-template-columns:
      82px minmax(0, 1fr);

    gap: 8px;
  }

  .ve-contact-phone-list {
    gap: 3px 7px;
  }

  .ve-contact-phone-list > a:not(.ve-contact-map-link) {
    font-size: 12px;
  }

  .ve-contact-form-panel {
    padding: 25px;
  }

  .ve-form-footer {
    gap: 14px;
  }

}


/* ==========================================================
   38. TABLET
========================================================== */

@media (max-width: 991.98px) {

  .ve-contact {
    padding: 55px 0 60px;
  }

  .ve-contact-layout {
    grid-template-columns: 1fr;

    gap: 32px;
  }

  .ve-contact-information {
    display: grid;

    grid-template-columns:
      minmax(0, 0.85fr)
      minmax(0, 1.15fr);

    align-items: start;

    gap: 28px;
  }

  .ve-contact-header {
    margin-bottom: 0;
  }

  .ve-contact-header h2 {
    font-size: clamp(34px, 4.5vw, 42px);
  }

  .ve-contact-details {
    border-top: 0;
  }

  .ve-contact-detail {
    padding: 12px 0;
  }

  .ve-contact-detail:first-child {
    padding-top: 0;
  }

  .ve-contact-detail-body {
    grid-template-columns:
      85px minmax(0, 1fr);
  }

  .ve-contact-phone-list {
    flex-wrap: wrap;

    gap: 3px 8px;
  }

  .ve-contact-form-panel {
    padding: 29px;
  }

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

}


/* ==========================================================
   39. MOBILE
========================================================== */

@media (max-width: 767.98px) {

  .ve-contact {
    padding: 47px 0 53px;
  }

  .ve-contact .ve-contact-container {
    padding-inline: 16px;
  }

  /* Main layout */

  .ve-contact-layout {
    gap: 29px;
  }

  .ve-contact-information {
    display: block;
  }

  /* Section heading */

  .ve-contact-header {
    margin-bottom: 26px;
  }

  .ve-contact-eyebrow {
    margin-bottom: 13px;

    font-size: 10px;

    letter-spacing: 1.2px;
  }

  .ve-contact-header h2 {
    font-size:
      clamp(34px, 8.3vw, 44px);

    line-height: 1.2;
    letter-spacing: -1.45px;
  }

  .ve-contact-header > p {
    font-size: 14px;

    line-height: 1.8;
  }

  /* Contact details */

  .ve-contact-details {
    border-top:
      1px solid rgba(255, 255, 255, 0.22);
  }

  .ve-contact-detail,
  .ve-contact-detail:first-child {
    padding: 15px 0;
  }

  .ve-contact-detail {
    gap: 12px;

    grid-template-columns:
      42px minmax(0, 1fr);
  }

  .ve-contact-detail-body {
    grid-template-columns: 1fr;

    gap: 5px;
  }

  .ve-contact-detail-body h3 {
    font-size: 13px;
  }

  .ve-contact-value > a:not(.ve-contact-map-link) {
    font-size: 13px;
  }

  .ve-contact-phone-list {
    flex-wrap: wrap;

    gap: 3px 8px;
  }

  .ve-contact-phone-list > a:not(.ve-contact-map-link) {
    font-size: 13px;
  }

  .ve-contact-value p {
    font-size: 13px;

    line-height: 1.75;
  }

  /* Form panel */

  .ve-contact-form-panel {
    padding: 25px 21px;

    border-radius: 10px;
  }

  .ve-contact-form-heading {
    margin-bottom: 22px;
  }

  .ve-contact-form-heading h3 {
    font-size: 21px;
  }

  /* One-column form */

  .ve-form-grid {
    grid-template-columns: 1fr;

    gap: 16px;
  }

  .ve-form-field-full {
    grid-column: auto;
  }

  .ve-form-field label {
    font-size: 13px;
  }

  .ve-form-field input,
  .ve-form-field select,
  .ve-form-field textarea {
    min-height: 48px;

    font-size: 16px;
  }

  .ve-form-field textarea {
    min-height: 110px;
    height: 110px;

    font-size: 16px;
  }

  .ve-field-error {
    font-size: 12px;
  }

  .ve-form-privacy {
    font-size: 12px;
  }

  /* Form footer */

  .ve-form-footer {
    flex-direction: column;
    align-items: stretch;

    gap: 16px;
  }

  .ve-form-footer p {
    max-width: none;

    font-size: 12px;
  }

  .ve-form-submit {
    justify-content: space-between;

    width: 100%;
    min-height: 49px;

    padding: 13px 17px;

    font-size: 14px;
  }

}


/* ==========================================================
   40. SMALL MOBILE
========================================================== */

@media (max-width: 380px) {

  .ve-contact .ve-contact-container {
    padding-inline: 13px;
  }

  .ve-contact-form-panel {
    padding: 22px 16px;
  }

  .ve-contact-header h2 {
    font-size: 33px;
  }

  .ve-contact-phone-list {
    gap: 2px 7px;
  }

  .ve-contact-phone-list > a:not(.ve-contact-map-link) {
    font-size: 12.5px;
  }

  .ve-contact-form-heading h3 {
    font-size: 20px;
  }

}


/* ==========================================================
   41. EXTRA SMALL VIEWPORT
========================================================== */

@media (max-width: 320px) {

  .ve-contact .ve-contact-container {
    padding-inline: 10px;
  }

  .ve-contact-header h2 {
    font-size: 31px;
  }

  .ve-contact-detail {
    gap: 9px;
  }

  .ve-contact-phone-list {
    gap: 2px 6px;
  }

  .ve-contact-phone-separator {
    display: none;
  }

  .ve-contact-form-panel {
    padding: 19px 13px;
  }

  .ve-contact-form-heading h3 {
    font-size: 18px;
  }

  .ve-contact-form-symbol {
    flex-basis: 38px;

    width: 38px;
    height: 38px;
  }

}


/* ==========================================================
   42. REDUCED MOTION
========================================================== */

@media (prefers-reduced-motion: reduce) {

  .ve-contact a,
  .ve-form-field input,
  .ve-form-field select,
  .ve-form-field textarea,
  .ve-form-submit {
    animation: none !important;
    transition: none !important;
  }

}


/* ==========================================================
   43. PRINT SUPPORT
========================================================== */

@media print {

  .ve-contact {
    padding: 30px 0;

    background: #ffffff;

    color: #112b48;
  }

  .ve-contact-header h2,
  .ve-contact-detail-body h3,
  .ve-contact-value > a,
  .ve-contact-value p {
    color: #112b48 !important;
  }

  .ve-contact-header > p {
    color: #34475c !important;
  }

  .ve-contact-details,
  .ve-contact-detail {
    border-color: #d8e0e9;
  }

  .ve-contact-icon {
    color: #112b48;

    border-color: #d8e0e9;
  }

  .ve-contact-form-panel {
    border: 1px solid #d8e0e9;

    box-shadow: none;
  }

  .ve-form-submit {
    display: none;
  }

}


/* ==========================================================
   END OF CONTACT STYLESHEET
========================================================== */
