/* ==========================================================================
   ADRIANO ALBERTO - SOCIEDADE DE ADVOGADOS, RL
   Contact Page Stylesheet (contact.css)
   Dedicated intake form — trust-first, professional, confidentiality-led
   ========================================================================== */

/* --- CONTACT PAGE BODY OVERRIDE --- */
body.contact-page {
  background-color: var(--color-navy-950);
}

/* --- CONTACT HERO BANNER --- */
.contact-hero {
  position: relative;
  padding-top: calc(var(--header-height) + 3.5rem);
  padding-bottom: 3.5rem;
  overflow: hidden;
}
@media (max-width: 768px) {
  .contact-hero {
    padding-top: calc(var(--header-height) + 1.75rem);
    padding-bottom: 2rem;
  }
}


.contact-hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 11, 14, 0.55) 0%, var(--color-navy-950) 100%),
    url('../assets/img/hero-bg.jpg') center / cover no-repeat;
  z-index: 0;
}

.contact-hero-inner {
  position: relative;
  z-index: 1;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-gold-400);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2rem;
  transition: color var(--transition-fast);
}

.back-link:hover {
  color: var(--color-gold-300);
}

.contact-hero-title {
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.1;
  color: var(--color-text-heading);
  margin-bottom: 1rem;
  max-width: 640px;
}
@media (max-width: 768px) {
  .contact-hero-title {
    font-size: 1.75rem;
  }
}
@media (max-width: 480px) {
  .contact-hero-title {
    font-size: 1.5rem;
  }
}


.contact-hero-sub {
  font-size: 1.05rem;
  color: var(--color-text-body);
  max-width: 52ch;
  line-height: 1.65;
}
@media (max-width: 480px) {
  .contact-hero-sub {
    font-size: 0.9rem;
  }
}


/* --- MAIN CONTACT SECTION LAYOUT --- */
.contact-main-section {
  padding: 3rem 0 5rem;
}
@media (max-width: 768px) {
  .contact-main-section {
    padding: 1.75rem 0 3.5rem;
  }
}


.contact-layout {
  display: block;
  max-width: 800px;
  margin: 0 auto;
}

