/* How It Works Page Styles */

/* Hero section */
.how-it-works-hero {
    background: linear-gradient(135deg, #303163 0%, #1A1A36 100%);
    color: white;
    padding: 80px 0 60px;
    text-align: center;
}

.how-it-works-hero h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.how-it-works-hero p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.9);
}

/* Process Steps */
.steps-process {
    padding: 80px 0;
    background-color: #ffffff;
}

.process-timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 40px;
    width: 4px;
    background-color: rgba(218, 0, 50, 0.2);
}

.process-step {
    position: relative;
    padding-left: 100px;
    margin-bottom: 80px;
}

.process-step:last-child {
    margin-bottom: 0;
}

.step-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #DA0032;
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 5px 15px rgba(218, 0, 50, 0.3);
}

.step-content {
    background-color: #f9f9fd;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.step-content h2 {
    font-size: 1.8rem;
    color: #303163;
    margin-bottom: 20px;
    font-weight: 600;
}

.step-content p {
    font-size: 1.1rem;
    color: #4a4a6a;
    margin-bottom: 20px;
    line-height: 1.6;
}

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

.feature-list li {
    padding: 8px 0;
    color: #4a4a6a;
    display: flex;
    align-items: flex-start;
}

.feature-list li i {
    color: #DA0032;
    margin-right: 10px;
    margin-top: 4px;
}

.step-image {
    margin-top: 30px;
    text-align: center;
}

.step-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Detailed Process */
.detailed-process {
    padding: 80px 0;
    background-color: #f9f9fd;
}

.detailed-process .section-header {
    text-align: center;
    margin-bottom: 50px;
}

.detailed-process h2 {
    font-size: 2.2rem;
    color: #303163;
    margin-bottom: 15px;
}

.detailed-process .section-header p {
    font-size: 1.2rem;
    color: #4a4a6a;
    max-width: 700px;
    margin: 0 auto;
}

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

.accordion-item {
    margin-bottom: 15px;
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
}

.accordion-button {
    font-size: 1.2rem;
    font-weight: 600;
    color: #303163;
    background-color: white;
    padding: 20px 25px;
}

.accordion-button:not(.collapsed) {
    color: #DA0032;
    background-color: white;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(218, 0, 50, 0.1);
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23DA0032' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
}

.accordion-body {
    padding: 20px 25px 30px;
    background-color: white;
}

.accordion-body p {
    color: #4a4a6a;
    margin-bottom: 15px;
}

.accordion-body ul {
    list-style: none;
    padding: 0;
}

.accordion-body ul li {
    position: relative;
    padding: 8px 0 8px 25px;
    color: #4a4a6a;
}

.accordion-body ul li::before {
    content: "•";
    color: #DA0032;
    font-size: 1.2rem;
    position: absolute;
    left: 0;
    top: 6px;
}

/* Signer Experience */
.signer-experience {
    padding: 80px 0;
    background-color: #ffffff;
    text-align: center;
}

.signer-experience .section-header {
    margin-bottom: 60px;
}

.signer-experience h2 {
    font-size: 2.2rem;
    color: #303163;
    margin-bottom: 15px;
}

.signer-experience .section-header p {
    font-size: 1.2rem;
    color: #4a4a6a;
    max-width: 700px;
    margin: 0 auto;
}

.experience-steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.experience-step {
    flex: 1;
    min-width: 180px;
    max-width: 220px;
    background-color: #f9f9fd;
    border-radius: 10px;
    padding: 30px 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.experience-step:hover {
    transform: translateY(-10px);
}

.experience-icon {
    font-size: 2.5rem;
    color: #DA0032;
    margin-bottom: 20px;
}

.experience-step h3 {
    font-size: 1.3rem;
    color: #303163;
    margin-bottom: 15px;
    font-weight: 600;
}

.experience-step p {
    font-size: 0.95rem;
    color: #4a4a6a;
}

/* API Integration */
.api-integration {
    padding: 80px 0;
    background-color: #f9f9fd;
}

.two-column-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    gap: 40px;
}

.content-column {
    flex: 1;
    min-width: 300px;
}

.content-column h2 {
    font-size: 2rem;
    color: #303163;
    margin-bottom: 20px;
}

.content-column p {
    font-size: 1.1rem;
    color: #4a4a6a;
    margin-bottom: 25px;
    line-height: 1.6;
}

.integration-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.integration-list li {
    padding: 10px 0;
    color: #4a4a6a;
    display: flex;
    align-items: flex-start;
    font-size: 1.05rem;
}

.integration-list li i {
    color: #DA0032;
    margin-right: 12px;
    margin-top: 4px;
}

