:root {
    --primary: #0b4ea2;
    --primary-dark: #083b7a;
    --primary-light: #eaf2fb;

    --secondary: #16a34a;
    --secondary-dark: #11803a;
    --secondary-light: #eaf8ef;

    --sky: #0ea5e9;
    --sky-light: #e6f7ff;

    --text-main: #0f172a;
    --text-soft: #475569;
    --text-on-dark: #ffffff;

    --bg: #f6f9fd;
    --surface: #ffffff;
    --border: #d9e5f2;

    --shadow-sm: 0 8px 24px rgba(8, 59, 122, 0.08);
    --shadow-md: 0 18px 45px rgba(8, 59, 122, 0.12);

    --radius-sm: 14px;
    --radius-md: 20px;
    --radius-lg: 28px;

    --container: 1200px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Noto Sans Thai";
    background: var(--bg);
    color: var(--text-main);
    line-height: 1.7;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
}

.container {
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(217, 229, 242, 0.85);
}

.header-inner {
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--text-main);
}

.brand-logo {
    width: 62px;
    height: 62px;
    object-fit: contain;
    background: #fff;
    border-radius: 50%;
    padding: 4px;
    box-shadow: var(--shadow-sm);
}

.brand-text h1 {
    margin: 0;
    font-family: "Noto Sans Thai";
    font-size: 1.2rem;
    line-height: 1.3;
    color: var(--primary-dark);
}

