/**
 * ============================================================================
 * DTF CONTACT US — FOUR-DOMAIN CATEGORY SELECTOR & DYNAMIC FORMS
 * ============================================================================
 * File: assets/css/contact-categories.css
 * Scoped strictly to .dtf-contact-category-section and .dtf-category-panel.
 * Preserves all existing page styles, global typography, header and footer.
 */

/* 1. Category Selector Section */
.dtf-contact-category-section {
  margin-bottom: 35px;
}

.dtf-category-intro {
  margin-bottom: 20px;
}

.dtf-category-intro .dtf-intro-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: rgba(13, 110, 253, 0.1);
  color: #0d6efd;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 10px;
}

.dtf-category-intro h2 {
  font-size: 26px;
  font-weight: 700;
  color: #232f65;
  margin-bottom: 6px;
}

.dtf-category-intro p {
  color: #555e75;
  font-size: 15px;
  margin-bottom: 0;
}

/* 2. Four Category Cards Grid (Selector Tabs) */
.dtf-category-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.dtf-category-tab {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  background-color: #ffffff;
  border: 2px solid #e3e7f0;
  border-radius: 12px;
  padding: 16px 14px;
  cursor: pointer;
  transition: all 0.25s ease-in-out;
  position: relative;
  outline: none;
  font-family: inherit;
  width: 100%;
}

.dtf-category-tab:hover {
  border-color: #0d6efd;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(13, 110, 253, 0.1);
}

.dtf-category-tab:focus-visible {
  outline: 3px solid rgba(13, 110, 253, 0.45);
  outline-offset: 2px;
}

/* Active Category Card State */
.dtf-category-tab.is-active {
  border-color: #0d6efd;
  background: linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
  box-shadow: 0 8px 24px rgba(13, 110, 253, 0.16);
  transform: translateY(-2px);
}

.dtf-category-tab.is-active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 20%;
  right: 20%;
  height: 3px;
  background-color: #0d6efd;
  border-radius: 3px 3px 0 0;
}

/* Tab Icon */
.dtf-cat-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background-color: #f0f4fc;
  color: #232f65;
  font-size: 22px;
  margin-bottom: 12px;
  transition: all 0.25s ease;
}

.dtf-category-tab.is-active .dtf-cat-icon-wrap {
  background-color: #0d6efd;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(13, 110, 253, 0.3);
}

.dtf-category-tab:hover .dtf-cat-icon-wrap {
  color: #0d6efd;
}

.dtf-category-tab.is-active:hover .dtf-cat-icon-wrap {
  color: #ffffff;
}

/* Tab Text Content */
.dtf-cat-info {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.dtf-cat-title {
  font-size: 15px;
  font-weight: 700;
  color: #232f65;
  line-height: 1.25;
  margin-bottom: 4px;
  transition: color 0.2s ease;
}

.dtf-category-tab.is-active .dtf-cat-title {
  color: #0d6efd;
}

.dtf-cat-desc {
  font-size: 12px;
  color: #667085;
  line-height: 1.35;
}

.dtf-cat-active-indicator {
  position: absolute;
  top: 10px;
  right: 10px;
  display: none;
  color: #0d6efd;
  font-size: 16px;
}

.dtf-category-tab.is-active .dtf-cat-active-indicator {
  display: block;
}

/* 3. Form Panels */
.dtf-category-panel {
  display: none;
  animation: dtfPanelFadeIn 0.3s ease-in-out;
}

.dtf-category-panel.is-active {
  display: block;
}

@keyframes dtfPanelFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Panel Header */
.dtf-panel-header {
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid #edf0f5;
}

.dtf-panel-badge {
  display: inline-block;
  background-color: rgba(13, 110, 253, 0.08);
  color: #0d6efd;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.dtf-panel-header h3 {
  font-size: 24px;
  font-weight: 700;
  color: #232f65;
  margin-bottom: 8px;
}

.dtf-panel-header p {
  color: #555e75;
  font-size: 14.5px;
  line-height: 1.6;
  margin-bottom: 4px;
}

/* Form Controls & Styling */
.dtf-category-form .form-group {
  margin-bottom: 22px;
}

.dtf-category-form label {
  font-weight: 600;
  font-size: 14px;
  color: #232f65;
  margin-bottom: 6px;
  display: inline-block;
}

.dtf-category-form .form-control {
  height: 48px;
  border-radius: 6px;
  border: 1.5px solid #dcdfe6;
  padding: 10px 14px;
  font-size: 14px;
  color: #333333;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dtf-category-form textarea.form-control {
  height: auto;
  min-height: 110px;
  resize: vertical;
}

.dtf-category-form .form-control:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
  outline: none;
}

.dtf-category-form .form-control.is-invalid {
  border-color: #dc3545;
  background-image: none;
}

.dtf-category-form .form-control.is-invalid:focus {
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15);
}

.dtf-category-form select.form-control {
  appearance: auto;
  -webkit-appearance: auto;
  background-color: #ffffff;
  cursor: pointer;
}

.dtf-req {
  color: #dc3545;
  font-weight: 700;
  margin-left: 2px;
}

/* Honeypot hidden field */
.dtf-hp-field {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  height: 0 !important;
  width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* CAPTCHA & Submit Button Row */
.dtf-form-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 10px;
}

.dtf-recaptcha-box {
  min-height: 78px;
  display: flex;
  align-items: center;
}

.dtf-category-form .default-btn {
  border: none;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.dtf-category-form .default-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none !important;
}

/* Form Message Status Feedback */
.dtf-form-msg {
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 14.5px;
  font-weight: 500;
  display: none;
  margin-top: 16px;
}

.dtf-form-msg.is-visible {
  display: block;
}

.dtf-form-msg.is-loading {
  display: block;
  background-color: #e8f4fd;
  color: #0b5ed7;
  border: 1px solid #b6d4fe;
}

.dtf-form-msg.is-success {
  display: block;
  background-color: #e6f7ec;
  color: #0f5132;
  border: 1px solid #badbcc;
}

.dtf-form-msg.is-error {
  display: block;
  background-color: #fde8e8;
  color: #842029;
  border: 1px solid #f5c2c7;
}

/* 4. Responsive Breakpoints */
@media (max-width: 1199px) {
  .dtf-category-tab {
    padding: 14px 12px;
  }
  .dtf-cat-title {
    font-size: 14px;
  }
  .dtf-cat-desc {
    font-size: 11.5px;
  }
}

@media (max-width: 991px) {
  .dtf-category-tabs {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .dtf-category-intro h2 {
    font-size: 23px;
  }
}

@media (max-width: 575px) {
  .dtf-category-tabs {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .dtf-category-tab {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
  }
  .dtf-cat-icon-wrap {
    width: 38px;
    height: 38px;
    font-size: 18px;
    margin-bottom: 0;
    flex-shrink: 0;
  }
  .dtf-form-action-row {
    flex-direction: column;
    align-items: stretch;
  }
  .dtf-recaptcha-box {
    justify-content: center;
  }
  .dtf-category-form .default-btn {
    width: 100%;
    justify-content: center;
  }
}
