.billing-container {
    max-width: 1440px;
    padding: 20px;
    margin: 0 auto;
    font-family: 'Outfit';
}

.container-custom {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 15px;
}

/* --- Shared Components --- */
.section-heading-center {
    text-align: center;
    margin-bottom: 3rem;
}
.section-heading-center h2{
    font-size: 48px;
    font-weight: 500;
    line-height: 62.5px;
    font-family: 'Outfit';
    color: #0D0100;
}


/* --- Hero Section --- */
.billing-hero {
    position: relative;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    height: 0;
    padding-bottom: 50%;
    border-radius: 0 0 20px 20px;
    overflow: hidden;
}

@media (min-width: 1400px) {
    .billing-hero { 
        height: 955px; 
        padding-bottom: 0; 
    }
}

.billing-hero-background {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.billing-hero-image {
    width: 100%;
    min-width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.billing-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 2;
    border-radius: inherit;
}

.billing-hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    text-align: center;
    color: white;
    width: 90%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 350px;
}

.billing-hero-title {
    font-family: 'Outfit';
    font-size: 72px;
    font-weight: 600;
    margin-bottom: 20px;
    line-height: 1.2;
}

.billing-hero-description {
    font-family: 'Outfit';
    font-size: 22px;
    line-height: 1.4;
    font-weight: 300;
    margin-bottom: 50px;
}

.billing-hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.billing-btn {
    display: inline-flex;
    height: 48px;
    padding: 0 32px;
    justify-content: center;
    align-items: center;
    border-radius: 90px;
    font-family: 'Outfit';
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.billing-btn-primary { 
    background-color: #1989FB; 
    color: white; 
}

.billing-btn-primary:hover { 
    background-color: #0d7be8; 
    transform: translateY(-2px); 
}

.billing-btn-secondary { 
    background-color: white; 
    color: #0D0100; 
}

.billing-btn-secondary:hover { 
    background-color: #f8f9fa; 
    transform: translateY(-2px); 
}

/* --- Contractor & PAYE Section --- */
.contractor-billing-section {
    padding: 80px 0;
}

.sticky-services-grid {
    display: flex;
    gap: 60px;
    align-items: flex-start;
    position: relative;
    margin-top: 130px;
}

.sticky-services-left {
    flex: 0 0 504px;
    position: sticky;
    top: 100px;
}

.sticky-image-box {
    width: 100%;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.sticky-image-box img {
    width: 100%;
    height: 600px;
    display: block;
    object-fit: cover;
}

.scrollable-services-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    max-width: 671px;
    gap: 40px;
}

.service-info-card h2 {
    font-size: 34px;
    font-weight: 500;
    color: #0D0100;
    font-family: 'Outfit';
    line-height: 1;
    letter-spacing: 2px;
    margin-bottom: 30px;
}

.service-info-card p,
.service-info-card li {
    font-size: 24px;
    color: #0D0100;
    line-height: 1.5;
    font-family: 'Outfit';
    font-weight: 400;
}

.service-benefit-label {
    font-size: 24px;
    color: #0D0100;
    line-height: 1.5;
    font-family: 'Outfit';
    font-weight: 500;
    display: block;
    margin-bottom: 5px;
}

.benefit-pill-list {
    padding-left: 0;
    margin: 0;
    list-style-position: inside;
}

.benefit-pill-list li {
    font-family: 'Outfit';
    font-size: 24px;
    line-height: 1.5;
    color: #0D0100;
    font-weight: 400;
    padding-left: 20px;
}

.benefit-pill-list li::marker {
    font-size: 16px;
}

/* --- Why Choose Section --- */
.why-choose-section {
    background-color: #ffffff !important;
    padding: 80px 0;
}

.why-choose-title,
.contractor-billing-section .section-title {
    font-family: 'Outfit';
    font-size: 48px;
    font-weight: 500;
    color: #0D0100;
    margin-bottom: 75px;
    line-height: 1.3;
}

/* Class names used in home.css to ensure overrides work when optimized */
.hire-card {
    background: #FFFCFA;
    border: none;
    border-radius: 24px;
    padding: 32px 116px 62px 24px;
    width: 100%;
    max-width: 370px;
    min-height: 360px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 63px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 370px));
    justify-content: center;
    gap: 20px;
}

/* --- Pricing Section --- */
.transparent-fee-section {
    padding-bottom: 100px;
}