.brand-subtitle {
    display: inline-block;
    font-size: 0.82rem;
    color: var(--text-soft);
    margin-bottom: 2px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.main-nav a {
    color: var(--text-soft);
    font-weight: 600;
    padding: 10px 14px;
    border-radius: 999px;
    transition: 0.25s ease;
    white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary-dark);
    margin: 2px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Hero */
.hero-section {
    position: relative;
    overflow: hidden;
    padding: 72px 0 44px;
    background:
        radial-gradient(circle at top left, rgba(11, 78, 162, 0.12), transparent 30%),
        radial-gradient(circle at right center, rgba(22, 163, 74, 0.10), transparent 24%),
        linear-gradient(180deg, #ffffff 0%, #f6f9fd 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 36px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: 0.92rem;
    font-weight: 700;
    margin-bottom: 18px;
}

.hero-content h2 {
    margin: 0 0 16px;
    font-family: "Noto Sans Thai";
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    line-height: 1.25;
    color: var(--primary-dark);
}

.hero-content p {
    margin: 0;
    max-width: 720px;
    font-size: 1.05rem;
    color: var(--text-soft);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.hero-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.highlight-item {
    min-width: 130px;
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

.highlight-item strong {
    display: block;
    font-size: 1.2rem;
    color: var(--primary-dark);
}

.highlight-item span {
    font-size: 0.92rem;
    color: var(--text-soft);
}

/* Hero Card */
.hero-card {
    background: linear-gradient(180deg, #ffffff 0%, #f9fcff 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-md);
}

.hero-card-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: var(--primary-dark);
    font-weight: 700;
}

.status-dot {
    width: 12px;
    height: 12px;
    background: var(--secondary);
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(22, 163, 74, 0.14);
}

.camera-preview-list {
    display: grid;
    gap: 14px;
}

.camera-preview-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: #fff;
}

.camera-preview-item h3 {
    margin: 0 0 4px;
    font-size: 1rem;
    color: var(--text-main);
}

.camera-preview-item p {
    margin: 0;
    font-size: 0.92rem;
    color: var(--text-soft);
}

/* Sections */
.section {
    padding: 44px 0 72px;
}

.section-soft {
    background: linear-gradient(180deg, #f7fbff 0%, #eef6fb 100%);
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 26px;
}

.section-kicker {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--secondary-dark);
    font-weight: 700;
    font-size: 0.92rem;
}

.section-heading h2,
.info-panel-text h2 {
    margin: 0;
    font-family: "Noto Sans Thai";
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    color: var(--primary-dark);
}

.text-link {
    color: var(--primary);
    font-weight: 700;
}

/* Camera Cards */
.camera-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.camera-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.camera-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.camera-card-media {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Noto Sans Thai";
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
}

.media-blue {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

.media-green {
    background: linear-gradient(135deg, var(--secondary-dark), var(--secondary));
}

.media-sky {
    background: linear-gradient(135deg, #0284c7, var(--sky));
}

.camera-card-body {
    padding: 20px;
}

.camera-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.camera-card-head h3 {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.45;
}

.camera-card-body p {
    margin: 0 0 18px;
    color: var(--text-soft);
}

.card-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Info panel */
.info-panel {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 24px;
    align-items: center;
}

.info-panel-text p {
    color: var(--text-soft);
    margin-top: 12px;
}

.info-panel-box {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px 26px;
    box-shadow: var(--shadow-sm);
}

.info-panel-box ul {
    margin: 0;
    padding-left: 20px;
}

.info-panel-box li+li {
    margin-top: 10px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    font-weight: 700;
    transition: 0.25s ease;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    padding: 13px 22px;
    box-shadow: 0 10px 25px rgba(11, 78, 162, 0.24);
}

.btn-primary:hover {
    transform: translateY(-2px);
}

.btn-outline {
    border: 1.5px solid var(--primary);
    color: var(--primary);
    background: #fff;
    padding: 13px 22px;
}

.btn-outline:hover {
    background: var(--primary-light);
}

.btn-light {
    background: #fff;
    color: var(--primary-dark);
    border: 1px solid var(--border);
    padding: 10px 16px;
}

.btn-small {
    padding: 10px 16px;
    font-size: 0.92rem;
}

/* Tags */
.tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    min-height: 30px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
}

.tag-blue {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.tag-green {
    background: var(--secondary-light);
    color: var(--secondary-dark);
}

.tag-sky {
    background: var(--sky-light);
    color: #0369a1;
}

/* Footer */
.site-footer {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--text-on-dark);
    padding: 34px 0;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-inner h3 {
    margin-top: 0;
    margin-bottom: 8px;
    font-family: "Noto Sans Thai";
}

.footer-inner p {
    margin: 4px 0;
    color: rgba(255, 255, 255, 0.9);
}

/* Responsive */
@media (max-width: 991px) {

    .hero-grid,
    .info-panel,
    .camera-grid {
        grid-template-columns: 1fr;
    }

    .header-inner {
        flex-direction: row;
        align-items: center;
        padding: 12px 0;
        min-height: auto;
    }

    .brand {
        flex: 1;
    }

    .brand-text h1 {
        font-size: 1.1rem;
    }

    .brand-text {
        display: none;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        border-bottom: 1px solid var(--border);
        padding: 16px;
        box-shadow: var(--shadow-sm);
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }

    .main-nav.mobile-open {
        display: flex;
    }

    .main-nav a {
        padding: 12px 16px;
        border-radius: 8px;
        text-align: center;
        font-weight: 600;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .site-header {
        position: relative;
    }
}

@media (max-width: 640px) {
    .hero-section {
        padding-top: 48px;
    }

    .brand {
        align-items: center;
        gap: 10px;
    }

    .brand-logo {
        width: 48px;
        height: 48px;
    }

    .brand-text h1 {
        font-size: 0.95rem;
        display: block;
    }

    .brand-text {
        display: block;
    }

    .brand-subtitle {
        font-size: 0.75rem;
    }

    .header-inner {
        padding: 8px 0;
        min-height: 64px;
    }

    .hero-actions,
    .card-actions,
    .hero-highlights {
        flex-direction: column;
        align-items: stretch;
    }

    .section-heading,
    .camera-preview-item,
    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .camera-card-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .home-hero {
        padding: 48px 0 24px;
    }
}

.page-hero {
    padding: 54px 0 24px;
    background:
        radial-gradient(circle at top left, rgba(11, 78, 162, 0.10), transparent 30%),
        linear-gradient(180deg, #ffffff 0%, #f6f9fd 100%);
}

.page-hero-small {
    padding-bottom: 10px;
}

.page-title {
    margin: 0 0 10px;
    font-family: "Noto Sans Thai";
    font-size: clamp(1.9rem, 4vw, 3rem);
    color: var(--primary-dark);
}

.page-desc {
    max-width: 760px;
    margin: 0;
    color: var(--text-soft);
    font-size: 1.02rem;
}

.filter-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.filter-btn {
    border: 1px solid var(--border);
    background: #fff;
    color: var(--primary-dark);
    padding: 10px 16px;
    border-radius: 999px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.25s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.camera-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0 0 18px;
    font-size: 0.9rem;
    color: var(--text-soft);
}

.map-layout {
    display: grid;
    grid-template-columns: 1.35fr 0.65fr;
    gap: 22px;
    align-items: start;
}

.map-panel {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

#cctvMap {
    width: 100%;
    height: 720px;
}

.map-sidebar {
    display: grid;
    gap: 20px;
}

.sidebar-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.sidebar-head h3 {
    margin: 0;
    font-family: "Noto Sans Thai", sans-serif;
    color: var(--primary-dark);
}

.sidebar-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 0.9rem;
}

.selected-camera-box {
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.selected-camera-box h4 {
    margin: 0 0 8px;
    font-size: 1.1rem;
    color: var(--text-main);
}

.selected-camera-box p {
    margin: 0 0 14px;
    color: var(--text-soft);
}

.selected-empty {
    background: linear-gradient(180deg, #ffffff 0%, #f6f9fd 100%);
}

.selected-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 14px;
}

.map-area-chip {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #f1f5f9;
    color: var(--text-main);
    font-size: 0.82rem;
    font-weight: 700;
}

.map-camera-list {
    display: grid;
    gap: 10px;
    max-height: 520px;
    overflow: auto;
    padding-right: 4px;
}

.map-camera-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 14px 15px;
    background: #fff;
    transition: 0.25s ease;
    color: var(--text-main);
}

.map-camera-item:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.map-camera-item h4 {
    margin: 0 0 4px;
    font-size: 0.98rem;
}

.map-camera-item p {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.88rem;
}

.map-camera-arrow {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.1rem;
}

.custom-map-marker {
    background: transparent;
    border: none;
}

.marker-pin {
    width: 22px;
    height: 22px;
    border-radius: 50% 50% 50% 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    transform: rotate(-45deg);
    position: relative;
    box-shadow: 0 4px 10px rgba(11, 78, 162, 0.35);
}

.marker-pin::after {
    content: "";
    width: 10px;
    height: 10px;
    background: #fff;
    position: absolute;
    left: 6px;
    top: 6px;
    border-radius: 50%;
}

.map-popup {
    min-width: 220px;
    font-family: "Noto Sans Thai", sans-serif;
}

.map-popup h3 {
    margin: 0 0 6px;
    font-size: 1rem;
    color: var(--primary-dark);
}

.map-popup p {
    margin: 0 0 10px;
    color: var(--text-soft);
    font-size: 0.9rem;
    line-height: 1.5;
}

.popup-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.popup-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #eef4fb;
    color: var(--primary-dark);
    font-size: 0.78rem;
    font-weight: 700;
}

.popup-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.popup-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 700;
    transition: 0.25s ease;
}

.popup-actions a:first-child {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.popup-actions a:last-child {
    background: var(--secondary);
    color: #fff;
}

@media (max-width: 991px) {
    .map-layout {
        grid-template-columns: 1fr;
    }

    #cctvMap {
        height: 520px;
    }
}

@media (max-width: 640px) {
    #cctvMap {
        height: 420px;
    }

    .sidebar-head {
        flex-direction: column;
        align-items: flex-start;
    }
}

body.modal-open {
    overflow: hidden;
}

.live-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
}

.live-modal.is-open {
    display: block;
}

.live-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
}

.live-modal-dialog {
    position: relative;
    width: min(980px, calc(100% - 24px));
    margin: 40px auto;
    background: #fff;
    border-radius: 24px;
    border: 1px solid var(--border);
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.28);
    overflow: hidden;
    z-index: 1;
}

