/* DDMS (Direct Debit Management Solution) Page Styles */

/* Button Styles */
.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-block;
    cursor: pointer;
}

.btn-outline:hover {
    background: white;
    color: #e91e63;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

.btn-lg {
    padding: 1.25rem 3rem;
    font-size: 1.1rem;
}

.btn-primary.btn-lg {
    background: white;
    color: #e91e63;
}

.btn-primary.btn-lg:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

/* Hero Section */
.ddms-hero {
    padding: 150px 0 100px;
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.5) 0%, rgba(240, 98, 146, 0.5) 100%),
                url('../images/bacs-hero-banner.jpg') center/cover no-repeat fixed;
    color: white;
    position: relative;
    overflow: hidden;
}

.ddms-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h60v60H0z" fill="none"/><path d="M30 0l30 30-30 30L0 30z" fill="%23ffffff" opacity="0.05"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    position: relative;
    z-index: 2;
}

.badge.gradient {
    background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.1));
    border: 1px solid rgba(255,255,255,0.3);
}

.ddms-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin: 1rem 0;
    line-height: 1.2;
}

.ddms-hero .lead {
    font-size: 1.25rem;
    line-height: 1.6;
    margin: 1.5rem 0;
    opacity: 0.95;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.hero-visual {
    position: relative;
    z-index: 2;
}

.hexagon-stack {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 0 auto;
}

.hex {
    position: absolute;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.1));
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    backdrop-filter: blur(10px);
    animation: float 3s ease-in-out infinite;
}

.hex-1 {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0s;
}

.hex-2 {
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    animation-delay: 0.5s;
}

.hex-3 {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 1s;
}

.hex-4 {
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    animation-delay: 1.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(-50%); }
    50% { transform: translateY(-20px) translateX(-50%); }
}

.hex-2, .hex-4 {
    animation-name: float-x;
}

@keyframes float-x {
    0%, 100% { transform: translateY(-50%) translateX(0); }
    50% { transform: translateY(-50%) translateX(-20px); }
}

/* Features Overview */
.features-overview {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(233,30,99,0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--gradient-end) 100%);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.feature-card > p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    padding: 0.5rem 0;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.feature-list i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

/* Industry Solutions */
.industry-solutions {
    padding: 6rem 0;
    background: white;
}

.solutions-category {
    margin-bottom: 4rem;
}

.solutions-category:last-child {
    margin-bottom: 0;
}

.category-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.category-title i {
    color: var(--primary-color);
    font-size: 1.8rem;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.solution-card {
    background: linear-gradient(135deg, rgba(233,30,99,0.02) 0%, rgba(240,98,146,0.02) 100%);
    border: 2px solid rgba(233,30,99,0.1);
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.solution-card:hover {
    border-color: rgba(233,30,99,0.3);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(233,30,99,0.1);
}

.solution-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--gradient-end) 100%);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1rem;
}

.solution-card h4 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.solution-card p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.solution-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.solution-card ul li {
    padding: 0.4rem 0;
    color: var(--text-light);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.solution-card ul i {
    color: var(--primary-color);
    font-size: 0.8rem;
}

/* Compact Solutions Grid */
.solutions-grid.compact {
    grid-template-columns: repeat(3, 1fr);
}

.solution-card-compact {
    background: white;
    border: 2px solid rgba(233,30,99,0.1);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.solution-card-compact:hover {
    border-color: rgba(233,30,99,0.3);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(233,30,99,0.1);
}

.solution-card-compact i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
}

.solution-card-compact h5 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.solution-card-compact p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

/* Direct Credits Section */
.direct-credits {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.credits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.credit-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.credit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(233,30,99,0.15);
}

.credit-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--gradient-end) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    margin-bottom: 1.5rem;
}

.credit-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.credit-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.credit-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.credit-card ul li {
    padding: 0.5rem 0;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.credit-card ul i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

/* Pricing Section */
.pricing-section {
    padding: 6rem 0;
    background: white;
}

.pricing-calculator {
    max-width: 900px;
    margin: 3rem auto 0;
    background: linear-gradient(135deg, rgba(233,30,99,0.02) 0%, rgba(240,98,146,0.02) 100%);
    border: 2px solid rgba(233,30,99,0.1);
    border-radius: 20px;
    padding: 3rem;
}

.pricing-calculator h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    text-align: center;
    color: var(--text-dark);
}