.billing-pricing-card {
    background-color: #1989FB !important; 
    border-radius: 32px;
    padding: 3px;
}

.pricing-card-header {
    background-color: transparent !important;
    border-radius: 32px 32px 0 0;
    padding: 24px 0;
    text-align: center;
}

.pricing-card-header h4 {
    font-weight: 500;
    font-family: 'Outfit';
    font-size: 26px;
    margin: 0;
}

.pricing-card-body {
    background-color: #0A0A0A !important;
    border-radius: 32px;
    padding: 2rem 1.5rem;
}

@media (min-width: 768px) {
    .pricing-card-body {
        padding: 3rem;
    }
}

.pricing-card-body p {
    font-family: 'Outfit';
    font-size: 20px;
    font-weight: 400;
    color: #ffffff !important;
    margin-bottom: 1.5rem;
}

.pricing-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-bottom: 56px;
}

.pricing-feature-list li {
    font-family: 'Outfit';
    font-size: 20px;
    font-weight: 400;
    color: #ffffff;
    display: flex;
    align-items: center;
}

.pricing-dot {
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    margin-right: 1rem;
}

.price-tag {
    font-family: 'Outfit';
    font-weight: 600;
    color: white;
    font-size: 64px;
    margin-bottom: 52px !important;
    line-height: 74px;
}

.pricing-cta-btn {
    background: #3197EE !important;
    border-radius: 90px !important;
    font-family: 'Outfit' !important;
    font-size: 16px !important;
    line-height: 1;
    font-weight: 400 !important;
    padding: 16px 0 !important;
    color: white !important;
    border: none !important;
    width: 100%;
    transition: opacity 0.3s ease;
    text-align: center;
    display: inline-block;
    width: 100%;
    text-decoration: none;
}

.pricing-cta-btn:hover {
    opacity: 0.9;
}

/* --- Bottom CTA Section --- */
.billing-cta-section {
    padding: 60px 24px 80px;
}

/* --- Responsive Media Queries --- */

@media (max-width: 1440px) {
    .sticky-services-grid {
        gap: 84px;
    }
}

@media (max-width: 1439px) {
    .sticky-services-grid, 
    .scrollable-services-right {
        gap: 20px;
    }
}

@media (max-width: 1200px) {
    .billing-hero-title { font-size: 42px; }
    .billing-hero { padding-bottom: 70%; }
}

@media (max-width: 991px) {
    .sticky-services-grid {
        flex-direction: column;
    }
    .sticky-services-left {
        position: static;
        width: 100%;
        flex: auto;
        margin-left: 0;
    }
    .sticky-image-box img {
        height: auto;
        max-height: 400px;
    }
    .service-info-card h2 {
        font-size: 28px;
    }
    .service-info-card p,
    .service-info-card li,
    .service-benefit-label {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .billing-hero { padding: 0; min-height: 480px;}
    .billing-hero-title { font-size: 27px; line-height: 32px; margin-bottom: 20px;}
    .billing-hero-description { font-size: 16px; line-height: 18px; margin-bottom: 35px;}
    .billing-btn { margin: 0; font-size: 12px; line-height: 16px; padding: 11px 14px; height: unset;}

    .sticky-services-grid {margin-top: 40px;}
    .service-info-card { padding-top: 10px;}
    
    /* Minimum padding (20px) for tablet screens */
    .contractor-billing-section,
    .why-choose-section,
    .how-works-section,
    .billing-cta-section { 
        padding-top: 20px !important;
        padding-bottom: 20px !important;
    }
    
    .transparent-fee-section { 
        padding-top: 20px !important;
        padding-bottom: 20px !important; 
    }
    
    /* Handle internal container spacing */
    .transparent-fee-section .container.py-4 {
        padding-top: 20px !important;
        padding-bottom: 20px !important;
    }

    .why-choose-title {
        margin-bottom: 15px !important;
        padding-bottom: 0 !important;
    }

    .why-choose-title,
    .section-heading-center h2,
    .how-works-title {
        font-size: 32px;
    }

    .service-info-card h2 {
        font-size: 24px;
        margin-bottom: 15px;
    }
    .service-info-card p,
    .service-info-card li,
    .service-benefit-label {
        font-size: 16px;
    }
    
    /* Using original names to catch home.css overrides */
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        max-width: 100%;
    }
    .hire-card {
        padding: 0 16px !important;
        gap: 20px !important;
        min-height: 180px !important;
        max-width: none !important;
    }
    .hire-card h3 {
        font-size: clamp(18px, 4.2vw, 24px) !important;
    }
}

