/* Seychelles Economic Substance Calculator - BVI Style */
.sesc-calculator {
    max-width: 900px;
    margin: 0 auto 40px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
    color: #333;
    line-height: 1.6;
}

/* Header */
.sesc-header {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    border-left: 4px solid #1173B9;
}

.sesc-header h1 {
    color: #1173B9;
    font-size: 28px;
    margin-bottom: 20px;
    font-weight: 600;
}

.sesc-intro {
    font-size: 15px;
    color: #555;
}

.sesc-intro ul {
    margin: 15px 0;
    padding-left: 25px;
}

.sesc-intro li {
    margin-bottom: 8px;
}

.sesc-note {
    font-style: italic;
    color: #666;
    margin-top: 15px;
    font-size: 14px;
}

/* Accordion Questions */
.sesc-question {
    margin-bottom: 20px;
    animation: fadeIn 0.4s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sesc-accordion {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: all 0.3s ease;
}

.sesc-accordion:hover {
    border-color: #1173B9;
    box-shadow: 0 4px 12px rgba(17, 115, 185, 0.1);
}

.sesc-accordion-header {
    background: linear-gradient(135deg, #1173B9 0%, #0e5a91 100%);
    color: white;
    padding: 20px 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Step Header Containers (New) */
.sesc-step-container {
    background: #1173B9;
    /* Fallback */
    background: linear-gradient(135deg, #1173B9 0%, #0e5a91 100%);
    color: white;
    padding: 20px 25px;
    border-radius: 8px;
    /* Standalone rounded */
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Step 1 Specific - Light Orange Banner */
#step-1-header {
    background: #fff3e0;
    border: 1px solid #ffe0b2;
    border-left: 5px solid #ff9800;
    color: #ef6c00;
    box-shadow: none;
    /* Flat look */
    background-image: none;
    /* Remove gradient */
}

#step-1-header h3 {
    color: #ef6c00;
    font-weight: 700;
}

#step-1-header .sesc-step-badge {
    background: #ffe0b2;
    color: #e65100;
    border: 1px solid #ffcc80;
}

.sesc-step-container h3 {
    margin: 0;
    font-size: 20px;
    /* Matching accordion header */
    font-weight: 600;
    color: white;
}

/* Updated Q Number / Badge */
.sesc-q-number,
.sesc-step-badge {
    background: rgba(255, 255, 255, 0.25);
    min-width: 40px;
    height: 40px;
    border-radius: 50%;
    /* Default circle */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
    padding: 0 10px;
    /* Allow expansion */
}

/* Specific pill shape for 'Step X' text */
.sesc-step-badge {
    border-radius: 20px;
    /* Pill shape */
    width: auto;
    font-size: 16px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.sesc-accordion-body {
    padding: 30px 25px;
    background: #fafafa;
}

/* Info Box */
.sesc-info-box {
    background: #e8f4f8;
    border-left: 4px solid #2ea3f2;
    padding: 15px 20px;
    margin-bottom: 25px;
    border-radius: 4px;
}

.sesc-info-box p {
    margin: 0 0 10px 0;
    color: #31708f;
    font-size: 14px;
}

.sesc-info-box ol,
.sesc-info-box ul {
    margin: 10px 0 0 20px;
    color: #31708f;
}

.sesc-info-box li {
    margin-bottom: 5px;
}

/* Question Label */
.sesc-question-label {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

/* Options */
.sesc-options {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.sesc-options-vertical {
    flex-direction: column;
}

.sesc-btn {
    padding: 14px 30px;
    border: 2px solid #ddd;
    background: white;
    color: #333;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    flex: 1;
    min-width: 120px;
}

.sesc-btn:hover {
    border-color: #1173B9;
    background: #1173B9;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(217, 83, 79, 0.3);
}

.sesc-btn-yes {
    border-color: #26ae60;
}

.sesc-btn-yes:hover {
    background: #26ae60;
    border-color: #26ae60;
}

.sesc-btn-no {
    border-color: #1173B9;
}

.sesc-btn-no:hover {
    background: #1173B9;
    border-color: #1173B9;
}

.sesc-btn-option {
    flex: 1 1 100%;
    text-align: left;
    padding: 16px 20px;
}

/* Multi-Select Active State */
.sesc-btn.active {
    background-color: #e8f5e9;
    border-color: #26ae60;
    color: #1e8e4e;
    position: relative;
    font-weight: 600;
}

.sesc-btn.active::after {
    content: '✓';
    position: absolute;
    right: 20px;
    font-size: 18px;
    color: #26ae60;
}

/* Results */
.sesc-result {
    margin-top: 30px;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sesc-result-box {
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 25px;
}

.sesc-result-in-scope {
    background: #dff0d8;
    border: 2px solid #5cb85c;
}

.sesc-result-out-scope {
    background: #f2dede;
    border: 2px solid #d9534f;
}

.sesc-result-reduced {
    background: #fcf8e3;
    border: 2px solid #f0ad4e;
}

.sesc-result-box h2 {
    margin: 0 0 15px 0;
    font-size: 24px;
}

.sesc-result-in-scope h2 {
    color: #26ae60;
}

.sesc-result-out-scope h2 {
    color: #d9534f;
}

.sesc-result-reduced h2 {
    color: #f0ad4e;
}

.sesc-result-box p {
    font-size: 16px;
    margin-bottom: 12px;
}

.sesc-result-box ul {
    margin: 15px 0;
    padding-left: 25px;
}

.sesc-result-box li {
    margin-bottom: 8px;
}

/* Contact Form */
.sesc-contact-section {
    margin-top: 40px;
    animation: fadeIn 0.5s ease-in;
}

.sesc-contact-header {
    background: #1173B9;
    color: white;
    padding: 25px;
    border-radius: 8px 8px 0 0;
}

.sesc-contact-header h2 {
    margin: 0 0 10px 0;
    font-size: 24px;
}

.sesc-contact-header p {
    margin: 0;
    font-size: 15px;
    opacity: 0.95;
}

.sesc-contact-form-wrapper {
    background: #f8f9fa;
    padding: 30px;
    border: 2px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 8px 8px;
}

.sesc-form-group {
    margin-bottom: 20px;
}

.sesc-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 15px;
}

.sesc-form-group input,
.sesc-form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.sesc-form-group input:focus,
.sesc-form-group textarea:focus {
    outline: none;
    border-color: #1173B9;
    box-shadow: 0 0 0 3px rgba(17, 115, 185, 0.1);
}

.sesc-form-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.sesc-btn-primary {
    background: #1173B9;
    color: white;
    border: 2px solid #d9534f;
    padding: 14px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sesc-btn-primary:hover {
    background: #0e5a91;
    border-color: #0e5a91;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(217, 83, 79, 0.3);
}

.sesc-btn-secondary {
    background: white;
    color: #666;
    border: 2px solid #ddd;
}

.sesc-btn-secondary:hover {
    border-color: #999;
    color: #333;
}

/* Status Messages */
.sesc-status-message {
    margin-top: 20px;
    padding: 15px 20px;
    border-radius: 6px;
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.sesc-status-message.success {
    background: #dff0d8;
    color: #3c763d;
    border: 1px solid #d6e9c6;
    display: block;
}

.sesc-status-message.error {
    background: #f2dede;
    color: #a94442;
    border: 1px solid #ebccd1;
    display: block;
}

/* Loading Spinner */
.sesc-loading {
    text-align: center;
    padding: 40px 20px;
}

.sesc-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #1173B9;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .sesc-calculator {
        margin: 20px;
    }

    .sesc-header {
        padding: 20px;
    }

    .sesc-header h1 {
        font-size: 22px;
    }

    .sesc-accordion-header {
        padding: 15px 20px;
    }

    .sesc-accordion-header h3 {
        font-size: 17px;
    }

    .sesc-accordion-body {
        padding: 20px 15px;
    }

    .sesc-options {
        flex-direction: column;
    }

    .sesc-btn {
        width: 100%;
    }

    .sesc-form-actions {
        flex-direction: column;
    }
}

/* Answered Question Styling - Collapsible Accordion */
.sesc-question.answered .sesc-accordion {
    border-color: #26ae60;
}

.sesc-question.answered .sesc-accordion-header {
    background: linear-gradient(135deg, #26ae60 0%, #1e8e4e 100%);
    cursor: pointer;
    position: relative;
}

.sesc-question.answered .sesc-accordion-header::after {
    content: '▼';
    position: absolute;
    right: 25px;
    font-size: 14px;
    transition: transform 0.3s ease;
}

.sesc-question.answered .sesc-accordion-header:hover {
    background: linear-gradient(135deg, #1e8e4e 0%, #146c36 100%);
}

.sesc-question.answered .sesc-accordion-body {
    display: none;
}

/* Show answered questions in collapsed state */
.sesc-question.answered {
    display: block !important;
    margin-bottom: 15px;
}

/* Smooth transitions */
.sesc-accordion-header {
    transition: all 0.3s ease;
}

.sesc-accordion-body {
    transition: max-height 0.3s ease;
}

/* Divi Fixed Header Fix */
#main-header.et-fixed-header {
    background-color: #fff !important;
    box-shadow: 0 0 7px rgba(0, 0, 0, 0.1) !important;
}

#main-header.et-fixed-header #top-menu a,
#main-header.et-fixed-header #et_search_icon:before,
#main-header.et-fixed-header #et_mobile_nav_menu .mobile_menu_bar:before {
    color: #1173B9 !important;
}

#main-header.et-fixed-header #top-menu>li.current-menu-item>a {
    color: #26ae60 !important;
}

/* User Custom CSS - FIXED */
.et_pb_section_0_tb_body.et_pb_section {
    /* Removed large padding/margin that was breaking the layout */
    padding-top: 50px !important;
    padding-bottom: 40px !important;
    margin-top: 0 !important;
    /* Fix: Remove negative margin that hides title */
}

/* Center and Bold Page Title - TARGETED FIX */
.et_pb_section_0_tb_body .et_pb_post_title h1.entry-title {
    text-align: center !important;
    font-weight: 800 !important;
    font-size: 48px !important;
    display: block !important;
    width: 100% !important;
    margin: 0 auto 40px !important;
    color: #26ae60 !important;
    line-height: 1.2 !important;
    padding: 20px 0 !important;
}

/* Ensure title is visible on seychelles-calculator page */
body.page-id-1234 .et_pb_section_0_tb_body,
body[class*="seychelles"] .et_pb_section_0_tb_body {
    margin-top: 0 !important;
}

/* Force blue color on title - override all inline styles */
body.page-id-1234 .entry-title,
body[class*="seychelles"] .entry-title,
.et_pb_post_title h1.entry-title,
h1.entry-title {
    color: #26ae60 !important;
    position: relative !important;
    top: auto !important;
}