/*
Theme Name: Roman Blank
Theme URI: https://example.com/
Author: Roman
Description: Clean theme styles for the 8 Mile landing pages.
Version: 1.0
License: GPL-2.0-or-later
Text Domain: roman-blank
*/
html, body {
  margin: 0;
  padding: 0;
  font-family: Rubik, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

body,
body button,
body input,
body select,
body textarea {
  font-family: Rubik, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* Contact section */
.ctx {
  position: relative;
  background: #171717;
  color: #fff;
  font-family: Rubik, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  overflow-x: hidden;
  border-top: 0;
}

@supports (overflow: clip) {
  .ctx { overflow-x: clip; }
}

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

.ctx__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 44px 24px 40px;
  text-align: left;
}

.ctx__suptitle {
  margin: 0 0 6px;
  color: #ff6600;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ctx__title {
  margin: 0 0 18px;
  max-width: 18ch;
  font-size: clamp(1.55rem, 1.4vw + 1rem, 2.25rem);
  font-weight: 800;
  line-height: 1.16;
}

.ctx .wp-block-buttons { justify-content: flex-start; }

.ctx__cta .wp-element-button {
  display: inline-block;
  max-width: 100%;
  padding: 11px 18px;
  border-radius: 999px;
  background: #ff6600;
  color: #fff;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
  cursor: pointer;
  transition: 0.2s;
  box-shadow: 0 10px 24px rgba(255, 102, 0, 0.18);
}

.ctx__cta .wp-element-button:hover {
  background: #ff7a45;
  color: #fff;
}

.ctx__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
  margin: 24px 0 28px;
}

.ctx__card {
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}

.ctx__card h3 {
  margin: 0 0 4px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
}

.ctx__card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  line-height: 1.45;
}

.ctx__bottom {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(320px, 0.9fr);
  gap: 22px;
  align-items: start;
  margin-top: 6px;
}

.ctx__bottom > .wp-block-column {
  min-width: 0;
  margin: 0 !important;
}

.ctx__map {
  width: 100%;
  height: 420px;
  overflow: hidden;
  border-radius: 20px;
  background: #0c0c0c;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.24);
}

.ctx__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.ctx__map-link {
  display: block;
  width: 100%;
  height: 100%;
}

.ctx__map-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ctx__form {
  margin-top: 0;
  padding: 24px 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  text-align: left;
}

.ctx__form-title {
  margin: 0 0 8px;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 800;
}

.ctx__form > p {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.93rem;
  line-height: 1.55;
}

.ctx__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 6px 0 14px;
}

.ctx__soc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-top: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.2s, border-color 0.2s, background-color 0.2s;
  box-shadow: none;
}

.ctx__soc i {
  display: block;
  color: #fff;
  font-size: 18px;
  line-height: 1;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ctx__soc:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 102, 0, 0.32);
  background: rgba(255, 102, 0, 0.08);
}

.ctx__soc:active {
  transform: translateY(0);
  box-shadow: none;
}

.ctx__soc:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.18);
}

.ctx__soc--vk:hover,
.ctx__soc--tg:hover,
.ctx__soc--wa:hover,
.ctx__soc--ya:hover { box-shadow: none; }

.ctx .wpcf7 { margin-top: 8px; }

.ctx .wpcf7 form {
  display: grid;
  gap: 12px;
}

.ctx .wpcf7-form p { margin: 0; }

.ctx .wpcf7-form br { display: none; }

.ctx .wpcf7-form label {
  display: block;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
}

.ctx .wpcf7-form-control-wrap {
  display: block;
  margin-top: 6px;
}

.ctx .wpcf7 input[type="text"],
.ctx .wpcf7 input[type="email"],
.ctx .wpcf7 input[type="tel"],
.ctx .wpcf7 textarea {
  width: 100%;
  padding: 9px 0 8px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-size: 0.93rem;
  transition: border-color 0.2s;
}

.ctx .wpcf7 textarea {
  height: 70px;
  min-height: 70px;
  resize: vertical;
}