/* --- SIDEBAR --- */
.contact-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 1.5rem);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
@media (max-width: 1024px) {
  .contact-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    order: 2;
  }
}
@media (max-width: 768px) {
  .contact-sidebar {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}


.sidebar-block {
  background: var(--color-surface-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.sidebar-heading {
  font-family: var(--font-serif-display);
  font-size: 1.05rem;
  color: var(--color-text-heading);
  margin-bottom: 1.1rem;
}

.sidebar-contact-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sidebar-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.sidebar-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: rgba(201, 158, 56, 0.1);
  border: 1px solid var(--color-border-gold);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold-400);
}

.sidebar-icon svg {
  width: 15px;
  height: 15px;
}

.sidebar-contact-content {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.sidebar-contact-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
}

.sidebar-contact-val {
  font-size: 0.875rem;
  color: var(--color-text-white);
  font-weight: 500;
  line-height: 1.4;
}

a.sidebar-contact-val:hover {
  color: var(--color-gold-400);
}

/* --- TRUST BLOCK --- */
.sidebar-trust-block {
  background: linear-gradient(135deg, rgba(201, 158, 56, 0.07) 0%, rgba(18, 21, 27, 0.5) 100%);
  border: 1px solid var(--color-border-gold);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}
@media (max-width: 480px) {
  .sidebar-block,
  .sidebar-trust-block {
    padding: 1.15rem 1rem;
  }
}


.trust-icon-wrap {
  width: 36px;
  height: 36px;
  color: var(--color-gold-400);
  margin-bottom: 0.75rem;
}

.trust-icon-wrap svg {
  width: 100%;
  height: 100%;
}

.trust-title {
  font-family: var(--font-serif-display);
  font-size: 0.95rem;
  color: var(--color-text-heading);
  margin-bottom: 0.5rem;
}

.trust-desc {
  font-size: 0.8125rem;
  color: var(--color-text-body);
  line-height: 1.55;
}

/* --- OAA BADGE --- */
.sidebar-oaa-badge {
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
}
@media (max-width: 1024px) {
  .sidebar-oaa-badge {
    grid-column: 1 / -1;
  }
}


.oaa-badge-inner {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--color-gold-400);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* --- FORM CARD --- */
.contact-form-wrapper {
  min-width: 0;
}
@media (max-width: 1024px) {
  .contact-form-wrapper {
    order: 1;
  }
}


.contact-form-card {
  background: var(--color-surface-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.form-card-header {
  padding: 1.5rem 2rem 1.25rem;
  border-bottom: 1px solid var(--color-border-subtle);
}
@media (max-width: 768px) {
  .form-card-header {
    padding: 1.25rem 1.15rem 1rem;
  }
}


.form-card-title {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  color: var(--color-text-heading);
  margin-bottom: 0.3rem;
}

.form-card-subtitle {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

/* --- FORM FIELDS --- */
form#contact-form {
  padding: 1.65rem 2rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem 1.4rem;
}
@media (max-width: 768px) {
  form#contact-form {
    grid-template-columns: 1fr;
    padding: 1.25rem 1.15rem 1.5rem;
    gap: 1rem;
  }
}


.cf-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.cf-full {
  grid-column: 1 / -1;
}

.cf-half {
  grid-column: span 1;
}
@media (max-width: 768px) {
  .cf-half {
    grid-column: 1 / -1;
  }
}


.cf-label {
  font-size: 0.78125rem;
  font-weight: 600;
  color: var(--color-text-white);
  letter-spacing: 0.01em;
}

.cf-input,
.cf-select,
.cf-textarea {
  width: 100%;
  background: rgba(10, 11, 14, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  color: var(--color-text-white);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.45;
  padding: 0.65rem 0.85rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  appearance: none;
  -webkit-appearance: none;
}
@media (max-width: 768px) {
  .cf-input,
  .cf-select,
  .cf-textarea {
    font-size: 16px;
    padding: 0.75rem 0.85rem;
  }
}


.cf-input::placeholder,
.cf-textarea::placeholder {
  color: var(--color-text-muted);
}

.cf-input:focus,
.cf-select:focus,
.cf-textarea:focus {
  outline: none;
  border-color: var(--color-gold-400);
  box-shadow: 0 0 0 3px rgba(201, 158, 56, 0.15);
}

.cf-input.has-error,
.cf-select.has-error,
.cf-textarea.has-error {
  border-color: #e05c5c;
  box-shadow: 0 0 0 3px rgba(224, 92, 92, 0.1);
}

.cf-textarea {
  resize: vertical;
  min-height: 95px;
}

.cf-error {
  font-size: 0.75rem;
  color: #e05c5c;
  font-weight: 500;
  min-height: 1em;
}

.cf-helper {
  font-size: 0.72rem;
  color: var(--color-text-muted);
}

/* --- SELECT WRAPPER --- */
.cf-select-wrap {
  position: relative;
}

.cf-select {
  cursor: pointer;
  padding-right: 2.25rem;
}

.cf-select-arrow {
  position: absolute;
  right: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: var(--color-text-muted);
  pointer-events: none;
}

/* --- PHONE FIELD --- */
.cf-phone-wrap {
  display: flex;
  align-items: stretch;
}

.cf-phone-prefix {
  flex-shrink: 0;
  padding: 0.65rem 0.75rem;
  background: rgba(201, 158, 56, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-right: none;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  color: var(--color-gold-400);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.45;
  white-space: nowrap;
}
@media (max-width: 768px) {
  .cf-phone-prefix {
    padding: 0.75rem 0.8rem;
    font-size: 0.9rem;
  }
}


.cf-phone-input {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* --- RADIO GROUP --- */
.cf-radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 0.15rem;
}

.cf-radio-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  font-size: 0.845rem;
  color: var(--color-text-body);
}

.cf-radio {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.cf-radio-custom {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  position: relative;
  transition: border-color var(--transition-fast);
}

.cf-radio:checked + .cf-radio-custom {
  border-color: var(--color-gold-400);
}

.cf-radio:checked + .cf-radio-custom::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-gold-400);
}

.cf-radio-label:hover .cf-radio-custom {
  border-color: var(--color-gold-400);
}

/* --- CHECKBOX / CONSENT COMPACT --- */
.cf-consent-compact {
  padding: 0.25rem 0;
}

.cf-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
}

.cf-checkbox {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.cf-checkbox-custom {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border-radius: 3px;
  border: 1.5px solid rgba(201, 158, 56, 0.5);
  background: rgba(10, 11, 14, 0.6);
  position: relative;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.cf-checkbox:checked + .cf-checkbox-custom {
  background: var(--color-gold-400);
  border-color: var(--color-gold-400);
}

.cf-checkbox:checked + .cf-checkbox-custom::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 4px;
  width: 4px;
  height: 8px;
  border: 2px solid var(--color-navy-950);
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

.cf-checkbox:focus + .cf-checkbox-custom {
  box-shadow: 0 0 0 3px rgba(201, 158, 56, 0.2);
}

.cf-checkbox-label:hover .cf-checkbox-custom {
  border-color: var(--color-gold-400);
}

.cf-consent-text {
  font-size: 0.78125rem;
  color: var(--color-text-body);
  line-height: 1.4;
}

/* --- SUBMIT ROW --- */
.cf-submit-row {
  grid-column: 1 / -1;
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}
@media (max-width: 768px) {
  .cf-submit-row {
    flex-direction: column;
    gap: 0.75rem;
  }
}


.cf-btn-primary {
  flex: 1;
  min-width: 200px;
  padding: 0.85rem 1.5rem;
  font-size: 0.875rem;
}

.cf-btn-secondary {
  flex: 1;
  min-width: 170px;
  padding: 0.85rem 1.5rem;
  font-size: 0.875rem;
}
@media (max-width: 768px) {
  .cf-btn-primary,
  .cf-btn-secondary {
    flex: none;
    width: 100%;
    justify-content: center;
    padding: 0.9rem 1.25rem;
  }
}


/* --- CONTACT FOOTER --- */
.contact-footer {
  border-top: 1px solid var(--color-border-subtle);
  padding: 1.5rem 0;
  background: var(--color-navy-950);
}

.contact-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .contact-footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
  }
}


.contact-footer-copy {
  font-size: 0.78125rem;
  color: var(--color-text-muted);
}


