
/* General styles */
html, body {
    height: 100%;
    margin: 0;
    color: #000; /* Ensure default text color is black */
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.section {
    padding: 4rem 1rem; /* Added padding for better responsiveness */
}

/* Hero section */
.hero.is-primary .hero-body {
    background: url('https://images.stockcake.com/public/2/0/2/2028cec7-1ccd-4264-8a3c-2475569b247e/abstract-colorful-circles-stockcake.jpg') no-repeat center center;
    background-size: cover;
}

/* Ensure title and subtitle text color is white */
.hero.is-primary .title,
.hero.is-primary .subtitle {
    color: #fff;
}

/* Form styles */
.box {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Restrict Turnstile widget width */
.cf-turnstile {
    max-width: 100%;
    box-sizing: border-box;
}

/* How It Works section */
.section.has-background {
    background-color: #fafafa;
    position: relative;
    overflow: hidden;
    padding-bottom: 180px; 
    min-height: 800px;
}

.section.has-background::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: repeating-linear-gradient(
        45deg,
        #f0f0f0,
        #f0f0f0 1px,
        #fafafa 1px,
        #fafafa 20px
    );
    z-index: 0;
}

.workflow {
    position: relative;
    z-index: 1;
    margin-top: 2rem;
}

.workflow-step {
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

.workflow-step.left { justify-content: flex-start; }
.workflow-step.center { justify-content: center; }
.workflow-step.right { justify-content: flex-end; }

.workflow-card {
    padding: 1rem;
    border: 2px dashed #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background: #fff;
    max-width: 100%; /* Ensure cards are responsive */
    animation: fadeIn 1s ease-in-out;
}

.step-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.step-description {
    font-size: 1rem;
    color: #888;
}

/* CTA section */
.cta-section {
    background-image: url('https://images.stockcake.com/public/c/d/3/cd315534-76db-4f6f-aa11-e6ab46410dc9/geometric-pattern-display-stockcake.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 4rem 1rem; /* Adjusted padding for better responsiveness */
    display: flex;
    align-items: center;
    margin-top: 24px;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.3);
}

.cta-section .hero-body {
    z-index: 1;
    width: 100%;
}

.cta-section .container {
    max-width: 900px;
}

.cta-section .title,
.cta-section .subtitle {
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.cta-section .title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.cta-section .subtitle {
    font-size: 1.75rem;
    font-weight: 400;
    line-height: 1.4;
}

/* Footer */
.footer {
    margin-top: auto;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .hero .title {
        font-size: 2rem;
    }
    .hero .subtitle {
        font-size: 1.5rem;
    }
    .workflow-step {
        flex-direction: column;
        align-items: center;
    }
    .cta-section .title {
        font-size: 2.5rem;
    }
    .cta-section .subtitle {
        font-size: 1.5rem;
    }
    .section {
        padding: 2rem 1rem; /* Adjust padding for smaller screens */
    }
    .workflow-card {
        max-width: 90%; /* Ensure cards are responsive on smaller screens */
    }
    .container {
        margin-left: 18px;
        margin-right: 18px;
    }
}
