:root {
    --mcec-purple: #4a2c7a;
    --mcec-gold: #fdb927;
    --mcec-light-tan: #fdf5e6;
    --mcec-dark-purple: #3a2260;
    --mcec-white: #ffffff;
    --mcec-gray: #f4f4f4;
}

html {
  scroll-behavior: smooth;
}

.donation-landing {
    font-family: 'Inter', sans-serif;
    color: #333;
    line-height: 1.6;
}

.donation-landing h1, 
.donation-landing h2, 
.donation-landing h3 {
    color: var(--mcec-purple);
    font-weight: 700;
}

/* Hero Section */
.dl-hero {
    position: relative;
    background-size: cover;
    background-position: 50% 0%;
    color: white;
    padding: 80px 0 40px 0;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.dl-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

.dl-hero .container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1400px;
}

.dl-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.dl-hero-left {
    display: flex;
    justify-content: center;
    align-items: start;
    padding-top: 60px;
}

.dl-hero-left h1 {
    font-size: 3.5rem;
    color: white;
    margin-bottom: 0;
    line-height: 1.2;
}

.dl-hero-left h1 span {
    color: var(--mcec-gold);
}

.dl-hero-right {
    display: flex;
    align-items: start;
    position: relative;
    margin-bottom: -200px;
    z-index: 10;
}

.dl-hero-right > div {
    width: 100%;
}

/* Donation Widget */
.dl-donation-widget {
    padding: 0px;
    width: 100%;
    max-width: 480px;
    color: #333;
    position: relative;
    z-index: 10;
    overflow: hidden;
}

/* Neon CRM iframe container styles */
.dl-donation-widget iframe {
    border: none !important;
    width: 100%;
    display: block;
    margin: 0;
    padding: 0;
}

.dl-donation-widget #neon-form-embed-4-container {
    margin: 0 !important;
    padding: 0 !important;
    min-height: auto !important;
}

/* Remove extra spacing from embedded form */
.dl-donation-widget .embed-neon-loading {
    margin: 0 !important;
}

.dl-widget-progress {
    position: absolute;
    top: 25px;
    left: 30px;
    right: 30px;
    display: flex;
    gap: 10px;
}

.dl-progress-bar {
    height: 4px;
    flex: 1;
    background: #eee;
    border-radius: 2px;
}

.dl-progress-bar.active {
    background: var(--mcec-purple);
}

.dl-donation-tabs {
    display: flex;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--mcec-purple);
}

.dl-tab {
    flex: 1;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    background: white;
    color: var(--mcec-purple);
    font-weight: 600;
    font-size: 0.9rem;
}

.dl-tab.active {
    background: var(--mcec-purple);
    color: white;
}

.dl-donation-amounts {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.dl-amount-option {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.dl-amount-option:hover {
    border-color: var(--mcec-purple);
}

.dl-amount-option input {
    margin-right: 15px;
}

.dl-amount-option .amount-label {
    flex: 1;
    font-weight: 600;
}

.dl-next-btn {
    width: 100%;
    background: var(--mcec-purple);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.dl-next-btn:hover {
    background: var(--mcec-dark-purple);
}

/* Intro Section */
.dl-intro {
    padding: 80px 0;
    padding-top: 250px;
    text-align: center;
    background: white;
}

.dl-intro h2 {
    max-width: 800px;
    margin: 0 auto 30px;
    font-size: 2.2rem;
}

.dl-intro p {
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
    color: #666;
}

.dl-btn-purple {
    background: var(--mcec-purple);
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    transition: transform 0.2s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.dl-btn-purple:hover {
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

.dl-btn-yellow {
    background: var(--mcec-gold);
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    transition: transform 0.2s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.dl-btn-yellow:hover {
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

/* Content Sections */
.dl-section {
    padding: 80px 0;
}

.dl-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.dl-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.dl-content-purple h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.dl-content-centered {
    text-align: center;
}

.dl-divider {
    width: 60px;
    height: 3px;
    background: var(--mcec-gold);
    margin: 20px auto 30px;
    border-radius: 2px;
}

.dl-content-centered .dl-divider {
    margin-left: auto;
    margin-right: auto;
}

.dl-content-purple:not(.dl-content-centered) .dl-divider {
    margin-left: 0;
}

.dl-content-purple h2 i,
.dl-content-purple h2 em {
    font-style: italic;
}

/* Madilyne Section specifically */
.dl-madilyne-card {
    background: #4a2c7a;
    padding: 60px 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eee;
    background-size: cover;
    background-position: center top;
    position: relative;
    color: white;
    overflow: hidden;
    min-height: 500px;
}

/* Image removed from HTML, background used instead */

/* Thank You Section */
.dl-thank-you {
    margin: 40px 0;
    border-radius: 30px;
    overflow: hidden;
    color: white;
}

.dl-ty-banner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
}

.dl-ty-image {
    background-size: cover;
    background-position: center;
    min-height: 400px;
}

.dl-ty-content {
    background: var(--mcec-purple);
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dl-ty-content blockquote {
    font-size: 1.5rem;
    font-style: italic;
    margin-bottom: 30px;
    border: none;
    padding: 0;
}

.dl-ty-author {
    font-weight: 700;
}

/* Other Ways to Give */
.dl-other-ways {
    background: var(--mcec-light-tan);
    padding: 80px 0;
}

.dl-other-header {
    text-align: center;
    margin-bottom: 50px;
}

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

.dl-accordion-item {
    background: white;
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
}

.dl-accordion-header {
    padding: 20px 30px;
    vertical-align: middle;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 700;
    color: var(--mcec-purple);
    font-size: 1.2rem;
    transition: background 0.2s;
}

.dl-accordion-header:hover {
    background: #fafafa;
}

.dl-accordion-header .icon {
    font-size: 1.4rem;
    transition: transform 0.3s ease;
    display: inline-block;
}

.dl-accordion-item.active .dl-accordion-header .icon {
    transform: rotate(45deg); /* Optional: turn + into x, or just use CSS only */
}

.dl-accordion-content {
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
    visibility: hidden;
}

.dl-accordion-item.active .dl-accordion-content {
    padding: 0 30px 30px;
    max-height: 500px; /* Adjust based on content */
    visibility: visible;
}

/* Responsive */
@media (max-width: 992px) {
    .dl-grid, .dl-ty-banner {
        grid-template-columns: 1fr;
    }
    .dl-hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .dl-hero-right {
        justify-content: center;
        text-align: center;
    }
    .dl-hero-right h1 {
        font-size: 2.5rem;
    }
    .dl-hero {
        padding: 60px 0;
        min-height: auto;
    }
    
    /* Reduce padding between sections on mobile */
    .dl-intro {
        padding: 50px 0;
    }
    
    .dl-section {
        padding: 50px 0;
    }
    
    .dl-other-ways {
        padding: 50px 0;
    }
    
    /* Fix Madilyne card image positioning on mobile */
    .dl-madilyne-card {
        background-position: center top;
        min-height: 400px;
    }
}

/* Additional Neon CRM Form Overrides */
/* These styles help reduce spacing and improve the embedded form appearance */
.dl-donation-widget > style {
    display: none; /* Hide inline styles if they cause conflicts */
}

/* Ensure the iframe container has no extra spacing */
.dl-donation-widget > span {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Force clean spacing on all direct children */
.dl-donation-widget > * {
    margin: 0;
    padding: 0;
}

.dl-donation-widget > script + style + span {
    margin-top: 0 !important;
}