@charset "utf-8";
/* CSS Document */
html {max-width: 1920px;width: 100%!important;margin: 0 auto;overflow-x: hidden;}
html.breakScrollSmooth {
      scroll-behavior: auto !important;
    }
body {font-size: 20px; position: relative; color: #fff; max-width: 1920px; font-family: "IBM Plex Sans Thai", sans-serif;
margin: 0 auto;overflow-x: hidden;}
div {font-family: "IBM Plex Sans Thai", sans-serif;}
p {font-size: 20px; font-family: "IBM Plex Sans Thai", sans-serif; color: #fff;line-height: 30px}
*, *:before, *:after {box-sizing: border-box;}
*:before, *:after {-webkit-transition: all .3s ease-in-out;-moz-transition: all .3s ease-in-out;
-o-transition: all .3s ease-in-out;-ms-transition: all .3s ease-in-out;transition: all .3s ease-in-out;}
img {max-width: 100%;height: auto;}
ul,ol {font-family: "IBM Plex Sans Thai", sans-serif;}
a * {-webkit-transition: all .3s ease-in-out;-moz-transition: all .3s ease-in-out;
-o-transition: all .3s ease-in-out;-ms-transition: all .3s ease-in-out;transition: all .3s ease-in-out;}
a, div a, p a {color: #fff; text-decoration: none!important;outline: none;-webkit-transition: all .3s ease-in-out;-moz-transition: all .3s ease-in-out;
-o-transition: all .3s ease-in-out;-ms-transition: all .3s ease-in-out;transition: all .3s ease-in-out;}
a:hover, div a:hover, p a:hover {color: #fff;-webkit-transition: all .3s ease-in-out;-moz-transition: all .3s ease-in-out;
-o-transition: all .3s ease-in-out;-ms-transition: all .3s ease-in-out;transition: all .3s ease-in-out;}
header {position: relative;z-index: 999;top: 0;left: 50%; width: 100%;max-width:1920px; transform: translate(-50%, 0) !important;padding: 15px 0;
  background: #fff;box-shadow: 0 0 15px 1px rgba(0,0,0,0.07);}
h1 {margin-bottom: 0;font-family: "IBM Plex Sans Thai", sans-serif; font-size: 30px;line-height: 1.2;}
.section-box-inner h1 {display: none;font-weight: 400}
h2 {font-size: 30px;font-family: "IBM Plex Sans Thai", sans-serif;line-height: 1.2;font-weight: 400}
h3, h4 {font-size: 25px;font-family: "IBM Plex Sans Thai", sans-serif;line-height: 1.2;font-weight: 400}
.content-wrap-header {width:97%; max-width: 1200px; margin: 0 auto;overflow: visible;position: relative;}
.content-wrap {width:90%; margin: 0 auto; max-width: 1200px;position: relative;overflow: hidden;}
.wrap-menumain-row {display: flex;flex-wrap: wrap;align-items: center;justify-content: center;}
.logo-main {width: 15%;display: flex;
  align-items: center;justify-content: flex-start;}
.logo-main img {width: 186px;max-width: 100%}
.logo-main span {padding: 0 15px}

:root {
            --primary-red: #C61D23;
            --light-blue: #fff;
            --border-color: #000;
            --text-dark: #1E293B;
            --text-gray: #475569;
            --cyan-glow: #00E5FF;
            --bg-color: #fff;
        }
        .calculator-container {
            background: #FFFFFF;
            width: 100%;
            max-width: 100%;
            border-radius: 16px;
            box-shadow: 0 20px 40px rgba(0,0,0,0.1);
            overflow: hidden;
            border: 1px solid rgba(255,255,255,0.8);
            margin-top: 70px;
        }

        /* Header Section */
        .header-calculator {
            background: #C61D23;
            color: #fff;
            text-align: center;
            padding: 16px;
            font-size: 20px;
            font-weight: 500;
            letter-spacing: 0.5px;
            box-shadow: inset 0 -2px 5px rgba(0,0,0,0.1);
            line-height: 25px;
        }

        /* Main Content Grid */
        .content-boxwrap {
            display: flex;
            padding: 30px 30px 70px 30px;
            gap: 50px;
            background-color: var(--bg-color);
            position: relative;
            border: 1px solid #000;
            border-top: unset;
            border-bottom-left-radius: 30px;
            border-bottom-right-radius: 30px;
        }

        .colbox {
            flex: 1;
            display: flex;
            flex-direction: column;
        }

        .col-title {
            font-size: 18px;line-height: 23px;
            font-weight: 500;
            color: var(--text-dark);
            margin-bottom: 15px;
        }

        .col-subtitle {
            font-size: 14px;
            color: var(--text-gray);
            font-weight: 400;
            display: block;
        }

        /* Connector Arrows */
        .connector {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 30px;
            padding-top: 50px;
        }
        .connector svg {
            width: 100%;
            stroke: #94A3B8;
        }

        /* Column 1: Radio Buttons */
        .radio-list {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .radio-label {
            display: flex;
            align-items: center;
            background: white;
            border: 1px solid var(--border-color);
            border-radius: 10px;
            padding: 12px 16px;
            cursor: pointer;
            transition: all 0.2s ease;
            position: relative;
            box-shadow: 0 2px 5px rgba(0,0,0,0.02);
        }

        .radio-label input[type="radio"] {
            display: none;
        }

        .radio-circle {
            width: 18px;
            height: 18px;
            border: 2px solid #94A3B8;
            border-radius: 50%;
            margin-right: 15px;
            position: relative;
            flex-shrink: 0;
        }

        .radio-label input[type="radio"]:checked + .radio-circle {
            border-color: var(--primary-red);
        }

        .radio-label input[type="radio"]:checked + .radio-circle::after {
            content: "";
            width: 8px;
            height: 8px;
            background: var(--primary-red);
            border-radius: 50%;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
        }

        .radio-label input[type="radio"]:checked ~ .radio-text {
            color: var(--text-dark);
        }

        /* --- สไตล์เมื่อตัวเลือกถูกคลิก (Active) ให้เป็นสีแดง --- */
.radio-label.active {
    border: 1px solid #ef4444;
    background-color: #fef2f2;
}
.radio-label input[type="radio"]:checked + .radio-circle {
    border-color: #ef4444;
}
.radio-label input[type="radio"]:checked + .radio-circle::after {
    background: #ef4444;
}

        .mat-icon {
            width: 35px;
            height: 35px;
            margin-right: 15px;
            object-fit: contain;
            background: #f1f5f9;
            border-radius: 6px;
            padding: 4px;
        }

        .radio-text {
            display: flex;
            flex-direction: column;
        }
        .mat-name { font-weight: 400; font-size: 16px; line-height: 20px;color: var(--text-dark); }
        .mat-eng { font-size: 14px; color: var(--text-gray); }

        /* Column 2: Select Box */
        .custom-select {
            width: 100%;
            padding: 12px 16px;
            border: 1px solid var(--border-color);
            border-radius: 10px;
            font-size: 16px;
            color: var(--text-dark);
            background-color: var(--light-blue);
            cursor: pointer;
            outline: none;
            appearance: none;
            -webkit-appearance: none;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23ff0000'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 15px top 50%;
            background-size: 12px auto;
            box-shadow: 0 4px 6px rgba(0,0,0,0.02);
        }

        /* สร้างลิสต์แบบในรูปให้ดูเหมือนเปิดอยู่ (สำหรับช่องที่ 2) */
        .mock-select-list {
            margin-top: 10px;
            background: white;
            border: 1px solid var(--border-color);
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 4px 15px rgba(0,0,0,0.05);
        }
        .mock-option {
            padding: 12px 16px;
            font-size: 15px;
            cursor: pointer;
            border-bottom: 1px solid #F1F5F9;
            transition: 0.2s;
        }
        .mock-option:hover { background: #F8FAFC; }
        .mock-option.selected {
            background: #E2E8F0;
            font-weight: 400;
            border-left: 3px solid var(--primary-red);
        }

        /* Column 3: Result & Buttons */
        .result-box {
            background: linear-gradient(135deg, #ececec 0%, #e5e5e5 100%);
            /* เลียนแบบสี Cyan เรืองแสงในรูป */
            background: linear-gradient(135deg, #ececec 0%, #e5e5e5 100%);
            border: 2px solid #e5e5e5;
            border-radius: 12px;
            padding: 40px 20px;
            text-align: center;
            box-shadow: 0 10px 25px rgba(230, 230, 230, 0.3);
            position: relative;
            overflow: hidden;
            height: 220px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-direction: column;
        }

        .result-value {
            font-size: 42px;
            font-weight: 700;
            color: #0F172A;
            z-index: 2;
            text-shadow: 0px 2px 4px rgba(255,255,255,0.5);
        }

        .action-row {
            display: flex;
            gap: 15px;
            margin-top: 20px;
        }

        /* Responsive */
@media only screen and (max-width: 1536px) {
.logo-main img {
    width: 140px;
}
.header-calculator {
padding: 15px 15px 10px 15px;
    font-size: 16px;line-height: 20px;
}
.col-title {
    font-size: 16px;line-height: 20px;
    margin-bottom: 10px;
}
.col-subtitle {
    font-size: 12px;
}
.mat-name {
    font-size: 14px;line-height: 20px;
}
.mat-eng {
    font-size: 12px;
}
.custom-select {
    font-size: 14px;
        padding: 8px 8px;border-radius: 6px;
}
header {
    padding: 10px 0;
}
.radio-label {
    border-radius: 6px;
    padding: 8px 8px;
}
.result-box {
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 20px 20px;
    height: 180px;
}
.result-value {
    font-size: 35px;
}
}

@media only screen and (max-width: 820px) {
.content-boxwrap { flex-direction: column;gap: 35px;}
.result-box { height: auto; padding: 30px 20px;}
.calculator-container {margin-top: 35px;}
.logo-main {
  width: auto;
  justify-content: center;
}
.content-boxwrap .colbox,.content-boxwrap .col {width: 100%;flex: unset;}
.radio-list {
  flex-direction: unset;
  gap: 12px;
  flex-wrap: wrap;
}
.radio-label {
    width: 49%;
  }


}
@media only screen and (max-width: 610px) {
.radio-label {
    width: 48%;
  }
}

@media only screen and (max-width: 500px) {
.logo-main img {
  width: 140px;
}
.header-calculator {
  font-size: 18px;
}
.content-boxwrap {
  padding: 20px;
  margin-bottom: 50px;
}
.col-title {
  font-size: 17px;
}
.col-subtitle {
  font-size: 13px;
}
.mat-name,.custom-select {
  font-size: 15px;
}
.mat-eng {
  font-size: 13px;
}
.result-value {
  font-size: 35px;
}
.radio-label {
    width: 100%;
  }
}