.calculator-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 3rem;
}

.calculator-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.slider-control {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.slider-control label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1rem;
}

.slider-control label {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.label-text {
    font-size: 1.1rem;
    font-weight: 700;
}

.label-desc {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-light);
    font-style: italic;
}

.slider-control input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--gradient-end));
    outline: none;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.slider-control input[type="range"]:hover {
    opacity: 1;
}

.slider-control input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.slider-control input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    border: none;
}

.slider-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
}

.pricing-breakdown {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.pricing-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid rgba(233,30,99,0.1);
}

.pricing-section:last-of-type {
    border-bottom: none;
    margin-bottom: 1rem;
}

.pricing-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(233,30,99,0.05);
}

.pricing-row:last-child {
    border-bottom: none;
}

.pricing-row.highlight {
    background: linear-gradient(135deg, rgba(233,30,99,0.05), rgba(240,98,146,0.05));
    padding: 0.75rem 1rem;
    margin: 0.5rem -1rem 0;
    border-radius: 8px;
    border-bottom: none;
}

.pricing-row.highlight strong {
    color: var(--primary-color);
    font-size: 1.15rem;
}

.pricing-row.total {
    margin-top: 1rem;
    padding-top: 1.5rem;
    border-top: 2px solid rgba(233,30,99,0.2);
    font-size: 1.2rem;
}

.pricing-row.total strong {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pricing-tiers-info {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 2px solid rgba(233,30,99,0.1);
}

.pricing-tiers-info h4 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--text-dark);
}

.tier-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.tier-info {
    background: white;
    border: 2px solid rgba(233,30,99,0.1);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.tier-info h5 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.tier-volume {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.tier-price {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.tier-note {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 0.5rem;
    font-style: italic;
}

.pricing-note {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 2rem;
    font-style: italic;
}

/* API Section */
.api-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.api-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.api-text .lead {
    font-size: 1.15rem;
    margin: 1rem 0 2rem;
    color: var(--text-light);
}

.api-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 2rem 0;
}

.api-feature {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.api-feature i {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--gradient-end) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    flex-shrink: 0;
}

.api-feature h4 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    color: var(--text-dark);
}

.api-feature p {
    font-size: 0.95rem;
    margin: 0;
    color: var(--text-light);
}

.code-window {
    background: #1a1a2e;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.code-header {
    background: #2d2d44;
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.code-title {
    margin-left: auto;
    color: #8b8b8b;
    font-size: 0.9rem;
}

.code-content {
    padding: 2rem;
    overflow-x: auto;
}

.code-content pre {
    margin: 0;
    color: #e0e0e0;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

.code-comment {
    color: #6a994e;
}

/* Final CTA */
.final-cta {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--gradient-end) 100%);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content .lead {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: 3rem;
}

.cta-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin: 3rem 0;
    padding: 3rem 0;
    border-top: 1px solid rgba(255,255,255,0.2);
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.cta-stat {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-content,
    .api-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hexagon-stack {
        width: 300px;
        height: 300px;
        margin-top: 2rem;
    }

    .hex {
        width: 90px;
        height: 90px;
        font-size: 2rem;
    }

    .ddms-hero h1 {
        font-size: 2.5rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .solutions-grid {
        grid-template-columns: 1fr;
    }

    .solutions-grid.compact {
        grid-template-columns: repeat(2, 1fr);
    }

    .credits-grid {
        grid-template-columns: 1fr;
    }

    .calculator-controls {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .tier-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .ddms-hero {
        padding: 120px 0 80px;
    }

    .ddms-hero h1 {
        font-size: 2rem;
    }

    .ddms-hero .lead {
        font-size: 1.1rem;
    }

    .hero-features {
        flex-direction: column;
        gap: 0.75rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .hexagon-stack {
        width: 250px;
        height: 250px;
    }

    .hex {
        width: 70px;
        height: 70px;
        font-size: 1.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .solutions-grid.compact {
        grid-template-columns: 1fr;
    }

    .tier-grid {
        grid-template-columns: 1fr;
    }

    .cta-stats {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }
}
