/* ===== HOME GRID ===== */
.bt-home {
  max-width: 100%;
  margin: 0 auto;
  padding: 20px;
}

.bt-home h2 {
  text-align: center;
  margin-bottom: 30px;
  color: #333;
  font-size: 28px;
}

.bt-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto 40px;
}

/* ===== CARRIER CARD ===== */
.bt-carrier {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px 15px;
  border-radius: 16px;
  background: #ffffff;
  border: 2px solid #e0e0e0;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  height: 140px;
  width: auto;
  min-width: 0 !important;
  --carrier-color: #4a90e2;
}

/* Logo */
.bt-carrier img {
  max-height: 80px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: all 0.3s ease;
}

/* Fallback for missing images */
.bt-carrier-fallback {
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  color: #333;
  padding: 10px;
  word-break: break-word;
  transition: all 0.3s ease;
  line-height: 1.3;
}

/* Hover effect */
.bt-carrier:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: var(--carrier-color);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  background: linear-gradient(135deg, var(--carrier-color) 0%, #ffffff 100%);
  background-size: 200% 200%;
  animation: gradient-shift 0.5s ease forwards;
}

@keyframes gradient-shift {
  0% {
    background-position: 100% 100%;
  }
  100% {
    background-position: 0% 0%;
  }
}

.bt-carrier:hover img {
  transform: scale(1.1);
  filter: brightness(0) invert(1);
}

.bt-carrier:hover .bt-carrier-fallback {
  color: white;
  font-weight: 700;
}

.bt-carrier:active {
  transform: scale(0.98);
}

/* ===== STEPS ===== */
.bt-steps {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 50px;
  padding: 30px 0;
  border-top: 2px solid #f0f0f0;
  background: #f8f9fa;
  border-radius: 16px;
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
}

.bt-step {
  padding: 15px 25px;
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  color: white;
  text-align: center;
  min-width: 180px;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
}

.bt-step:not(:last-child):after {
  content: "→";
  position: absolute;
  right: -30px;
  top: 50%;
  transform: translateY(-50%);
  color: #007bff;
  font-size: 24px;
  font-weight: bold;
}

/* ===== FORM ===== */
.bt-form {
  max-width: 700px;
  margin: 0 auto;
  padding: 30px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.bt-form label {
  display: block;
  margin: 20px 0 8px;
  font-weight: 600;
  color: #333;
  font-size: 15px;
}

.bt-form input,
.bt-form select {
  width: 100%;
  padding: 14px 16px;
  margin: 0 0 20px;
  border: 2px solid #ddd;
  border-radius: 12px;
  background: white;
  color: #333;
  font-size: 15px;
  transition: all 0.2s;
}

.bt-form input:focus,
.bt-form select:focus {
  border-color: #007bff;
  outline: none;
  box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.15);
}

.bt-form input[disabled],
.bt-form select[disabled] {
  background: #f8f9fa;
  color: #6c757d;
  border-color: #e9ecef;
}

/* ===== BUTTON TEXT CENTERING FIX ===== */
.bt-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100%;
  padding: 16px 24px;
  margin: 25px 0;
  cursor: pointer;
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  border: none;
  border-radius: 16px;
  color: white;
  font-weight: 700;
  font-size: 17px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  height: 64px !important;
}

.bt-btn-text {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 100% !important;
  width: 100% !important;
  font-weight: 700;
}

.bt-btn:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 123, 255, 0.3);
}

.bt-btn:active:not(:disabled) {
  transform: translateY(0);
}

.bt-btn:disabled {
  background: linear-gradient(135deg, #ccc 0%, #999 100%);
  cursor: not-allowed;
  transform: none !important;
}

.bt-btn-secondary {
  background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
}

.bt-btn-secondary:hover:not(:disabled) {
  box-shadow: 0 8px 20px rgba(108, 117, 125, 0.3);
}

/* ===== MESSAGES ===== */
.bt-msg {
  margin-top: 20px;
  padding: 0;
  font-size: 14px;
}

.bt-success-card,
.bt-error,
.bt-external-notice,
.bt-manual-notice {
  padding: 20px;
  border-radius: 12px;
  margin: 15px 0;
  border-left: 5px solid;
}

.bt-success-card {
  background: #d4edda;
  border-color: #28a745;
  color: #155724;
}

.bt-success-card h3,
.bt-success-card h4 {
  margin-top: 0;
  color: #155724;
}

.bt-external-notice {
  background: #e7f5ff;
  border-color: #007bff;
}

.bt-manual-notice {
  background: #fff3cd;
  border-color: #ffc107;
}

.bt-error {
  background: #f8d7da;
  border-color: #dc3545;
  color: #721c24;
}

/* ===== FEE NOTICE ===== */
.bt-fee-notice {
  background: #fff3cd;
  border: 2px solid #ffc107;
  color: #856404;
  padding: 15px 20px;
  border-radius: 12px;
  margin: 20px 0;
  font-size: 15px;
  line-height: 1.5;
}

.bt-fee-notice strong {
  color: #856404;
}

/* ===== AMOUNT SUMMARY ===== */
.bt-amount-summary {
  background: #e8f5e8;
  padding: 20px;
  border-radius: 12px;
  margin: 20px 0;
  border-left: 5px solid #28a745;
}

.bt-amount-summary p {
  margin: 10px 0;
  font-size: 15px;
}

.bt-amount-summary .bt-total {
  font-size: 18px;
  font-weight: 700;
  color: #28a745;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 2px solid #c3e6cb;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .bt-grid {
    grid-template-columns: repeat(4, 1fr); /* Changed from 3 to 4 */
    gap: 18px;
  }
}