.live-modal-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    padding: 22px 24px 16px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.live-modal-header h3 {
    margin: 0;
    font-family: "Noto Sans Thai", sans-serif;
    color: var(--primary-dark);
    font-size: 1.35rem;
}

.live-modal-subtitle {
    margin: 6px 0 0;
    color: var(--text-soft);
    font-size: 0.95rem;
}

.live-modal-close {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    transition: 0.2s ease;
}

.live-modal-close:hover {
    background: #dbe9fb;
}

.live-modal-body {
    padding: 22px 24px 26px;
}

.live-video-wrap {
    width: 100%;
    background: #000;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.live-video-wrap video {
    width: 100%;
    max-height: 68vh;
    display: block;
    background: #000;
}

.live-camera-info {
    margin-top: 18px;
}

.live-camera-info p {
    margin: 0 0 16px;
    color: var(--text-soft);
}

.live-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

@media (max-width: 768px) {
    .live-modal-dialog {
        width: min(100%, calc(100% - 16px));
        margin: 16px auto;
        border-radius: 18px;
    }

    .live-modal-header,
    .live-modal-body {
        padding-left: 16px;
        padding-right: 16px;
    }

    .live-modal-header {
        flex-direction: row;
        align-items: flex-start;
    }

    .live-video-wrap video {
        max-height: 46vh;
    }
}

