body {
        background: #f8fafc;
        font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
        color: #1f2937;
    }

    .page-wrapper {
        max-width: 1180px;
        margin: 0 auto;
        padding: 32px 16px;
    }

    .main-card {
        background: #ffffff;
        border-radius: 28px;
        padding: 20px;  /*28px */
        box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
        /* box-shadow: 0 10px 35px rgba(15, 23, 42, 0.08); */
    }

    .brand-logo {
        width: 78px;
        height: auto;
    }

    .page-title {
        font-family: 'Sarabun', sans-serif;
        color: #102a6b;
        font-weight: 700;
        margin-bottom: 6px;
    }

    .page-subtitle {
        font-family: 'Sarabun', sans-serif;  
        color: #64748b;
        font-size: 0.90rem;
    }

    .form-section {
        border: 1px solid #dbeafe;
        border-radius: 18px;
        padding: 15px;  /* 20px */
        margin-top: 22px;
        background: #ffffff;
        box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
    }

    .section-blue {
        border-color: #bfdbfe;
        background: #f8fbff;
    }

    .section-green {
        border-color: #bbf7d0;
        background: #fbfffd;
    }

    .section-red {
        border-color: #fecaca;
        background: #fffafa;
    }

    .section-title {
        display: flex;
        align-items: center;
        gap: 10px;
        font-weight: 700;
        margin-bottom: 4px;
    }

    .section-title .icon {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-size: 1.2rem;
    }

    .blue-text { color: #2563eb; }
    .green-text { color: #16a34a; }
    .red-text { color: #dc2626; }

    .bg-blue-icon { background: #3b82f6; }
    .bg-green-icon { background: #22c55e; }
    .bg-red-icon { background: #ef4444; }

    .section-helper {
        color: #64748b;
        font-size: 0.9rem;
        margin-left: 48px;
        margin-bottom: 18px;
    }

    label {
        font-weight: 600;
        font-size: 0.92rem;
        margin-bottom: 6px;
    }

    .required {
        color: #dc2626;
    }

    .form-control,
    .form-select {
        border-radius: 10px;
        min-height: 44px;
        border-color: #d7dee8;
        font-size: 0.95rem;
    }

    .form-control:focus,
    .form-select:focus {
        border-color: #93c5fd;
        box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.15);
    }

    .form-text {
        font-size: 0.82rem;
        color: #64748b;
    }

    .hospital-box {
        border: 1px solid #e5e7eb;
        border-radius: 16px;
        padding: 16px;
        background: #ffffff;
        height: 100%;
    }

    .hospital-title {
        font-weight: 700;
        color: #102a6b;
        margin-bottom: 12px;
    }

    .hospital-title i {
        color: #0ea5e9;
        margin-right: 6px;
    }

    textarea.form-control {
        min-height: 150px;
    }

    .consent-text {
        font-size: 0.92rem;
    }

    .btn-clear {
        background: #f1f5f9;
        border: none;
        color: #475569;
        border-radius: 999px;
        padding: 12px 24px;
        box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
        border: 1px solid #aeb3f7 !important;
    }

    .btn-save {
        background: linear-gradient(135deg, #6366f1, #8b5cf6);
        border: none;
        color: #fff;
        border-radius: 999px;
        padding: 12px 28px;
        box-shadow: 0 8px 20px rgba(99, 102, 241, 0.35);
    }

    .btn-save:hover {
        color: #fff;
        opacity: 0.95;
    }

    @media (max-width: 768px) {
      .main-card {
        padding: 18px;
        border-radius: 20px;
      }

      .section-helper {
        margin-left: 0;
      }

      .header-area {
        text-align: center;
      }

      .brand-logo {
        margin-bottom: 12px;
      }

      .action-area {
        gap: 12px;
      }

      .btn-clear,
      .btn-save {
        width: 100%;
        
      }
    }