@media (max-width: 992px) {
  .bt-grid {
    grid-template-columns: repeat(4, 1fr); /* Changed from 3 to 4 */
    gap: 16px;
  }
  
  .bt-carrier {
    height: 130px;
    padding: 20px 15px;
  }
  
  .bt-carrier img {
    max-height: 70px;
  }
  
  .bt-steps {
    gap: 30px;
  }
  
  .bt-step {
    min-width: 160px;
    padding: 12px 20px;
  }
}

@media (max-width: 768px) {
  .bt-grid {
    grid-template-columns: repeat(4, 1fr); /* Changed from 2 to 4 */
    gap: 15px;
  }
  
  .bt-home {
    padding: 15px;
  }
  
  .bt-carrier {
    height: 120px;
    padding: 18px 12px;
  }
  
  .bt-carrier img {
    max-height: 60px;
  }
  
  .bt-carrier-fallback {
    font-size: 14px;
  }
  
  .bt-steps {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 25px 20px;
  }
  
  .bt-step {
    width: 100%;
    max-width: 300px;
    min-width: auto;
  }
  
  .bt-step:not(:last-child):after {
    content: "↓";
    right: 50%;
    bottom: -25px;
    top: auto;
    transform: translateX(50%);
  }
  
  .bt-form {
    padding: 25px 20px;
  }
  
  .bt-btn {
    height: 60px !important;
    padding: 14px 20px;
    font-size: 16px;
  }
}

@media (max-width: 576px) {
  .bt-grid {
    grid-template-columns: repeat(3, 1fr); /* Changed from 2 to 3 */
    gap: 12px;
  }
  
  .bt-carrier {
    height: 100px;
    padding: 15px 10px;
  }
  
  .bt-carrier img {
    max-height: 50px;
  }
  
  .bt-carrier-fallback {
    font-size: 13px;
    padding: 8px;
  }
  
  .bt-home h2 {
    font-size: 24px;
    margin-bottom: 25px;
  }
  
  .bt-form {
    padding: 20px 15px;
  }
  
  .bt-form input,
  .bt-form select {
    padding: 12px 14px;
    font-size: 14px;
  }
  
  .bt-btn {
    height: 56px !important;
    padding: 14px 20px;
    font-size: 16px;
  }
}

/* Extra small devices */
@media (max-width: 400px) {
  .bt-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .bt-carrier {
    height: 90px;
    padding: 12px 8px;
  }
  
  .bt-carrier img {
    max-height: 45px;
  }
  
  .bt-carrier-fallback {
    font-size: 12px;
  }
  
  .bt-btn {
    height: 56px !important;
    padding: 12px 16px;
    font-size: 15px;
  }
}

/* Empty placeholder to maintain grid */
.bt-empty-placeholder {
  visibility: hidden;
  height: 0;
  padding: 0;
  margin: 0;
  border: 0;
}

/* Status badges for staff dashboard */
.status-pending {
  color: #856404;
  background: #fff3cd;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
}

.status-fee_authorized {
  color: #0c5460;
  background: #d1ecf1;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
}

.status-awaiting_external_payment {
  color: #004085;
  background: #cce5ff;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
}

.status-processing {
  color: #155724;
  background: #d4edda;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
}

.status-completed {
  color: #155724;
  background: #d4edda;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
}

.status-failed {
  color: #721c24;
  background: #f8d7da;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
}

/* ===== HARD RESET FOR ELEMENTOR GRID CHILDREN ===== */
.bt-home .bt-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 20px !important;
  width: 100% !important;
  max-width: 1600px !important;
  margin: 0 auto !important;
}