/* Service Grid Styles */
.home-hero {
    padding: 64px 0 32px;
    background:
        radial-gradient(circle at top right, rgba(11, 78, 162, 0.08), transparent 40%),
        radial-gradient(circle at bottom left, rgba(22, 163, 74, 0.05), transparent 30%),
        linear-gradient(180deg, #ffffff 0%, #f6f9fd 100%);
    text-align: center;
}
.home-hero-head h2 {
    margin: 0 0 16px;
    font-family: "IBM Plex Sans Thai", sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: var(--primary-dark);
    line-height: 1.25;
}
.home-hero-head p {
    margin: 0 auto 40px;
    max-width: 680px;
    font-size: 1.05rem;
    color: var(--text-soft);
}
.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    text-align: left;
}
.service-card {
    border-radius: var(--radius-md);
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    color: #fff;
    border: none;
}
.service-card:hover {
    transform: translateY(-8px);
}
.service-card::after {
    content: "→";
    position: absolute;
    right: 28px;
    top: 36px;
    font-size: 1.5rem;
    color: #fff;
    opacity: 0;
    transform: translateX(-10px);
    transition: 0.3s ease;
}
.service-card:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* Vibrant Themes */
.service-card.theme-blue {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    box-shadow: 0 12px 24px -8px rgba(37, 99, 235, 0.5);
}
.service-card.theme-green {
    background: linear-gradient(135deg, #065f46 0%, #10b981 100%);
    box-shadow: 0 12px 24px -8px rgba(16, 185, 129, 0.5);
}
.service-card.theme-sky {
    background: linear-gradient(135deg, #075985 0%, #0ea5e9 100%);
    box-shadow: 0 12px 24px -8px rgba(14, 165, 233, 0.5);
}

.service-card:hover.theme-blue {
    box-shadow: 0 20px 32px -8px rgba(37, 99, 235, 0.6);
}
.service-card:hover.theme-green {
    box-shadow: 0 20px 32px -8px rgba(16, 185, 129, 0.6);
}
.service-card:hover.theme-sky {
    box-shadow: 0 20px 32px -8px rgba(14, 165, 233, 0.6);
}

.service-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    backdrop-filter: blur(4px);
}
.service-icon svg {
    width: 24px;
    height: 24px;
}
.service-card h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #fff;
    font-family: "Noto Sans Thai", sans-serif;
    padding-right: 20px;
    line-height: 1.4;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.service-card p {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}
@media (max-width: 991px) {
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 640px) {
    .service-grid {
        grid-template-columns: 1fr;
    }
}

/* Forms */
.form-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
    align-items: start;
}

.form-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 34px;
    box-shadow: var(--shadow-sm);
}

.form-section-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 32px 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-light);
}

.form-panel form > .form-section-title:first-child {
    margin-top: 0;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 6px;
}

.form-group-full {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.95rem;
}

.req {
    color: #e11d48;
    margin-left: 2px;
}

input[type="text"],
input[type="email"],
input[type="date"],
input[type="time"],
select,
textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #fff;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-main);
    transition: all 0.25s ease;
    box-sizing: border-box;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(11, 78, 162, 0.12);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

.check-box {
    display: inline-flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    margin-bottom: 14px;
    font-size: 0.95rem;
    margin-right: 20px;
}

.check-box input {
    margin-top: 5px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary);
}

.form-actions {
    display: flex;
    gap: 14px;
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}

.form-side-panel {
    display: grid;
    gap: 20px;
}

.info-list {
    margin: 0;
    padding-left: 22px;
    color: var(--text-soft);
}

.info-list li {
    margin-bottom: 8px;
}

.side-note {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-soft);
    line-height: 1.6;
}

@media (max-width: 991px) {
    .form-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    .form-panel {
        padding: 24px 20px;
    }
}