.image-column {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.image-column img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

/* Use Cases */
.use-cases {
    padding: 80px 0;
    background-color: #ffffff;
}

.use-cases .section-header {
    text-align: center;
    margin-bottom: 50px;
}

.use-cases h2 {
    font-size: 2.2rem;
    color: #303163;
    margin-bottom: 15px;
}

.use-cases .section-header p {
    font-size: 1.2rem;
    color: #4a4a6a;
    max-width: 700px;
    margin: 0 auto;
}

.use-case-tabs {
    max-width: 900px;
    margin: 0 auto;
}

.tabs-navigation {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #e5e5e5;
}

.tab-btn {
    background: none;
    border: none;
    padding: 10px 20px;
    margin: 0 5px 10px;
    font-size: 1.05rem;
    color: #4a4a6a;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    color: #DA0032;
}

.tab-btn.active {
    color: #DA0032;
    background-color: rgba(218, 0, 50, 0.05);
    font-weight: 600;
}

.tab-content {
    display: none;
    background-color: #f9f9fd;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.tab-content.active {
    display: block;
}

.tab-content h3 {
    font-size: 1.5rem;
    color: #303163;
    margin-bottom: 15px;
}

.tab-content p {
    font-size: 1.05rem;
    color: #4a4a6a;
    margin-bottom: 20px;
}

.tab-content ul {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.tab-content ul li {
    position: relative;
    padding: 8px 0 8px 25px;
    color: #4a4a6a;
}

.tab-content ul li::before {
    content: "•";
    color: #DA0032;
    font-size: 1.2rem;
    position: absolute;
    left: 0;
    top: 6px;
}

.tab-image {
    text-align: center;
}

.tab-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* FAQ Section */
.how-it-works-faq {
    padding: 80px 0;
    background-color: #f9f9fd;
}

.how-it-works-faq .section-header {
    text-align: center;
    margin-bottom: 50px;
}

.how-it-works-faq h2 {
    font-size: 2.2rem;
    color: #303163;
    margin-bottom: 15px;
}

.how-it-works-faq .section-header p {
    font-size: 1.2rem;
    color: #4a4a6a;
    max-width: 700px;
    margin: 0 auto;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    overflow: hidden;
    background-color: white;
}

.faq-question {
    padding: 20px;
    background-color: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question h3 {
    font-size: 1.1rem;
    margin: 0;
    color: #303163;
    font-weight: 600;
}

.faq-toggle i {
    transition: transform 0.3s ease;
    color: #DA0032;
}

.faq-item.active .faq-toggle i {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 20px 20px;
    max-height: 1000px;
}

.faq-answer p {
    margin: 0;
    color: #4a4a6a;
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Common CTA */
.cta {
    background: linear-gradient(135deg, #303163 0%, #1A1A36 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.9);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.btn-large {
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 600;
}

.btn-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

.cta-secondary {
    font-size: 0.9rem !important;
    opacity: 0.8;
    margin-top: 15px !important;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .process-step {
        padding-left: 80px;
    }
    
    .step-number {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .process-timeline::before {
        left: 30px;
    }
    
    .step-content {
        padding: 30px;
    }
    
    .experience-steps {
        gap: 15px;
    }
    
    .experience-step {
        min-width: 160px;
        max-width: 200px;
    }
}

@media (max-width: 768px) {
    .how-it-works-hero h1 {
        font-size: 2.5rem;
    }
    
    .how-it-works-hero p {
        font-size: 1.1rem;
    }
    
    .step-content h2 {
        font-size: 1.6rem;
    }
    
    .step-content {
        padding: 25px;
    }
    
    .experience-steps {
        flex-direction: column;
        align-items: center;
    }
    
    .experience-step {
        max-width: 100%;
        width: 100%;
    }
    
    .two-column-content {
        flex-direction: column;
    }
    
    .image-column {
        order: -1;
    }
    
    .tabs-navigation {
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 5px;
        margin-bottom: 20px;
    }
    
    .tab-btn {
        padding: 8px 15px;
        font-size: 0.95rem;
        white-space: nowrap;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
    }
    
    .cta-content p {
        font-size: 1.1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .btn-large {
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
    }
}

@media (max-width: 576px) {
    .process-step {
        padding-left: 70px;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.6rem;
    }
    
    .process-timeline::before {
        left: 25px;
    }
    
    .step-content h2 {
        font-size: 1.4rem;
    }
    
    .step-content p {
        font-size: 1rem;
    }
    
    .accordion-button {
        font-size: 1.1rem;
        padding: 15px 20px;
    }
    
    .accordion-body {
        padding: 15px 20px 25px;
    }
}

/* Process Overview Section */
.process-overview .step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #DA0032;
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.process-overview .step-content {
    margin-bottom: 20px;
}

.process-overview .step-image {
    text-align: center;
}

.process-overview .step-image img {
    max-width: 200px;
    height: auto;
}

/* Feature Highlights */
.feature-highlights .feature-icon {
    font-size: 2.5rem;
    color: #303163;
    margin-bottom: 15px;
    text-align: center;
}

.feature-highlights h3 {
    text-align: center;
    margin-bottom: 10px;
}

.feature-highlights p {
    text-align: center;
}

/* API Integration Section */
.api-integration .section-grid {
    align-items: center;
}

.api-benefits {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
}

.api-benefits li {
    padding-left: 30px;
    position: relative;
    margin-bottom: 10px;
}

.api-benefits li:before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: #DA0032;
}

.api-image {
    text-align: center;
}

.api-image img {
    max-width: 100%;
    height: auto;
}

/* Use Cases Section */
.use-cases-container {
    margin-top: 30px;
}

.tabs-navigation {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 30px;
}

.tab-button {
    padding: 10px 20px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 500;
    color: #6c757d;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.tab-button:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: transparent;
    transition: background-color 0.3s ease;
}

.tab-button.active {
    color: #DA0032;
}

.tab-button.active:after {
    background-color: #DA0032;
}

.tab-button:hover {
    color: #DA0032;
}

.tabs-content {
    position: relative;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.use-case-info h3 {
    margin-top: 0;
    margin-bottom: 15px;
}

.use-case-benefits {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.use-case-benefits li {
    padding-left: 30px;
    position: relative;
    margin-bottom: 10px;
}

.use-case-benefits li:before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: #DA0032;
}

.use-case-image {
    text-align: center;
}

.use-case-image img {
    max-width: 100%;
    height: auto;
}

/* Section Grid Layout */
.section-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.grid-card {
    flex: 1 1 300px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grid-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .tabs-navigation {
        flex-direction: column;
    }
    
    .tab-button {
        width: 100%;
        text-align: left;
        padding: 15px;
        border-bottom: 1px solid #e9ecef;
    }
    
    .tab-button:after {
        display: none;
    }
    
    .use-case-image {
        margin-top: 20px;
    }
} 