/* CDI HOME - Cookie Consent Banner & Modal Styles */

.cdi-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  background: rgba(24, 24, 24, 0.95);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.15rem 3rem 1.15rem 1.5rem;
  box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.5);
  font-family: "Montserrat", sans-serif;
  color: #fff;
  transition: transform 0.35s ease, opacity 0.35s ease;
  transform: translateY(0);
  opacity: 1;
}

.cdi-cookie-banner--hidden {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

.cdi-cookie-banner__close {
  position: absolute;
  top: 0.6rem;
  right: 0.85rem;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem 0.4rem;
  transition: color 0.2s ease, transform 0.2s ease;
  z-index: 2;
}

.cdi-cookie-banner__close:hover {
  color: #fff;
  transform: scale(1.1);
}

.cdi-cookie-banner__inner {
  max-width: 114.375rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cdi-cookie-banner__content {
  flex: 1;
}

.cdi-cookie-banner__text {
  font-size: 0.875rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

.cdi-cookie-banner__link {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.cdi-cookie-banner__link:hover {
  color: #685539;
}

.cdi-cookie-banner__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* Reusable buttons */
.cdi-btn {
  font-family: "Gilroy SemiBold", "Montserrat", sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.75rem 1.35rem;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cdi-btn--accent {
  background: #685539;
  color: #fff;
  border: 1px solid #685539;
}

.cdi-btn--accent:hover {
  background: #7d6745;
  border-color: #7d6745;
}

.cdi-btn--outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.cdi-btn--outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

/* Modal */
.cdi-cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cdi-cookie-modal--open {
  opacity: 1;
  visibility: visible;
}

.cdi-cookie-modal__backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.cdi-cookie-modal__dialog {
  position: relative;
  background: #181818;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  width: 100%;
  max-width: 38rem;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
  color: #fff;
  font-family: "Montserrat", sans-serif;
  z-index: 1;
  overflow: hidden;
}

.cdi-cookie-modal__header {
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cdi-cookie-modal__title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
}

.cdi-cookie-modal__close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s ease;
}

.cdi-cookie-modal__close:hover {
  color: #fff;
}

.cdi-cookie-modal__body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
}

.cdi-cookie-modal__desc {
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 1.5rem;
}

.cdi-cookie-group {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}

.cdi-cookie-group:last-child {
  margin-bottom: 0;
}

.cdi-cookie-group__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.cdi-cookie-group__info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cdi-cookie-group__name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
}

.cdi-cookie-group__badge {
  font-size: 0.6875rem;
  padding: 0.2rem 0.5rem;
  background: rgba(104, 85, 57, 0.3);
  color: #cbbba5;
  border: 1px solid rgba(104, 85, 57, 0.5);
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cdi-cookie-group__desc {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

/* Switch toggle */
.cdi-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.cdi-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cdi-switch__slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.15);
  transition: .3s;
  border-radius: 24px;
}

.cdi-switch__slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: #fff;
  transition: .3s;
  border-radius: 50%;
}

.cdi-switch input:checked + .cdi-switch__slider {
  background-color: #685539;
}

.cdi-switch input:checked + .cdi-switch__slider:before {
  transform: translateX(20px);
}

.cdi-cookie-modal__footer {
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(20, 20, 20, 0.95);
  flex-wrap: wrap;
}

/* Form acceptance checkbox styles - Centered Alignment */
.gdpr-consent-wrap {
  margin: 1.25rem auto 1.5rem auto;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.gdpr-consent-wrap p {
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  justify-content: center;
  width: 100%;
}

.wpcf7-form .wpcf7-list-item {
  margin: 0 !important;
  display: inline-flex !important;
  justify-content: center !important;
}

.wpcf7-acceptance label {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  gap: 0.6rem !important;
  cursor: pointer !important;
  max-width: 45rem !important;
}

.wpcf7-acceptance input[type="checkbox"],
.gdpr-checkbox {
  width: 1.15rem !important;
  height: 1.15rem !important;
  min-width: 1.15rem !important;
  max-width: 1.15rem !important;
  margin: 0 !important;
  accent-color: #685539 !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
}

.wpcf7-list-item-label {
  display: inline !important;
  font-size: 0.8125rem !important;
  line-height: 1.45 !important;
  white-space: normal !important;
  word-break: normal !important;
  text-align: center !important;
}

/* 1. DEFAULT: ALL WHITE BACKGROUND FORMS (.consultation, .project__form, .project__form-wrap, standard .form-request) */
.gdpr-consent-wrap,
.form-request .gdpr-consent-wrap,
.project__form .gdpr-consent-wrap,
.project__form-wrap .gdpr-consent-wrap,
.consultation .gdpr-consent-wrap,
.consultation__form .gdpr-consent-wrap,
.wpcf7-form .gdpr-consent-wrap {
  color: #181818 !important;
}

.gdpr-consent-wrap a,
.form-request .gdpr-consent-wrap a,
.project__form .gdpr-consent-wrap a,
.project__form-wrap .gdpr-consent-wrap a,
.consultation .gdpr-consent-wrap a,
.consultation__form .gdpr-consent-wrap a,
.wpcf7-form .gdpr-consent-wrap a {
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
  color: #181818 !important;
  font-weight: 600 !important;
  transition: color 0.2s ease !important;
}

.gdpr-consent-wrap a:hover,
.form-request .gdpr-consent-wrap a:hover,
.project__form .gdpr-consent-wrap a:hover,
.project__form-wrap .gdpr-consent-wrap a:hover,
.consultation .gdpr-consent-wrap a:hover,
.consultation__form .gdpr-consent-wrap a:hover,
.wpcf7-form .gdpr-consent-wrap a:hover {
  color: #685539 !important;
}

/* 2. DARK BACKGROUND: ONLY .contacts__form and .form-request--white */
.form-request--white .gdpr-consent-wrap,
.contacts__form .gdpr-consent-wrap,
.contacts__content .gdpr-consent-wrap {
  color: rgba(255, 255, 255, 0.9) !important;
}

.form-request--white .gdpr-consent-wrap a,
.contacts__form .gdpr-consent-wrap a,
.contacts__content .gdpr-consent-wrap a {
  color: #ffffff !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
  font-weight: 600 !important;
}

.form-request--white .gdpr-consent-wrap a:hover,
.contacts__form .gdpr-consent-wrap a:hover,
.contacts__content .gdpr-consent-wrap a:hover {
  color: #cbbba5 !important;
}

/* Legal pages styles */
.legal-page {
  padding: 10rem 0 5rem 0;
  min-height: 60vh;
  color: #fff;
  font-family: "Montserrat", sans-serif;
}

.legal-page__container {
  max-width: 54rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.legal-page__header {
  margin-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 1.5rem;
}

.legal-page__title {
  font-size: 2.25rem;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.legal-page__meta {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
}

.legal-page__content {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.85);
}

.legal-page__content h2 {
  font-size: 1.35rem;
  font-weight: 600;
  margin: 2.25rem 0 1rem 0;
  color: #fff;
  border-left: 3px solid #685539;
  padding-left: 0.75rem;
}

.legal-page__content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 1.5rem 0 0.75rem 0;
  color: #fff;
}

.legal-page__content p {
  margin-bottom: 1.25rem;
}

.legal-page__content ul,
.legal-page__content ol {
  margin: 0.75rem 0 1.25rem 1.5rem;
}

.legal-page__content li {
  list-style: disc;
  margin-bottom: 0.5rem;
}

.legal-page__content a {
  color: #cbbba5;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-page__content a:hover {
  color: #fff;
}

.legal-page__table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
}

.legal-page__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.legal-page__table th,
.legal-page__table td {
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  text-align: left;
}

.legal-page__table th {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-weight: 600;
}

.legal-page__table td {
  color: rgba(255, 255, 255, 0.8);
}

/* Footer legal links */
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer__legal-link {
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s ease;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  text-decoration: none;
}

.footer__legal-link:hover {
  color: #fff;
  text-decoration: underline;
}

/* Responsive & Mobile Optimization */
@media (max-width: 48rem) {
  .cdi-cookie-banner {
    padding: 0.65rem 2.25rem 0.65rem 0.85rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.6);
  }
  .cdi-cookie-banner__close {
    top: 0.45rem;
    right: 0.5rem;
    font-size: 1.35rem;
  }
  .cdi-cookie-banner__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }
  .cdi-cookie-banner__text {
    font-size: 0.72rem;
    line-height: 1.3;
  }
  .cdi-cookie-banner__actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
  }
  .cdi-cookie-banner__actions .cdi-btn {
    width: 100%;
    padding: 0.5rem 0.35rem;
    font-size: 0.72rem;
    letter-spacing: 0.02em;
    min-height: 2.15rem;
  }

  /* Modal on Mobile */
  .cdi-cookie-modal {
    padding: 0.5rem;
  }
  .cdi-cookie-modal__dialog {
    max-height: 92vh;
  }
  .cdi-cookie-modal__header {
    padding: 0.85rem 1rem;
  }
  .cdi-cookie-modal__title {
    font-size: 1.05rem;
  }
  .cdi-cookie-modal__body {
    padding: 0.85rem 1rem;
  }
  .cdi-cookie-modal__desc {
    font-size: 0.78rem;
    margin-bottom: 1rem;
  }
  .cdi-cookie-group {
    padding: 0.75rem 0.85rem;
    margin-bottom: 0.6rem;
  }
  .cdi-cookie-group__name {
    font-size: 0.85rem;
  }
  .cdi-cookie-group__desc {
    font-size: 0.75rem;
  }
  .cdi-cookie-modal__footer {
    padding: 0.75rem 1rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
  }
  .cdi-cookie-modal__footer #cdi-modal-accept-btn {
    grid-column: span 2;
    order: -1;
  }
  .cdi-cookie-modal__footer .cdi-btn {
    width: 100%;
    padding: 0.55rem 0.5rem;
    font-size: 0.75rem;
    min-height: 2.25rem;
  }

  /* Legal Pages on Mobile */
  .legal-page {
    padding: 7rem 0 3rem 0;
  }
  .legal-page__title {
    font-size: 1.6rem;
  }
  .legal-page__content {
    font-size: 0.875rem;
    line-height: 1.65;
  }
  .footer__legal {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}

/* Footer navigation (Google Maps & Waze - matching metalconstruct style) */
.footer__navigation {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  margin: 1.25rem 0;
  text-align: center;
}

.footer__navigation-label {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

.footer__nav-apps {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.footer__nav-app {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff !important;
  text-decoration: none !important;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  line-height: 1;
}

.footer__nav-app:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}

.footer__nav-app svg {
  display: block;
  height: 14px;
  width: auto;
}