@media (max-width: 480px) {
    .service-info-card h2 {
        font-size: 22px;
    }
    .service-info-card p,
    .service-info-card li,
    .service-benefit-label {
        font-size: 14px;
    }

    .why-choose-title,
    .section-heading-center h2,
    .how-works-title,
    .contractor-billing-section .section-title {
        font-size: 26px;
        line-height: 34px;
    }

}

@media (max-width: 375px) {
    /* Minimum padding (15px) for very small mobile screens */
    .why-choose-section,
    .contractor-billing-section,
    .how-works-section,
    .billing-cta-section {
        padding-top: 15px !important;
        padding-bottom: 15px !important;
    }
    
    .transparent-fee-section.py-5 {
        padding-top: 15px !important;
        padding-bottom: 15px !important;
    }
    
    .transparent-fee-section .container.py-4 {
        padding-top: 15px !important;
        padding-bottom: 15px !important;
    }
}

.step-icon img {
    width: 60px;
    height: 60px;
}

/* Uniform Sections Wrapper - Only for screens 767px and above */
@media (min-width: 767px) {
    .uniform-sections-wrapper {
        margin: 0 auto;
        padding-left: 20px;
        padding-right: 20px;
        max-width: 1270px;
    }

    .uniform-sections-wrapper .contractor-billing-section,
    .uniform-sections-wrapper .why-choose-section,
    .uniform-sections-wrapper .transparent-fee-section,
    .uniform-sections-wrapper .how-works-section,
    .uniform-sections-wrapper .billing-cta-section,
    .uniform-sections-wrapper .billing-container,
    .uniform-sections-wrapper .hire-container,
    .uniform-sections-wrapper .container-custom,
    .uniform-sections-wrapper .how-works-container {
        padding-left: 0;
        padding-right: 0;
        max-width: unset;
    }

    .how-step:first-child {
        padding-left: 0;
    }
    
    .how-step:last-child {
        padding-right: 0;
    }

    .how-works-grid {
        margin: 0;
    }

    .cards-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        justify-content: stretch;
        gap: 20px;
    }

    .hire-card {
        padding: 0;
        max-width: unset;
    }

    .hire-card h3 {
        max-width: 216px;
    }
}

/* ============================= */
/* BUTTON */
/* ============================= */

.sparkle-button{
  position:relative;
  padding:16px 60px;
  border-radius:999px;
  border:none;
  cursor:pointer;
  background:transparent;
  overflow:visible;
}

/* ============================= */
/* BACKDROP */
/* ============================= */

.backdrop{
  position:absolute;
  inset:0;
  border-radius:999px;
  background:#3197EE;
  z-index:1;
}

/* ============================= */
/* TEXT */
/* ============================= */

.text{
  position:relative;
  z-index:3;
}

/* ============================= */
/* SNAKE BORDER */
/* ============================= */

.spark{
  position:absolute;
  inset:-2px;
  border-radius:inherit;
  padding:2px;
  z-index:2;

  background:conic-gradient(
    from var(--angle),
    transparent 0deg,
    transparent 260deg,
    white 280deg,
    transparent 300deg
  );

  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);

  -webkit-mask-composite:xor;
          mask-composite:exclude;

  animation:spin 3s linear infinite;
}

/* animate gradient */

@property --angle{
  syntax:"<angle>";
  initial-value:0deg;
  inherits:false;
}

@keyframes spin{
  to{
    --angle:360deg;
  }
}

/* ============================= */
/* REFRACTION GLOW */
/* ============================= */

.sparkle-button::before{
  content:"";
  position:absolute;
  inset:-18px;
  border-radius:999px;

  background:radial-gradient(
    ellipse at center,
    rgba(255,255,255,0.35) 0%,
    rgba(255,255,255,0.15) 25%,
    rgba(255,255,255,0.05) 45%,
    rgba(255,255,255,0) 70%
  );

  filter:blur(16px);
  opacity:0;
  transition:opacity .35s ease;
  z-index:0;
}

.sparkle-button:hover::before{
  opacity:1;
}

/* ============================= */
/* INNER EDGE REFLECTION */
/* ============================= */

.backdrop::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;

  box-shadow:
    inset 0 1px 2px rgba(255,255,255,.35),
    inset 0 -1px 2px rgba(0,0,0,.25);
}