/* Newbold Connect - Custom Overrides */
/* All custom styles should be added here instead of Theme Settings Custom CSS */

/* ========== ROOT VARIABLES ========== */
:root {
  --newbold-red: #b11e36;
  --newbold-blue: #0d4c92;
  --newbold-black: #0a0a0a;
  --newbold-black-alt: #1a1a1a;
  --newbold-white: #f5f5f5;
  --newbold-grey: #a0a0a0;
}

/* ========== GLOBAL DARK THEME ========== */
body {
  background-color: transparent;
  color: var(--newbold-white);
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
}

/* ========== TYPOGRAPHY ========== */
/* Headings */
h1, h2, h3, h4, h5, h6,
.heading,
.heading-1,
.heading-2,
.heading-3 {
  color: var(--newbold-white);
  font-family: 'Gotham', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

/* Typography Update: H3, H4, H5 use 600 weight */
h3, h4, h5 {
  font-weight: 600 !important;
}

/* Body Text */
p, .body-text,
.text-body {
  color: var(--newbold-white);
  line-height: 1.6;
}

/* Secondary Text */
.text-secondary,
.description {
  color: var(--newbold-grey);
}

/* ========== BUTTONS ========== */
.btn,
button,
.button,
a.button {
  background-color: var(--newbold-red);
  color: #ffffff;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
}

.btn:hover,
button:hover,
.button:hover {
  background-color: #8f1829;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(177, 30, 54, 0.3);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--newbold-white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background-color: var(--newbold-white);
  color: var(--newbold-black);
  transform: translateY(-2px);
}

/* Guarantee Badge */
.guarantee-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 100px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  width: fit-content;
  margin: 0 auto;
}

/* ========== SECTIONS & CONTAINERS ========== */
/* CRITICAL: Sections are transparent by default to allow background images */
/* Only specific dark sections get black backgrounds */
section,
.section {
  background-color: transparent;
}

/* Dark section variants - only apply to explicitly marked sections */
.section--dark,
.section--dark-theme,
.dark-section {
  background-color: var(--newbold-black) !important;
}

.section-alt,
.bg-dark {
  background-color: var(--newbold-black-alt);
}

/* IMPORTANT: Container transparency enforced */
.container {
  background: none !important;
  background-color: transparent !important;
}

.section-alt,
.bg-dark {
  background-color: var(--newbold-black-alt);
}

/* ========== CARDS ========== */
.card,
.video-card,
.content-card {
  background-color: var(--newbold-black-alt);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
}

/* ========== GRADIENT OVERLAYS ========== */
.gradient-overlay {
  position: relative;
}

.gradient-overlay::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.9), transparent);
  pointer-events: none;
}

/* ========== VIDEO THUMBNAILS ========== */
.video-thumbnail {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}

.video-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
}

/* ========== DURATION BADGE ========== */
.duration-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background-color: rgba(0, 0, 0, 0.8);
  color: #ffffff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

/* ========== HEADER ========== */
header,
.header,
.site-header {
  background-color: transparent;
  border-bottom: 1px solid var(--newbold-black-alt);
}

/* Header dark variant - only apply when explicitly needed */
header.header--dark,
.header--dark,
.site-header--dark {
  background-color: var(--newbold-black) !important;
}

/* ========== FOOTER ========== */
footer,
.footer,
.site-footer {
  background-color: var(--newbold-black-alt);
  color: var(--newbold-grey);
}

/* ========== LINKS ========== */
a {
  color: var(--newbold-red);
  transition: color 0.3s ease;
}

a:hover {
  color: #d42645;
  text-decoration: none;
}

/* ========== NAVIGATION ========== */
nav a,
.nav-link {
  color: var(--newbold-white);
}

nav a:hover,
.nav-link:hover {
  color: var(--newbold-red);
}

/* ========== FORMS ========== */
input,
textarea,
select {
  background-color: var(--newbold-black-alt);
  border: 1px solid #2a2a2a;
  color: var(--newbold-white);
  border-radius: 8px;
  padding: 12px 16px;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--newbold-red);
  outline: none;
  box-shadow: 0 0 0 3px rgba(177, 30, 54, 0.1);
}

/* ========== UTILITY CLASSES ========== */
/* Rounded Corners */
.rounded {
  border-radius: 8px;
}

.rounded-lg {
  border-radius: 12px;
}

/* Shadows */
.shadow {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.shadow-lg {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

/* Color Utilities */
.text-red {
  color: var(--newbold-red);
}

.text-blue {
  color: var(--newbold-blue);
}

.bg-red {
  background-color: var(--newbold-red);
}

.bg-blue {
  background-color: var(--newbold-blue);
}

/* ========== SPACING ========== */
.section-padding {
  padding: 80px 0;
}

@media (max-width: 768px) {
  .section-padding {
    padding: 40px 0;
  }
}

/* ========== TWO STEP MODAL OVERRIDES (Group Pricing) ========== */
/* Match styles from NB Contact Form (Glassmorphism + Form Styling) */

#two-step .modal__content {
  background: rgba(255, 255, 255, 0.02) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 32px;
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.8);
  padding: 30px !important;
}

@media (max-width: 768px) {
  #two-step .modal__content {
    padding: 15px !important;
  }
}

/* Form Inputs inside Modal */
#two-step .form-control {
  height: 56px;
  padding: 0 20px;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 6px;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  color: #ffffff !important;
  transition: all 0.3s ease;
  line-height: normal;
  margin-bottom: 10px; /* Ensure spacing */
}

/* Fix Placeholder Vertical Alignment */
#two-step .form-control::placeholder {
  color: rgba(255, 255, 255, 0.4);
  line-height: 54px; /* Matches height minus borders to center text */
}

/* Textarea Specific Fixes */
#two-step textarea.form-control {
  height: auto !important;
  min-height: 140px !important;
  padding-top: 15px !important;
  resize: vertical;
}

/* Textarea placeholder needs normal line-height */
#two-step textarea.form-control::placeholder {
  line-height: 1.6;
}

#two-step .form-control:focus {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: #d4af37 !important; /* Gold Focus */
  outline: none;
  box-shadow: none;
}

/* Modal Form Button */
#two-step .form-btn {
  width: 100%;
  height: 56px;
  background: #b11e36 !important; /* Newbold Red */
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  font-family: 'Gotham', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
}

#two-step .form-btn:hover {
  background: #8d1629 !important;
  box-shadow: 0 0 30px rgba(177, 30, 54, 0.4);
}

/* Fix Modal Headings */
#two-step h2, 
#two-step h3,
#two-step h4 {
  font-family: 'Gotham', sans-serif;
  color: #ffffff;
  text-transform: uppercase;
  margin-bottom: 20px;
}

/* Fix Close Button (Cross Icon) */
#two-step .close-x {
  width: 30px;
  height: 30px;
  background-color: #ffffff; /* White circle background */
  border-radius: 50%;
  position: absolute;
  top: 20px;
  right: 20px;
  cursor: pointer;
  z-index: 10;
}

#two-step .close-x__part {
  background-color: #0a0a0a !important; /* Dark black icon */
  height: 2px;
  width: 14px; /* Smaller size to fit inside circle */
  position: absolute;
  top: 50%;
  left: 8px; /* Centered: (30px - 14px) / 2 = 8px */
  border-radius: 2px;
}

#two-step .close-x__part:first-child {
  transform: rotate(45deg);
}

#two-step .close-x__part:last-child {
  transform: rotate(-45deg);
}

/* Fix Image Radius inside Modal */
#two-step img {
  border-radius: 24px !important; /* Match global branded radius */
}
