/* ==========================================================================
   TRANSFER PRO MADRID - CONTACT
   Se carga solo en la pagina de contacto (contact / contacto).
   ========================================================================== */
.tp-contact-widget-root {
  --tp-container-max: 1200px;
  --tp-charcoal: #121214;
  --tp-gold-light: rgba(197, 160, 89, 0.14);
  line-height: 1.65;
}
.tp-contact-widget-root *,
.tp-contact-widget-root *::before,
.tp-contact-widget-root *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
/* ==========================================================================
       START OF ELEMENTOR HTML WIDGET SNIPPET
       (Pega este bloque dentro del widget de HTML de Elementor)
       ========================================================================== */

    .tp-contact-widget-root {
      font-family: 'Jost', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
      width: 100%;
      background: #ffffff;
      color: #0a0a0a;
    }

    /* HERO BANNER SECTION (CINEMATIC DARK STRIP) */
    .tp-contact-hero {
      background: #08080a;
      background: linear-gradient(180deg, #060608 0%, #101014 100%);
      padding: 90px 32px 75px;
      position: relative;
      border-bottom: 1px solid rgba(255, 255, 255, 0.08);
      overflow: hidden;
    }

    .tp-contact-hero::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: radial-gradient(circle at 80% 20%, rgba(197, 160, 89, 0.08) 0%, transparent 60%);
      pointer-events: none;
    }

    .tp-contact-hero-inner {
      max-width: var(--tp-container-max);
      margin: 0 auto;
      position: relative;
      z-index: 2;
    }

    .tp-contact-eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 12px;
      font-size: 12px;
      font-weight: 700;
      letter-spacing: 0.22em;
      text-transform: uppercase;
      color: #c5a059;
      margin-bottom: 18px;
    }

    .tp-contact-eyebrow-line {
      width: 32px;
      height: 1px;
      background: #c5a059;
    }

    .tp-contact-hero-title {
      font-size: clamp(32px, 4.5vw, 56px);
      font-weight: 800;
      line-height: 1.1;
      letter-spacing: -0.02em;
      text-transform: uppercase;
      color: #ffffff;
      margin-bottom: 18px;
    }

    .tp-contact-hero-subtitle {
      font-size: clamp(16px, 1.8vw, 19px);
      color: #a1a1aa;
      max-width: 680px;
      line-height: 1.6;
      font-weight: 400;
    }

    /* MAIN CONTACT LAYOUT (LIGHT BACKGROUND #f7f7f9) */
    .tp-contact-main-section {
      background: #f7f7f9;
      padding: 80px 32px 100px;
      position: relative;
    }

    .tp-contact-container {
      max-width: var(--tp-container-max);
      margin: 0 auto;
      display: grid;
      grid-template-columns: 1fr 1.35fr;
      gap: 40px;
      align-items: start;
    }

    /* COLUMN 1: DISPATCH INFO CARD */
    .tp-dispatch-card {
      background: #ffffff;
      border: 1px solid #e4e4e7;
      padding: 44px 36px;
      position: relative;
      box-shadow: 0 4px 24px rgba(0, 0, 0, 0.03);
    }

    .tp-dispatch-card::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 4px;
      height: 100%;
      background: #c5a059;
    }

    .tp-dispatch-header-tag {
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: #c5a059;
      margin-bottom: 8px;
      display: block;
    }

    .tp-dispatch-title {
      font-size: 26px;
      font-weight: 800;
      letter-spacing: -0.01em;
      text-transform: uppercase;
      color: #0a0a0a;
      margin-bottom: 16px;
      line-height: 1.2;
    }

    .tp-dispatch-desc {
      font-size: 15px;
      color: #52525b;
      line-height: 1.65;
      margin-bottom: 32px;
      border-bottom: 1px solid #f4f4f5;
      padding-bottom: 24px;
    }

    /* INFO ITEMS LIST */
    .tp-contact-channels {
      display: flex;
      flex-direction: column;
      gap: 24px;
      margin-bottom: 36px;
    }

    .tp-channel-item {
      display: flex;
      align-items: flex-start;
      gap: 16px;
    }

    .tp-channel-icon-wrap {
      width: 44px;
      height: 44px;
      background: #fafafb;
      border: 1px solid #e4e4e7;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      color: #0a0a0a;
      transition: all 0.25s ease;
    }

    .tp-channel-item:hover .tp-channel-icon-wrap {
      border-color: #c5a059;
      color: #c5a059;
      background: #ffffff;
    }

    .tp-channel-content {
      flex: 1;
    }

    .tp-channel-label {
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: #71717a;
      margin-bottom: 4px;
      display: block;
    }

    .tp-channel-value {
      font-size: 17px;
      font-weight: 700;
      color: #0a0a0a;
      text-decoration: none;
      transition: color 0.2s ease;
      display: inline-block;
    }

    .tp-channel-value:hover {
      color: #c5a059;
    }

    .tp-channel-subtext {
      font-size: 12.5px;
      color: #71717a;
      margin-top: 3px;
    }

    /* DISPATCH BASES / HUBS */
    .tp-dispatch-hubs {
      background: #fafafb;
      border: 1px solid #e4e4e7;
      padding: 24px 22px;
      margin-bottom: 28px;
    }

    .tp-hubs-title {
      font-size: 12px;
      font-weight: 700;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: #0a0a0a;
      margin-bottom: 12px;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .tp-hubs-title::before {
      content: '';
      width: 6px;
      height: 6px;
      background: #c5a059;
      display: inline-block;
    }

    .tp-hubs-list {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .tp-hubs-list li {
      font-size: 13.5px;
      color: #52525b;
      display: flex;
      align-items: center;
      gap: 10px;
      line-height: 1.4;
    }

    .tp-hubs-list li svg {
      width: 14px;
      height: 14px;
      stroke: #c5a059;
      flex-shrink: 0;
    }

    /* DISPATCH GUARANTEE BADGE */
    .tp-dispatch-guarantee {
      display: flex;
      align-items: center;
      gap: 14px;
      padding: 16px 20px;
      background: rgba(197, 160, 89, 0.08);
      border: 1px solid rgba(197, 160, 89, 0.3);
    }

    .tp-guarantee-badge {
      width: 32px;
      height: 32px;
      background: #c5a059;
      color: #0a0a0a;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 800;
      font-size: 13px;
      flex-shrink: 0;
    }

    .tp-guarantee-text {
      font-size: 12.5px;
      color: #27272a;
      line-height: 1.4;
    }

    .tp-guarantee-text strong {
      color: #0a0a0a;
      font-weight: 700;
    }

    /* COLUMN 2: EXECUTIVE FORM CARD */
    .tp-form-card {
      background: #ffffff;
      border: 1px solid #e4e4e7;
      padding: 48px 44px;
      box-shadow: 0 4px 28px rgba(0, 0, 0, 0.04);
      position: relative;
    }

    .tp-form-header {
      margin-bottom: 32px;
    }

    .tp-form-header-tag {
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: #c5a059;
      margin-bottom: 8px;
      display: block;
    }

    .tp-form-title {
      font-size: 28px;
      font-weight: 800;
      letter-spacing: -0.01em;
      text-transform: uppercase;
      color: #0a0a0a;
      margin-bottom: 10px;
      line-height: 1.2;
    }

    .tp-form-subtitle {
      font-size: 14.5px;
      color: #71717a;
      line-height: 1.5;
    }

    /* FORM GRID & FIELDS (ESTILO ULTRA-LUJO RECTO CON CONTACT FORM 7) */
    .tp-contact-widget-root form.wpcf7-form,
    .tp-contact-form {
      display: flex;
      flex-direction: column;
      gap: 22px;
    }

    .tp-contact-widget-root form.wpcf7-form p {
      margin: 0;
      padding: 0;
    }

    .tp-form-row {
      display: grid;
      gap: 20px;
    }

    .tp-form-row-2 {
      grid-template-columns: 1fr 1fr;
    }

    .tp-form-group {
      display: flex;
      flex-direction: column;
      gap: 7px;
      position: relative;
    }

    .tp-form-label {
      font-size: 11.5px;
      font-weight: 700;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: #27272a;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .tp-form-label .tp-req {
      color: #c5a059;
    }

    .wpcf7-form-control-wrap {
      display: block;
      width: 100%;
      position: relative;
    }

    /* ESTILOS UNIVERSALES PARA INPUTS NATIVOS Y CONTACT FORM 7 */
    .tp-contact-widget-root input[type="text"],
    .tp-contact-widget-root input[type="email"],
    .tp-contact-widget-root input[type="tel"],
    .tp-contact-widget-root select,
    .tp-contact-widget-root textarea,
    .wpcf7-form-control.wpcf7-text,
    .wpcf7-form-control.wpcf7-textarea,
    .wpcf7-form-control.wpcf7-select {
      width: 100%;
      background: #fafafb;
      border: 1px solid #d4d4d8;
      border-radius: 0 !important;
      padding: 14px 16px;
      font-family: inherit;
      font-size: 14.5px;
      color: #0a0a0a;
      line-height: 1.5;
      transition: all 0.22s ease;
      box-sizing: border-box;
      -webkit-appearance: none;
      -moz-appearance: none;
      appearance: none;
    }

    .tp-contact-widget-root select,
    .wpcf7-form-control.wpcf7-select {
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230a0a0a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 16px center;
      background-size: 12px;
      padding-right: 38px;
    }

    .tp-contact-widget-root input:focus,
    .tp-contact-widget-root select:focus,
    .tp-contact-widget-root textarea:focus,
    .wpcf7-form-control:focus {
      background: #ffffff;
      border-color: #c5a059 !important;
      outline: none;
      box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.16) !important;
    }

    .tp-contact-widget-root textarea,
    .wpcf7-form-control.wpcf7-textarea {
      min-height: 120px;
      resize: vertical;
    }

    .tp-contact-widget-root input::placeholder,
    .tp-contact-widget-root textarea::placeholder {
      color: #a1a1aa;
    }

    /* PRIVACY CHECKBOX (COMPATIBLE CON WPCF7 ACCEPTANCE) */
    .tp-form-checkbox-wrap,
    .wpcf7-acceptance {
      display: block;
      margin-top: 6px;
    }

    .wpcf7-acceptance .wpcf7-list-item {
      margin: 0 !important;
    }

    .tp-form-checkbox-wrap label,
    .wpcf7-acceptance label {
      display: flex;
      align-items: flex-start;
      gap: 12px;
      cursor: pointer;
      font-size: 13px;
      color: #52525b;
      line-height: 1.5;
    }

    .tp-form-checkbox-wrap input[type="checkbox"],
    .wpcf7-acceptance input[type="checkbox"] {
      width: 17px;
      height: 17px;
      margin-top: 3px;
      accent-color: #0a0a0a;
      cursor: pointer;
      flex-shrink: 0;
      border-radius: 0 !important;
    }

    .tp-form-checkbox-wrap a,
    .wpcf7-acceptance a {
      color: #0a0a0a;
      text-decoration: underline;
      font-weight: 500;
      transition: color 0.2s ease;
    }

    .tp-form-checkbox-wrap a:hover,
    .wpcf7-acceptance a:hover {
      color: #c5a059;
    }

    /* SUBMIT BUTTON (HIGH CONTRAST LUXURY BUTTON) */
    .tp-form-submit-wrap {
      margin-top: 10px;
    }

    .tp-contact-submit,
    .wpcf7-submit,
    .tp-contact-widget-root input[type="submit"] {
      width: 100%;
      background: #0a0a0a;
      color: #ffffff;
      border: 1px solid #0a0a0a;
      border-radius: 0 !important;
      padding: 17px 32px;
      font-family: inherit;
      font-size: 13.5px;
      font-weight: 700;
      letter-spacing: 0.16em;
      text-transform: uppercase;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 12px;
      transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .tp-contact-submit:hover,
    .wpcf7-submit:hover,
    .tp-contact-widget-root input[type="submit"]:hover {
      background: #1a1a1e;
      border-color: #c5a059;
      transform: translateY(-2px);
      box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    }

    /* SPINNER DE CARGA DE CF7 */
    .wpcf7-spinner {
      margin: 12px auto 0 !important;
      display: block !important;
    }

    .tp-contact-submit svg {
      width: 16px;
      height: 16px;
      transition: transform 0.25s ease;
    }

    .tp-contact-submit:hover svg {
      transform: translateX(4px);
    }

    .tp-form-footer-note {
      font-size: 12px;
      color: #71717a;
      text-align: center;
      margin-top: 14px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
    }

    /* ESTILOS DE RESPUESTA CONTACT FORM 7 */
    .wpcf7-response-output {
      border-radius: 0 !important;
      margin: 16px 0 0 !important;
      padding: 14px 18px !important;
      font-size: 13.5px !important;
      font-weight: 500 !important;
    }

    .wpcf7 form.sent .wpcf7-response-output {
      border: 1px solid #c5a059 !important;
      background: rgba(197, 160, 89, 0.1) !important;
      color: #0a0a0a !important;
    }

    .wpcf7 form.invalid .wpcf7-response-output,
    .wpcf7 form.failed .wpcf7-response-output {
      border: 1px solid #dc2626 !important;
      background: #fef2f2 !important;
      color: #991b1b !important;
    }

    .wpcf7-not-valid-tip {
      font-size: 11.5px !important;
      color: #dc2626 !important;
      margin-top: 4px !important;
      display: block !important;
    }

    /* RESPONSIVE BREAKPOINTS */
    @media (max-width: 991px) {
      .tp-contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
      }

      .tp-form-card,
      .tp-dispatch-card {
        padding: 36px 28px;
      }
    }

    @media (max-width: 640px) {
      .tp-contact-hero {
        padding: 60px 20px 50px;
      }

      .tp-contact-main-section {
        padding: 50px 16px 70px;
      }

      .tp-form-row-2 {
        grid-template-columns: 1fr;
        gap: 18px;
      }

      .tp-form-card,
      .tp-dispatch-card {
        padding: 28px 20px;
      }

      .tp-contact-hero-title {
        font-size: 28px;
      }

      .tp-dispatch-title,
      .tp-form-title {
        font-size: 22px;
      }
    }
