body {
    background-color: #f8fafc;
    color: #1e293b;
    letter-spacing: 0.05em;
    word-break: auto-phrase;
}

.bg-grid-pattern {
    background-image: linear-gradient(to right, #e2e8f0 1px, transparent 1px),
        linear-gradient(to bottom, #e2e8f0 1px, transparent 1px);
    background-size: 40px 40px;
}

.glass-header {
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid #e2e8f0;
}

.industrial-border {
    border: 1px solid #cbd5e1;
    position: relative;
}

.industrial-border::before,
.industrial-border::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background-color: #0f172a;
}

.industrial-border::before {
    top: -1px;
    left: -1px;
}

.industrial-border::after {
    top: -1px;
    right: -1px;
}

.fv-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    animation: fv-slide-fade 18s infinite;
}

.fv-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    animation: fv-slide-scale 18s infinite;
}

.fv-slide:nth-child(1),
.fv-slide:nth-child(1) img {
    animation-delay: 0s;
}

.fv-slide:nth-child(2),
.fv-slide:nth-child(2) img {
    animation-delay: 6s;
}

.fv-slide:nth-child(3),
.fv-slide:nth-child(3) img {
    animation-delay: 12s;
}

@keyframes fv-slide-fade {
    0% {
        opacity: 0;
    }

    8% {
        opacity: 1;
    }

    28% {
        opacity: 1;
    }

    36% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

@keyframes fv-slide-scale {
    0% {
        transform: scale(1);
    }

    36% {
        transform: scale(1.12);
    }

    100% {
        transform: scale(1.12);
    }
}

.chart-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    height: 300px;
    min-height: 300px;
    max-height: 400px;
}

@media (min-width: 768px) {
    .chart-container {
        height: 380px;
    }
}

.sim-btn.active {
    background-color: #045f38;
    color: white;
    border-color: #045f38;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 0;
}

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

.reveal-text {
    opacity: 0;
    visibility: hidden;
}


.factory-q1 {
  .wpcf7-list-item-label {
    font-size: unset;
  }
}

.factory-q1 .wpcf7-list-item {
    display: block; /* หรือ inline-block */
    margin-bottom: 12px;
}
.factory-q1 .wpcf7-list-item label {
    display: flex;
    align-items: flex-start;
    padding: 1.25rem;
    border: 2px solid #e2e8f020;
    background-color: #f8fafc80;
    cursor: pointer;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

/* Hover Effect */
.factory-q1 .wpcf7-list-item label:hover {
    background-color: #f1f5f9;
}

/* Checkbox has-[:checked] */
.factory-q1 .wpcf7-list-item label:has(input:checked) {
    background-color: #ecfdf580;
    border-color: #045f3820;
}

/* Input (Accent Color) */
.factory-q1 input[type="checkbox"] {
  width: 1.25rem;
  height: 1.25rem;
  accent-color: #045F38;
  margin-right: 12px;
  margin-top: 0.25rem;
}