.ctx .wpcf7 input::placeholder,
.ctx .wpcf7 textarea::placeholder { color: rgba(255, 255, 255, 0.5); }

.ctx .wpcf7 input:focus,
.ctx .wpcf7 textarea:focus {
  outline: none;
  border-color: #ff6600;
}

.ctx .wpcf7 input[type="submit"] {
  justify-self: start;
  width: auto;
  min-height: 42px;
  padding: 0 18px;
  margin-top: 8px;
  border: 0;
  border-radius: 999px;
  background: #ff6600;
  color: #fff;
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
  transition: 0.2s;
  box-shadow: 0 10px 24px rgba(255, 102, 0, 0.18);
}

.ctx .wpcf7 input[type="submit"]:hover {
  background: #ff7a45;
  color: #fff;
}

.ctx .vat-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ctx .vat-group .wpcf7-list-item { margin: 0; }

.ctx .vat-group input[type="radio"] {
  position: absolute;
  opacity: 0;
}

.ctx .vat-group .wpcf7-list-item-label {
  display: inline-block;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  color: #cfd4e4;
  user-select: none;
}

.ctx .vat-group input[type="radio"]:checked + .wpcf7-list-item-label {
  border-color: #ff6600;
  background: #ff6600;
  color: #fff;
}

.ctx .vat-group input[type="radio"]:focus + .wpcf7-list-item-label {
  box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.18);
}

.ctx .form-grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.ctx .wpcf7 select.vat-select {
  width: 100%;
  padding: 9px 0 8px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.ctx .wpcf7 select.vat-select:focus {
  outline: none;
  border-color: #ff6600;
}

.ctx .consent-row {
  margin-top: 2px;
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.82rem;
  line-height: 1.5;
}

.ctx .consent-row a {
  color: #ff9a72;
  text-decoration: underline;
}

.ctx .wpcf7-acceptance input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  vertical-align: -3px;
  accent-color: #ff6600;
}

.ctx .wpcf7 .consent-row .wpcf7-list-item { margin: 0; }

.ctx .wpcf7 select.vat-select option {
  background: #ffffff;
  color: #0b0f19;
}

@media (prefers-color-scheme: dark) {
  .ctx .wpcf7 select.vat-select option {
    background: #ffffff;
    color: #0b0f19;
  }
}

@media (max-width: 900px) {
  .ctx__inner { padding: 38px 18px 34px; }

  .ctx__cards { margin: 20px 0 24px; }

  .ctx__bottom {
    grid-template-columns: 1fr;
    row-gap: 22px;
  }

  .ctx__map { height: 340px; }

  .ctx__form { padding: 20px 18px; }
}

@media (max-width: 600px) {
  .ctx__map {
    height: 280px;
    border-radius: 14px;
  }

  .ctx__title { font-size: clamp(1.35rem, 4vw + 0.45rem, 1.8rem); }

  .ctx__soc {
    width: 42px;
    height: 42px;
  }

  .ctx__socials {
    gap: 8px;
    margin: 4px 0 12px;
  }

  .ctx .ctx__cta { width: 100%; }

  .ctx .ctx__cta .wp-element-button {
    display: block;
    width: 100%;
    padding: 14px 18px;
  }

  .ctx .form-grid-two { grid-template-columns: 1fr; }
}

/* Firefox */
html {
  scrollbar-width: auto;
  scrollbar-color: #ff623b #121212;
}

/* Chrome, Edge, Safari */
::-webkit-scrollbar {
  width: 18px;
  height: 18px;
}

::-webkit-scrollbar-track {
  background: #121212;
}

::-webkit-scrollbar-thumb {
  background: #ff642e;
  border: 3px solid #121212;
  border-radius: 12px;
}

::-webkit-scrollbar-thumb:hover {
  background: #ff7a4e;
}

.slide-panel {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.slide-panel::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
}

.slide-panel::-webkit-scrollbar-thumb,
.slide-panel::-webkit-scrollbar-track {
  background: transparent;
}

.slide-panel__menu h3 {
  color: #ff642e !important;
  font-weight: 700;
}