/* IMPORTANT: grid children must NOT be 100% width */
.bt-home .bt-grid .bt-carrier {
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

/* FORCE EACH ITEM TO OCCUPY EXACTLY 1 CELL */
.bt-home .bt-grid > * {
  width: auto !important;
  max-width: 100% !important;
  grid-column: span 1 !important;
}

/* Also neutralize Elementor flex stretching */
.bt-home .bt-grid a,
.bt-home .bt-grid div {
  align-self: stretch !important;
  justify-self: stretch !important;
}

.bt-home .bt-grid > div {
  display: contents !important;
}

.bt-home .bt-grid { 
  display: grid !important; 
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important; 
  gap: 20px !important;
}
.bt-home .bt-grid .bt-carrier { 
  width: auto !important; 
  min-width: 0 !important; 
}

/* ===== KILL ELEMENTOR BOXED CONTAINER ===== */
.e-con.e-con-boxed,
.e-con-boxed,
.e-con {
  max-width: 100% !important;
  width: 100% !important;
}

body .elementor-section,
body .elementor-container {
  max-width: 100% !important;
}

/* Font Awesome Icons */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css');

/* ===== CARRIER PAGE CONTAINER - SIMPLIFIED ===== */
.bt-carrier-page-container {
    min-height: 100vh;
    padding: 0;
    width: 100%;
    max-width: 100% !important;
    overflow: hidden;
    /* NOTE: This gradient is overridden by inline style from carrier.php */
    background: linear-gradient(180deg, var(--carrier-color, #007bff) 0%, var(--carrier-color, #007bff) 400px, #f8f9fa 400px) !important;
}

.bt-carrier-page-wrapper {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 0;
}

/* ===== HERO SECTION - Reduced height and compact spacing ===== */
.bt-carrier-hero {
    text-align: center;
    margin-bottom: 0;
    padding: 30px 20px 140px !important; /* Increased bottom padding to allow form overlap */
    position: relative;
    height: 400px !important; /* Reduced from 500px to 400px */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.bt-carrier-logo {
    max-width: 80px !important; /* Reduced from 100px */
    height: auto;
    margin: 0 auto 15px !important; /* Reduced margin */
    display: block;
}

.bt-carrier-hero h1 {
    font-size: 30px !important; /* Reduced from 36px */
    color: white;
    margin-bottom: 10px !important; /* Reduced margin */
    font-weight: 700;
    line-height: 1.3;
    max-width: 800px;
    padding: 0 20px;
}

.bt-carrier-hero .subtitle {
    font-size: 16px !important; /* Reduced from 18px */
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-weight: 400;
    max-width: 800px;
    margin: 0 auto !important;
    padding: 0 20px;
}

/* ===== FORM CONTAINER - Form overlaps hero by 25% ===== */
.bt-form-container {
    position: relative;
    margin-top: -120px !important; /* Brings form 120px into hero section (25% of 500px is 125px, adjusting for reduced hero height) */
    z-index: 10;
    margin-bottom: 40px !important; /* Reduced from 80px */
    width: 100%;
    padding: 0 20px !important; /* Added !important to override Elementor */
}

/* ===== ELEMENTOR CONTAINER OVERRIDES - FIX FOR ALL CARRIERS ===== */
/* Remove all Elementor container padding around our form */
.bt-form-container .e-con,
.bt-form-container .elementor-container,
.bt-form-container .elementor-section,
.bt-form-container .elementor-widget-wrap,
.bt-form-container .elementor-widget {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}

/* Specifically target any Elementor container that wraps our form */
.bt-form-container .e-con.e-flex,
.bt-form-container .e-con-inner,
.bt-form-container .elementor-inner-section {
    padding: 0 !important;
    margin: 0 !important;
    --padding-top: 0 !important;
    --padding-bottom: 0 !important;
    --padding-left: 0 !important;
    --padding-right: 0 !important;
    --margin-top: 0 !important;
    --margin-bottom: 0 !important;
    --margin-left: 0 !important;
    --margin-right: 0 !important;
}

/* Override any Elementor column or section that might add spacing */
.bt-form-container .elementor-column,
.bt-form-container .elementor-column-wrap,
.bt-form-container .elementor-widget:not(.bt-carrier-card) {
    padding: 0 !important;
    margin: 0 !important;
}

/* Reset any Elementor background colors or borders */
.bt-form-container .elementor-section,
.bt-form-container .e-con {
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* If Elementor is adding flex/grid gaps, remove them */
.bt-form-container .elementor-widget-wrap {
    gap: 0 !important;
    row-gap: 0 !important;
    column-gap: 0 !important;
    --gap: 0 !important;
    --widgets-spacing: 0 !important;
}

/* Target specific Elementor widget types that might add spacing */
.bt-form-container .elementor-widget-text-editor,
.bt-form-container .elementor-widget-heading,
.bt-form-container .elementor-widget-shortcode {
    padding: 0 !important;
    margin: 0 !important;
}

/* Override any Elementor background overlay */
.bt-form-container .elementor-background-overlay {
    display: none !important;
}

/* Specifically target the form wrapper - USING bt-carrier-card (matching PHP) */
.bt-carrier-card {
    background: white !important;
    border-radius: 24px !important; /* Reduced from 28px */
    padding: 30px !important; /* Reduced from 40px */
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.15),
        0 2px 5px rgba(0, 0, 0, 0.1) !important;
    max-width: 800px;
    width: 100%;
    margin: 0 auto !important; /* Center the form card */
    overflow: hidden;
    position: relative;
    animation: formAppear 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

@keyframes formAppear {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.bt-carrier-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px !important; /* Reduced from 6px */
    background: linear-gradient(90deg, var(--carrier-color, #4a90e2), #5bc0de, var(--carrier-color, #4a90e2)) !important;
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
    z-index: 1;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ===== FORM STYLES ===== */
.bt-carrier-form {
    width: 100%;
    position: relative;
    z-index: 2;
}

/* ===== FORM GROUPS - Compact spacing ===== */
.bt-form-group {
    margin-bottom: 20px !important; /* Reduced from 25px */
}

.bt-form-group label {
    display: block;
    margin-bottom: 8px !important; /* Reduced from 10px */
    font-weight: 600;
    color: #333;
    font-size: 15px !important; /* Reduced from 16px */
}

/* ===== INPUT WITH ICONS ===== */
.bt-input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.bt-input-icon {
    position: absolute;
    left: 18px !important; /* Reduced from 20px */
    font-size: 16px !important; /* Reduced from 18px */
    color: #666;
    z-index: 1;
    width: 18px !important; /* Reduced from 20px */
    text-align: center;
}

.bt-input-with-icon input,
.bt-input-with-icon select {
    width: 100%;
    padding: 14px 16px 14px 50px !important; /* Reduced left padding */
    border: 2px solid #e0e0e0;
    border-radius: 14px !important; /* Reduced from 16px */
    font-size: 16px !important; /* Reduced from 17px */
    transition: all 0.3s ease;
    background: white;
    color: #333;
    height: 54px !important; /* Reduced from 58px */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.bt-input-with-icon input:focus,
.bt-input-with-icon select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15), 0 6px 20px rgba(0, 123, 255, 0.1);
    border-color: #007bff;
    transform: translateY(-2px);
}

.bt-phone-input,
.bt-phone-confirm {
    font-family: monospace;
}

.bt-custom-amount {
    font-weight: 600;
}

.bt-plan-select {
    cursor: pointer;
    height: 54px !important; /* Reduced from 58px */
}

.bt-note {
    font-size: 14px !important; /* Reduced from 15px */
    color: #666;
    margin-top: 6px !important; /* Reduced from 8px */
    font-style: italic;
}

/* ===== PHONE ERROR MESSAGE ===== */
.bt-phone-error {
    color: #dc3545 !important;
    font-size: 14px !important;
    margin-top: 5px !important;
    padding: 8px 12px !important;
    background: #f8d7da !important;
    border-radius: 6px !important;
    border-left: 3px solid #dc3545 !important;
    animation: fadeIn 0.3s ease !important;
}

/* ===== IMPORTANT NOTICE - Compact ===== */
.bt-important-notice {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 16px !important; /* Reduced from 18px */
    padding: 20px !important; /* Reduced from 25px */
    margin: 25px 0 !important; /* Reduced from 30px */
}

.bt-checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px !important; /* Reduced from 20px */
}

.bt-checkbox-group:last-child {
    margin-bottom: 0;
}

.bt-checkbox-group input[type="checkbox"] {
    margin-top: 3px;
    margin-right: 10px !important; /* Reduced from 12px */
    transform: scale(1.1) !important; /* Reduced from 1.2 */
    flex-shrink: 0;
    width: 20px !important; /* Reduced from 24px */
    height: 20px !important; /* Reduced from 24px */
}

.bt-checkbox-group label {
    font-size: 14px !important; /* Reduced from 15px */
    color: #856404;
    line-height: 1.5 !important; /* Reduced from 1.6 */
    cursor: pointer;
    display: block;
    margin: 0;
    flex: 1;
    min-width: 0;
}

.checkbox-label {
    display: inline-block;
    line-height: 1.5 !important; /* Reduced from 1.6 */
}

/* ===== PAY NOW BUTTON CONTAINER ===== */
.bt-button-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 25px !important; /* Reduced from 30px */
}

/* ===== PAY NOW BUTTON - Compact ===== */
.bt-pay-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 18px 40px !important; /* Reduced from 20px 50px */
    cursor: pointer;
    border: none;
    border-radius: 16px !important; /* Reduced from 18px */
    color: white !important;
    font-weight: bold !important;
    font-size: 18px !important; /* Reduced from 20px */
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    height: 58px !important; /* Reduced from 64px */
    min-width: 180px !important; /* Reduced from 200px */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, var(--carrier-color, #007bff) 0%, var(--carrier-dark-color, #0056b3) 100%) !important;
}

.bt-pay-btn:hover:not(:disabled) {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.bt-pay-btn:active:not(:disabled) {
    transform: translateY(0);
}

.bt-pay-btn:disabled {
    background: linear-gradient(135deg, #ccc 0%, #999 100%);
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* ===== MESSAGES ===== */
.bt-msg {
    margin-top: 20px !important; /* Reduced from 25px */
    padding: 0;
    text-align: center;
}

.bt-msg .success {
    background: #d4edda;
    border: 1px solid #28a745;
    color: #155724;
    padding: 16px !important; /* Reduced from 18px */
    border-radius: 12px;
    margin: 10px 0 !important; /* Reduced from 12px */
    font-size: 14px !important; /* Reduced from 15px */
    display: inline-block;
}

.bt-msg .error {
    background: #f8d7da;
    border: 1px solid #dc3545;
    color: #721c24;
    padding: 16px !important; /* Reduced from 18px */
    border-radius: 12px;
    margin: 10px 0 !important; /* Reduced from 12px */
    font-size: 14px !important; /* Reduced from 15px */
    display: inline-block;
}

.bt-msg .loading {
    background: #cce5ff;
    border: 1px solid #b8daff;
    color: #004085;
    padding: 16px !important; /* Reduced from 18px */
    border-radius: 12px;
    margin: 10px 0 !important; /* Reduced from 12px */
    text-align: center;
    font-size: 14px !important; /* Reduced from 15px */
    display: inline-block;
}

/* ===== PLAN CARDS - Compact ===== */
.bt-plan-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); /* Reduced minmax */
    gap: 12px !important; /* Reduced from 15px */
    margin: 12px 0 20px !important; /* Reduced from 15px 0 25px */
}

.bt-plan-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 14px !important; /* Reduced from 16px */
    padding: 18px 12px !important; /* Reduced from 20px 15px */
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 90px !important; /* Reduced from 100px */
    position: relative;
    overflow: hidden;
}

.bt-plan-card:hover {
    transform: translateY(-4px);
    border-color: #007bff;
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.15);
}

.bt-plan-card.active {
    border-color: var(--carrier-color, #007bff);
    background: linear-gradient(135deg, var(--carrier-color, #007bff) 0%, rgba(0, 123, 255, 0.1) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 123, 255, 0.2);
}

.bt-plan-card.active::after {
    content: '✓';
    position: absolute;
    top: 8px !important; /* Adjusted */
    right: 8px !important; /* Adjusted */
    background: var(--carrier-color, #007bff);
    color: white;
    width: 20px !important; /* Reduced from 24px */
    height: 20px !important; /* Reduced from 24px */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px !important; /* Reduced from 14px */
    font-weight: bold;
}

.bt-plan-card.bt-variable-card {
    border-style: dashed;
    border-width: 2px;
}

.bt-plan-card.bt-variable-card:hover {
    border-style: solid;
}

.bt-plan-card.bt-variable-card.active {
    border-style: solid;
    background: linear-gradient(135deg, var(--carrier-color, #007bff) 0%, rgba(0, 123, 255, 0.05) 100%);
}

/* ===== PLAN CARD PRICE FIX ===== */
.bt-plan-price {
    font-size: 22px !important; /* Reduced from 24px */
    font-weight: 700 !important;
    color: #333 !important;
    margin-bottom: 6px !important; /* Reduced from 8px */
    line-height: 1.2 !important;
    min-height: 26px !important; /* Reduced from 30px */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.bt-plan-card.active .bt-plan-price {
    color: var(--carrier-color, #007bff);
}

.bt-plan-label {
    font-size: 13px !important; /* Reduced from 14px */
    color: #666;
    line-height: 1.3 !important; /* Reduced from 1.4 */
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.bt-plan-card.active .bt-plan-label {
    color: #555;
    font-weight: 500;
}

/* Custom amount section */
.bt-custom-amount-section {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== FAQ SECTION - Zero margin on top and bottom ===== */
.bt-faq-section {
    margin: 0 auto !important; /* Zero margin on top and bottom - overrides inline style */
    padding: 30px 20px !important; /* Reduced padding - overrides inline style */
    background: #fff;
    border-radius: 20px !important; /* Reduced from 28px */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    max-width: 1000px;
}

.bt-faq-header {
    text-align: center;
    margin-bottom: 25px !important; /* Reduced from 30px */
}

.bt-faq-header h2 {
    font-size: 24px !important; /* Reduced from 28px - overrides inline style */
    color: #333 !important; /* Overrides inline style */
    margin: 0;
    font-weight: 700;
}

.bt-faq-subtitle {
    font-size: 16px !important; /* Reduced from 18px */
    color: #666 !important; /* Overrides inline style */
    margin-top: 5px !important;
    font-weight: 400;
}

.bt-faq-accordion {
    max-width: 900px;
    margin: 0 auto;
}

.bt-faq-item {
    margin-bottom: 10px !important; /* Reduced from 12px - overrides inline style */
    border: 1px solid #e9ecef;
    border-radius: 14px !important; /* Reduced from 16px - overrides inline style */
    overflow: hidden;
    transition: all 0.3s ease;
}

.bt-faq-item:hover {
    border-color: var(--carrier-color, #007bff);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.bt-faq-question {
    width: 100%;
    padding: 16px 20px !important; /* Reduced from 18px - overrides inline style */
    text-align: left;
    background: #f8f9fa;
    border: none;
    font-size: 15px !important; /* Reduced from 16px - overrides inline style */
    font-weight: 600;
    color: #333;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.bt-faq-question:hover {
    background: #e9ecef;
    color: var(--carrier-color, #007bff);
}

.bt-faq-icon {
    font-size: 16px !important; /* Reduced from 18px - overrides inline style */
    font-weight: bold;
    color: var(--carrier-color, #007bff);
    transition: transform 0.3s ease;
    min-width: 18px !important; /* Reduced from 20px */
    text-align: center;
}

/* FIXED: FAQ Answer Styles */
.bt-faq-answer {
    padding: 0 20px !important; /* Overrides inline style */
    max-height: 0;
    overflow: hidden;
    background: white;
}

.bt-faq-answer p {
    padding: 16px 0 !important; /* Reduced from 18px - overrides inline style */
    margin: 0;
    color: #555 !important; /* Overrides inline style */
    line-height: 1.5 !important; /* Reduced from 1.6 - overrides inline style */
    font-size: 14px !important; /* Reduced from 15px - overrides inline style */
    border-top: 1px solid #eee;
}

.bt-faq-answer ul,
.bt-faq-answer ol {
    margin: 10px 0 !important; /* Reduced from 12px */
    padding-left: 18px !important; /* Reduced from 20px */
}

.bt-faq-answer li {
    margin-bottom: 5px !important; /* Reduced from 6px */
    line-height: 1.5 !important; /* Reduced from 1.6 */
}

/* Active state for FAQ - managed by JavaScript */
.bt-faq-answer.active {
    display: block;
}

/* Responsive plan cards */
@media (max-width: 768px) {
    .bt-plan-cards {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 10px !important;
    }
    
    .bt-plan-card {
        padding: 16px 10px !important;
        min-height: 80px !important;
    }
    
    .bt-plan-price {
        font-size: 20px !important;
    }
    
    .bt-plan-label {
        font-size: 12px !important;
    }
}

@media (max-width: 576px) {
    .bt-plan-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px !important;
    }
    
    .bt-plan-card {
        padding: 14px 8px !important;
        min-height: 75px !important;
    }
    
    .bt-plan-price {
        font-size: 18px !important;
    }
    
    .bt-plan-label {
        font-size: 12px !important;
    }
}

/* Disabled state */
.bt-plan-card:disabled,
.bt-plan-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.bt-plan-card:disabled:hover,
.bt-plan-card.disabled:hover {
    border-color: #e0e0e0;
    box-shadow: none;
}

/* ===== VARIABLE-ONLY MODE STYLING ===== */
.bt-carrier-card[data-ui-mode="variable-only"] .bt-plan-cards {
    display: none !important;
}

.bt-carrier-card[data-ui-mode="variable-only"] .bt-form-group:has(.bt-plan-cards) {
    display: none !important;
}

/* ===== H2O BLOCK STYLING ===== */
.bt-carrier-unavailable {
    text-align: center !important;
    padding: 60px 20px !important;
    background: #f8f9fa !important;
    border-radius: 20px !important;
    margin: 20px auto !important;
    max-width: 600px !important;
}

.bt-carrier-unavailable h2 {
    color: #dc3545 !important;
    margin-bottom: 15px !important;
}

.bt-carrier-unavailable p {
    color: #666 !important;
    font-size: 16px !important;
    margin-bottom: 20px !important;
}

.bt-carrier-unavailable .bt-btn {
    display: inline-block !important;
    width: auto !important;
    margin-top: 15px !important;
    padding: 10px 20px !important;
    height: auto !important;
}

/* ===== FORCE VARIABLE MODE CARRIERS ===== */
/* Hide plan cards for Boost, Cricket, AT&T, Verizon */
.bt-carrier-page-container[data-carrier-slug="boost-mobile"] .bt-plan-cards,
.bt-carrier-page-container[data-carrier-slug="cricket-wireless"] .bt-plan-cards,
.bt-carrier-page-container[data-carrier-slug="att-prepaid"] .bt-plan-cards,
.bt-carrier-page-container[data-carrier-slug="verizon-prepaid"] .bt-plan-cards {
    display: none !important;
}

.bt-carrier-page-container[data-carrier-slug="boost-mobile"] .bt-form-group:has(.bt-plan-cards),
.bt-carrier-page-container[data-carrier-slug="cricket-wireless"] .bt-form-group:has(.bt-plan-cards),
.bt-carrier-page-container[data-carrier-slug="att-prepaid"] .bt-form-group:has(.bt-plan-cards),
.bt-carrier-page-container[data-carrier-slug="verizon-prepaid"] .bt-form-group:has(.bt-plan-cards) {
    display: none !important;
}

/* ===== ELEMENTOR CANVAS FIXES ===== */
.bt-carrier-page-container .elementor-section.elementor-section-boxed > .elementor-container {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.bt-carrier-page-container .elementor-section:not(.elementor-section-boxed) > .elementor-container {
    max-width: 100% !important;
    width: 100% !important;
}

/* Force full width canvas mode */
body.elementor-page .elementor.elementor-edit-mode .elementor-section,
body.elementor-page .elementor-section {
    max-width: 100% !important;
    width: 100% !important;
}

/* Remove any Elementor theme container padding */
.elementor-page .elementor-section.elementor-section-boxed {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* ===== FIX FOR FAQ ACCORDION ===== */
/* Override any conflicting CSS transitions */
.bt-faq-answer {
    transition: none !important;
}

/* Force display for active FAQ answers */
.bt-faq-answer[style*="max-height"] {
    display: block !important;
}

/* Ensure FAQ content is visible when expanded */
.bt-faq-answer p,
.bt-faq-answer ul,
.bt-faq-answer ol,
.bt-faq-answer li {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Fix for FAQ accordion animations */
.bt-faq-item.active .bt-faq-answer {
    display: block !important;
}

/* Ensure FAQ icons are properly colored */
.bt-faq-question:hover .bt-faq-icon,
.bt-faq-item.active .bt-faq-icon {
    color: var(--carrier-color, #007bff) !important;
}

/* ===== FIX FOR ULTRA MOBILE FAQ STRUCTURE ISSUES ===== */
.bt-faq-answer br {
    display: none !important;
}

.bt-faq-answer p:empty {
    display: none !important;
}

.bt-faq-question br {
    display: none !important;
}

/* Ensure FAQ content is properly displayed */
.bt-faq-answer > *:first-child {
    margin-top: 0 !important;
}

.bt-faq-answer > *:last-child {
    margin-bottom: 0 !important;
}

/* Force FAQ answers to have proper box model */
.bt-faq-answer {
    box-sizing: border-box !important;
}

/* ===== FIX EMPTY P TAGS IN FAQ ===== */
.bt-faq-item > p:empty {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

/* Remove any empty paragraphs within FAQ items */
.bt-faq-item p:empty {
    display: none !important;
}

/* Also hide empty paragraphs in questions */
.bt-faq-question p:empty {
    display: none !important;
}

/* ===== RESPONSIVE FOR CARRIER PAGE ===== */
@media (max-width: 1400px) {
    .bt-faq-section {
        max-width: 900px;
    }
}

@media (max-width: 1200px) {
    .bt-faq-section {
        max-width: 800px;
        padding: 25px 20px !important;
    }
    
    .bt-form-container {
        padding: 0 20px !important;
    }
}

@media (max-width: 992px) {
    .bt-carrier-hero {
        height: 350px !important; /* Further reduced */
        padding: 25px 15px 120px !important; /* Adjusted padding */
    }
    
    .bt-form-container {
        margin-top: -100px !important; /* Adjusted for smaller hero */
    }
    
    .bt-carrier-logo {
        max-width: 70px !important;
    }
    
    .bt-carrier-hero h1 {
        font-size: 26px !important;
    }
    
    .bt-carrier-hero .subtitle {
        font-size: 15px !important;
    }
    
    .bt-carrier-card {
        padding: 25px !important;
        border-radius: 20px !important;
    }
    
    .bt-pay-btn {
        height: 54px !important;
        padding: 16px 35px !important;
        font-size: 17px !important;
        min-width: 160px !important;
    }
    
    .bt-faq-section {
        max-width: 700px;
        padding: 25px 20px !important;
    }
    
    .bt-faq-header h2 {
        font-size: 22px !important;
    }
    
    .bt-faq-question {
        padding: 14px 18px !important;
        font-size: 14px !important;
    }
    
    .bt-faq-answer p {
        padding: 14px 0 !important;
        font-size: 13px !important;
    }
}

@media (max-width: 768px) {
    .bt-carrier-hero {
        height: 300px !important; /* Further reduced for mobile */
        padding: 20px 15px 100px !important;
    }
    
    .bt-form-container {
        margin-top: -80px !important;
        padding: 0 15px !important;
    }
    
    .bt-carrier-logo {
        max-width: 60px !important;
        margin-bottom: 12px !important;
    }
    
    .bt-carrier-hero h1 {
        font-size: 22px !important;
    }
    
    .bt-carrier-hero .subtitle {
        font-size: 14px !important;
    }
    
    .bt-carrier-card {
        padding: 20px !important;
        border-radius: 18px !important;
    }
    
    .bt-pay-btn {
        height: 52px !important;
        padding: 14px 30px !important;
        font-size: 16px !important;
        min-width: 140px !important;
    }
    
    .bt-input-with-icon input,
    .bt-input-with-icon select {
        padding: 12px 12px 12px 45px !important;
        font-size: 15px !important;
        height: 50px !important;
    }
    
    .bt-important-notice {
        padding: 18px !important;
    }
    
    .bt-checkbox-group {
        margin-bottom: 12px !important;
    }
    
    .bt-checkbox-group input[type="checkbox"] {
        transform: scale(1) !important;
        margin-right: 8px !important;
    }
    
    /* Fix for mobile - ensure no extra Elementor padding */
    .bt-form-container .e-con,
    .bt-form-container .elementor-section {
        --padding-top: 0 !important;
        --padding-bottom: 0 !important;
        --padding-left: 0 !important;
        --padding-right: 0 !important;
    }
    
    .bt-faq-section {
        padding: 20px 15px !important;
    }
    
    .bt-faq-header h2 {
        font-size: 20px !important;
    }
    
    .bt-faq-question {
        padding: 12px 16px !important;
        font-size: 14px !important;
    }
    
    .bt-faq-answer p {
        padding: 12px 0 !important;
        font-size: 13px !important;
    }
}

@media (max-width: 576px) {
    .bt-carrier-hero {
        height: 280px !important;
        padding: 18px 15px 90px !important;
    }
    
    .bt-carrier-logo {
        max-width: 50px !important;
    }
    
    .bt-carrier-hero h1 {
        font-size: 20px !important;
    }
    
    .bt-carrier-hero .subtitle {
        font-size: 13px !important;
    }
    
    .bt-carrier-card {
        padding: 18px !important;
        border-radius: 16px !important;
    }
    
    .bt-pay-btn {
        height: 50px !important;
        padding: 12px 25px !important;
        font-size: 15px !important;
        min-width: 120px !important;
    }
    
    .bt-important-notice {
        padding: 16px !important;
    }
    
    .bt-checkbox-group {
        margin-bottom: 10px !important;
    }
    
    .bt-checkbox-group input[type="checkbox"] {
        margin-right: 6px !important;
    }
    
    .bt-checkbox-group label {
        font-size: 13px !important;
    }
    
    .bt-faq-header h2 {
        font-size: 18px !important;
    }
    
    .bt-faq-question {
        padding: 10px 14px !important;
        font-size: 13px !important;
    }
    
    .bt-faq-answer p {
        padding: 10px 0 !important;
        font-size: 12px !important;
    }
}

/* Extra small devices */
@media (max-width: 400px) {
    .bt-carrier-logo {
        max-width: 45px !important;
    }
    
    .bt-carrier-hero h1 {
        font-size: 18px !important;
    }
    
    .bt-carrier-card {
        padding: 16px !important;
    }
    
    .bt-pay-btn {
        height: 48px !important;
        padding: 10px 20px !important;
        font-size: 14px !important;
        min-width: 100px !important;
    }
}